diff options
| author | Dave Love | 2003-01-15 19:46:07 +0000 |
|---|---|---|
| committer | Dave Love | 2003-01-15 19:46:07 +0000 |
| commit | f53a06c3de8e9529af2cb7783f337022a738d353 (patch) | |
| tree | 0495f17cda87efce9f0e4d0beae25ef5db6d1272 | |
| parent | 4d61e7d5136a1ee6d0c80d5f951f5c300d753ee2 (diff) | |
| download | emacs-f53a06c3de8e9529af2cb7783f337022a738d353.tar.gz emacs-f53a06c3de8e9529af2cb7783f337022a738d353.zip | |
(dired-filename-at-point): Fix filename-chars.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/dired-x.el | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a633d951b4d..1f7c1fdd26b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,10 @@ | |||
| 1 | 2003-01-15 Dave Love <fx@gnu.org> | 1 | 2003-01-15 Dave Love <fx@gnu.org> |
| 2 | 2 | ||
| 3 | * thingatpt.el (thing-at-point-file-name-chars): Include non-ASCII | ||
| 4 | and use documented treatment of -. | ||
| 5 | |||
| 6 | * dired-x.el (dired-filename-at-point): Fix filename-chars. | ||
| 7 | |||
| 3 | * international/ucs-tables.el: Set up tables for 8859-6. | 8 | * international/ucs-tables.el: Set up tables for 8859-6. |
| 4 | 9 | ||
| 5 | * server.el (server-window): Customize. | 10 | * server.el (server-window): Customize. |
diff --git a/lisp/dired-x.el b/lisp/dired-x.el index 6f0384be784..256064a3d6f 100644 --- a/lisp/dired-x.el +++ b/lisp/dired-x.el | |||
| @@ -1560,13 +1560,15 @@ to test if that file exists. Use minibuffer after snatching filename." | |||
| 1560 | (find-file-other-window (expand-file-name filename))) | 1560 | (find-file-other-window (expand-file-name filename))) |
| 1561 | 1561 | ||
| 1562 | ;;; Internal functions. | 1562 | ;;; Internal functions. |
| 1563 | (defun dired-filename-at-point () | ||
| 1564 | 1563 | ||
| 1564 | ;; Fixme: This should probably be replaced with `thing-at-point', but | ||
| 1565 | ;; that needs checking for compatibility. -- fx | ||
| 1566 | (defun dired-filename-at-point () | ||
| 1565 | "Get the filename closest to point, but do not change position. | 1567 | "Get the filename closest to point, but do not change position. |
| 1566 | Has a preference for looking backward when not directly on a symbol. Not | 1568 | Has a preference for looking backward when not directly on a symbol. Not |
| 1567 | perfect - point must be in middle of or end of filename." | 1569 | perfect - point must be in middle of or end of filename." |
| 1568 | 1570 | ||
| 1569 | (let ((filename-chars ".a-zA-Z0-9---_/:$+@") ; fixme: allow non-ASCII | 1571 | (let ((filename-chars "-.[:alnum:]_/:$+@") |
| 1570 | (bol (save-excursion (beginning-of-line) (point))) | 1572 | (bol (save-excursion (beginning-of-line) (point))) |
| 1571 | (eol (save-excursion (end-of-line) (point))) | 1573 | (eol (save-excursion (end-of-line) (point))) |
| 1572 | start end filename prefix) | 1574 | start end filename prefix) |