changeset 49271:720dd3042058

(dired-filename-at-point): Fix filename-chars.
author Dave Love <fx@gnu.org>
date Wed, 15 Jan 2003 19:45:49 +0000
parents c84445fe778c
children 2d7145180fb5
files lisp/dired-x.el
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/dired-x.el	Wed Jan 15 19:44:58 2003 +0000
+++ b/lisp/dired-x.el	Wed Jan 15 19:45:49 2003 +0000
@@ -1560,13 +1560,15 @@
   (find-file-other-window (expand-file-name filename)))
 
 ;;; Internal functions.
+
+;; Fixme: This should probably be replaced with `thing-at-point', but
+;; that needs checking for compatibility.  -- fx
 (defun dired-filename-at-point ()
-
   "Get the filename closest to point, but do not change position.
 Has a preference for looking backward when not directly on a symbol.  Not
 perfect - point must be in middle of or end of filename."
 
-  (let ((filename-chars ".a-zA-Z0-9---_/:$+@") ; fixme: allow non-ASCII
+  (let ((filename-chars "-.[:alnum:]_/:$+@")
         (bol (save-excursion (beginning-of-line) (point)))
         (eol (save-excursion (end-of-line) (point)))
         start end filename prefix)