diff options
author | Kaushal Modi <kaushal.modi@gmail.com> | 2017-03-17 18:03:23 -0400 |
---|---|---|
committer | Noam Postavsky <npostavs@gmail.com> | 2017-03-23 08:57:13 -0400 |
commit | e472cfe8f3b01f29a49614f6207e4128e8b36b8c (patch) | |
tree | b182bf3006a1e1e23f977f3fe64ce59cb7288474 /lib/symlink.c | |
parent | fe3af8d4f2a4cd67958f76d1b708e8a78e68cd4f (diff) | |
download | emacs-e472cfe8f3b01f29a49614f6207e4128e8b36b8c.tar.gz emacs-e472cfe8f3b01f29a49614f6207e4128e8b36b8c.tar.bz2 emacs-e472cfe8f3b01f29a49614f6207e4128e8b36b8c.zip |
Do not include comment start chars in ffap string
* lisp/ffap.el (ffap-string-at-point): If the point is in a comment,
ensure that the returned string does not contain the comment start
characters (especially for major modes that have '//' as comment start
characters). Otherwise, in a major mode like c-mode, with `ido-mode'
enabled and `ido-use-filename-at-point' set to `guess', doing "C-x
C-f" on a "//foo" comment will initiate an attempt to access a path
"//foo" (Bug#24057).
Co-authored-by: Noam Postavsky <npostavs@gmail.com>
Diffstat (limited to 'lib/symlink.c')
0 files changed, 0 insertions, 0 deletions