unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Minor fix for ido.el
@ 2005-05-16 10:07 Yann Hodique
  0 siblings, 0 replies; only message in thread
From: Yann Hodique @ 2005-05-16 10:07 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 484 bytes --]

Hi,
I just discovered the power of ido.el, which makes obsolete numerous
hacks of mine.
The behavior when setting ido-use-filename-at-point to t is incomplete IMO.
For example, with the cursor on "ido" in (require 'ido),
find-file-at-point would propose the complete path to ido.el, which I
find extremely useful.
So I suggest using ffap-guesser instead of ffap-string-at-point to fix
this issue, or at least provide an option to enable that behavior.

Best regards,
Yann

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: ido-ffap.patch --]
[-- Type: text/x-patch; name="ido-ffap.patch", Size: 369 bytes --]

--- ido.el	2005-05-16 12:01:35.878211936 +0200
+++ ido-hacked.el	2005-05-16 12:03:53.076354648 +0200
@@ -2027,7 +2027,7 @@
 		filename t))
 
 	 ((and ido-use-filename-at-point
-	       (setq fn (ffap-string-at-point))
+	       (setq fn (ffap-guesser))
 	       (not (string-match "^http:/" fn))
 	       (setq d (file-name-directory fn))
 	       (file-directory-p d))

[-- Attachment #3: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-05-16 10:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-16 10:07 Minor fix for ido.el Yann Hodique

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).