]> git.eshelyaron.com Git - emacs.git/commitdiff
(dired-filename-at-point): Fix filename-chars.
authorDave Love <fx@gnu.org>
Wed, 15 Jan 2003 19:46:07 +0000 (19:46 +0000)
committerDave Love <fx@gnu.org>
Wed, 15 Jan 2003 19:46:07 +0000 (19:46 +0000)
lisp/ChangeLog
lisp/dired-x.el

index a633d951b4d210e563ccbc53eba06eabcfc6cb29..1f7c1fdd26b3be82c13639c77887d31ea373d6c0 100644 (file)
@@ -1,5 +1,10 @@
 2003-01-15  Dave Love  <fx@gnu.org>
 
+       * thingatpt.el (thing-at-point-file-name-chars): Include non-ASCII
+       and use documented treatment of -.
+
+       * dired-x.el (dired-filename-at-point): Fix filename-chars.
+
        * international/ucs-tables.el: Set up tables for 8859-6.
 
        * server.el (server-window): Customize.
index 6f0384be7844bf6b3a9d0af17e92d4218866ac46..256064a3d6ffdff6ed4d13afab73d0059aca7b7f 100644 (file)
@@ -1560,13 +1560,15 @@ to test if that file exists.  Use minibuffer after snatching filename."
   (find-file-other-window (expand-file-name filename)))
 
 ;;; Internal functions.
-(defun dired-filename-at-point ()
 
+;; 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)