diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2021-07-20 13:48:10 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2021-07-20 13:48:10 +0200 |
commit | e02576c7eb75f35e5cc4fa5aa213f0838e2bd168 (patch) | |
tree | 7f3b7ab635646d378090bdec64e6a61f15572cfc /lisp/dnd.el | |
parent | 06ee8ac36c9590ed028a3633a21a655104f772c8 (diff) | |
download | emacs-e02576c7eb75f35e5cc4fa5aa213f0838e2bd168.tar.gz emacs-e02576c7eb75f35e5cc4fa5aa213f0838e2bd168.tar.bz2 emacs-e02576c7eb75f35e5cc4fa5aa213f0838e2bd168.zip |
Put command line file names and mouse dragging onto 'file-name-history'
* lisp/dnd.el (dnd-open-local-file): Add file to history.
* lisp/files.el (file-name-history--add): New function (bug#12915).
* lisp/startup.el (command-line-1): Add file to history.
Diffstat (limited to 'lisp/dnd.el')
-rw-r--r-- | lisp/dnd.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/dnd.el b/lisp/dnd.el index 7319a27d190..e641b2843a9 100644 --- a/lisp/dnd.el +++ b/lisp/dnd.el @@ -180,6 +180,7 @@ An alternative for systems that do not support unc file names is (if dnd-open-file-other-window (find-file-other-window f) (find-file f)) + (file-name-history--add f) 'private) (error "Can not read %s" uri)))) |