GNU bug report logs -
#7229
23.1; ido guess and ffap bug
Previous Next
Reported by: "Thibault Kruse" <thibault.kruse <at> gmx.de>
Date: Sat, 16 Oct 2010 20:52:02 UTC
Severity: minor
Tags: fixed, patch
Merged with 8990,
24057
Found in versions 23.1, 23.3, 25.1.50
Fixed in version 26.1
Done: npostavs <at> users.sourceforge.net
Bug is archived. No further changes may be made.
Full log
Message #11 received at 7229 <at> debbugs.gnu.org (full text, mbox):
sorry, wrong path, narrow-to-region is applied wrongly in my last comment:
(require 'advice)
(defadvice ffap-file-at-point (around bugfix-ffap activate)
"returns nil when point is somewhere we do not want to guess filenames"
(require 'thingatpt)
;;; prevent in javadoc style comments
(unless (or
(thing-at-point-looking-at "[\\*]+")
;; for xml modes
(and (member major-mode '(sgml-mode nxml-mode))
;; don't care about <somenode/> and </somenode>
(or (thing-at-point-looking-at "</?[a-zA-Z_][a-zA-Z0-9:_.-]+")
(thing-at-point-looking-at "/>"))))
ad-do-it))
--
Neu: GMX De-Mail - Einfach wie E-Mail, sicher wie ein Brief!
Jetzt De-Mail-Adresse reservieren: http://portal.gmx.net/de/go/demail
This bug report was last modified 8 years and 65 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.