diff options
| author | Dave Love | 2003-01-27 11:38:45 +0000 |
|---|---|---|
| committer | Dave Love | 2003-01-27 11:38:45 +0000 |
| commit | 839aacc98f3ffa7b609fa75f7a9963dda55acbc6 (patch) | |
| tree | de71a5a3dbd9661b3ffbfbefe5eee80f77e44b85 | |
| parent | 1e56daa587d05f88a2be97160401be9b94c61f59 (diff) | |
| download | emacs-839aacc98f3ffa7b609fa75f7a9963dda55acbc6.tar.gz emacs-839aacc98f3ffa7b609fa75f7a9963dda55acbc6.zip | |
(thing-at-point-file-name-chars): Include
non-ASCII again and re-write the filename ops.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/thingatpt.el | 12 |
2 files changed, 16 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 80767e5384d..478b01997c6 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2003-01-27 Dave Love <fx@gnu.org> | ||
| 2 | |||
| 3 | * dired-x.el (dired-filename-at-point): Fix last change and tidy up. | ||
| 4 | |||
| 5 | * thingatpt.el (thing-at-point-file-name-chars): Include | ||
| 6 | non-ASCII again and re-write the filename ops. | ||
| 7 | |||
| 1 | 2003-01-27 David Ponce <david@dponce.com> | 8 | 2003-01-27 David Ponce <david@dponce.com> |
| 2 | 9 | ||
| 3 | * makefile.w32-in (update-subdirs-SH): Create lisp/subdirs.el. | 10 | * makefile.w32-in (update-subdirs-SH): Create lisp/subdirs.el. |
diff --git a/lisp/thingatpt.el b/lisp/thingatpt.el index 3e6b344a3f2..70f25da673a 100644 --- a/lisp/thingatpt.el +++ b/lisp/thingatpt.el | |||
| @@ -195,13 +195,19 @@ a symbol as a valid THING." | |||
| 195 | 195 | ||
| 196 | ;; Filenames and URLs www.com/foo%32bar | 196 | ;; Filenames and URLs www.com/foo%32bar |
| 197 | 197 | ||
| 198 | (defvar thing-at-point-file-name-chars "~/A-Za-z0-9---_.${}#%,:" | 198 | (defvar thing-at-point-file-name-chars "-~/[:alnum:]_.${}#%,:" |
| 199 | "Characters allowable in filenames.") | 199 | "Characters allowable in filenames.") |
| 200 | 200 | ||
| 201 | (put 'filename 'end-op | 201 | (put 'filename 'end-op |
| 202 | (lambda () (skip-chars-forward thing-at-point-file-name-chars))) | 202 | (lambda () |
| 203 | (re-search-forward (concat "\\=[" thing-at-point-file-name-chars "]*") | ||
| 204 | nil t))) | ||
| 203 | (put 'filename 'beginning-op | 205 | (put 'filename 'beginning-op |
| 204 | (lambda () (skip-chars-backward thing-at-point-file-name-chars))) | 206 | (lambda () |
| 207 | (if (re-search-backward (concat "[^" thing-at-point-file-name-chars "]") | ||
| 208 | nil t) | ||
| 209 | (forward-char) | ||
| 210 | (goto-char (point-min))))) | ||
| 205 | 211 | ||
| 206 | (defvar thing-at-point-url-path-regexp | 212 | (defvar thing-at-point-url-path-regexp |
| 207 | "[^]\t\n \"'()<>[^`{}]*[^]\t\n \"'()<>[^`{}.,;]+" | 213 | "[^]\t\n \"'()<>[^`{}]*[^]\t\n \"'()<>[^`{}.,;]+" |