Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
f53a06c3
Commit
f53a06c3
authored
Jan 15, 2003
by
Dave Love
Browse files
(dired-filename-at-point): Fix filename-chars.
parent
4d61e7d5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/dired-x.el
lisp/dired-x.el
+4
-2
No files found.
lisp/ChangeLog
View file @
f53a06c3
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.
...
...
lisp/dired-x.el
View file @
f53a06c3
...
...
@@ -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)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment