unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Juri Linkov <juri@linkov.net>
Cc: Glenn Morris <rgm@gnu.org>,
	3909@debbugs.gnu.org, Stefan Monnier <monnier@iro.umontreal.ca>,
	Dani Moncayo <dmoncayo@gmail.com>,
	12915@debbugs.gnu.org
Subject: bug#3909: bug#12915: bug#3909: 23.1.50; Drag drop events in command history?
Date: Mon, 19 Jul 2021 00:50:42 +0200	[thread overview]
Message-ID: <878s23me2l.fsf@gnus.org> (raw)
In-Reply-To: <87y2a3i78a.fsf@linkov.net> (Juri Linkov's message of "Mon, 19 Jul 2021 01:32:05 +0300")

Juri Linkov <juri@linkov.net> writes:

>> 1) To add an optional parameter to `find-file' to make it push the
>> filename onto `file-name-history'.  Then we could adjust callers
>> according to taste: I think drag and drop and command line arguments
>> should land on the history.
>
> I don't think anyone would object to such patch:

[...]

> @@ -2391,6 +2391,7 @@ command-line-1
>  				  (command-line-normalize-file-name name)
>  				  dir))
>  			   (buf (find-file-noselect file)))
> +		      (add-to-history 'file-name-history (abbreviate-file-name file))

I thought it might be nice to have these "extra" additions to
`file-name-history' in one central place (in case we decide to make it
optional).

But I guess we could just have a function like
`add-to-file-name-history' if we wanted to future-proof that?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  reply	other threads:[~2021-07-18 22:50 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-17 13:07 bug#12915: 24.2.50; Visiting a file via drag-and-drop should add it to the history of visited files Dani Moncayo
2012-11-17 19:07 ` Glenn Morris
2012-11-17 21:37   ` Dani Moncayo
2013-01-02  9:16     ` Dani Moncayo
2013-01-12  8:25       ` Chong Yidong
2013-01-12 13:18         ` Stefan Monnier
2013-01-12 14:30           ` martin rudalics
2013-01-12 16:54             ` Stefan Monnier
2013-01-12 18:01               ` martin rudalics
2013-01-12 18:02             ` bug#12915: 24.2.50; Visiting a file via drag-and-drop should add it to the historyof " Drew Adams
2013-01-12 18:01           ` bug#12915: 24.2.50; Visiting a file via drag-and-drop should add it to the history ofvisited files Drew Adams
2013-01-12 18:32             ` Eli Zaretskii
2013-01-12 22:43               ` Drew Adams
2013-01-13 17:31                 ` Eli Zaretskii
2013-01-13 18:55                   ` Drew Adams
2013-01-12 17:59         ` Drew Adams
2013-01-13  9:56         ` bug#12915: 24.2.50; Visiting a file via drag-and-drop should add it to the history of visited files Juri Linkov
2013-01-13 10:15           ` Dani Moncayo
2013-01-13 14:25             ` Stefan Monnier
2013-01-13 17:13               ` bug#12915: 24.2.50; Visiting a file via drag-and-drop should add it to the history ofvisited files Drew Adams
2013-01-13 20:24                 ` Dani Moncayo
2013-01-13 22:45                 ` Stefan Monnier
2013-01-13 19:52               ` bug#12915: 24.2.50; Visiting a file via drag-and-drop should add it to the history of visited files Dani Moncayo
2013-01-13 22:34                 ` Stefan Monnier
2013-01-13 17:13             ` bug#12915: 24.2.50; Visiting a file via drag-and-drop should add it to the history ofvisited files Drew Adams
2013-01-14  7:52             ` bug#12915: 24.2.50; Visiting a file via drag-and-drop should add it to the history of visited files Juri Linkov
2013-01-14  8:18               ` Dani Moncayo
2013-01-14 15:18               ` Stefan Monnier
2013-01-14 15:50                 ` bug#12915: 24.2.50; Visiting a file via drag-and-drop should add it to the history ofvisited files Drew Adams
2013-01-14 15:45               ` Drew Adams
2013-01-15  9:57                 ` Juri Linkov
2013-01-15 15:07                   ` Drew Adams
2013-01-13 16:35           ` bug#12915: 24.2.50; Visiting a file via drag-and-drop should add it to the history of visited files Eli Zaretskii
2013-01-13 17:14             ` bug#12915: 24.2.50; Visiting a file via drag-and-drop should add it to the historyof " Drew Adams
2021-07-18 19:21     ` bug#3909: 23.1.50; Drag drop events in command history? Lars Ingebrigtsen
2021-07-18 21:08       ` bug#12915: [External] : bug#12915: " Drew Adams
2021-07-18 22:32       ` bug#3909: " Juri Linkov
2021-07-18 22:50         ` Lars Ingebrigtsen [this message]
2021-07-19 15:24           ` Juri Linkov
2021-07-19 15:51             ` bug#3909: " Lars Ingebrigtsen
2021-07-19 21:57               ` Juri Linkov
2021-07-20 11:48                 ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878s23me2l.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=12915@debbugs.gnu.org \
    --cc=3909@debbugs.gnu.org \
    --cc=dmoncayo@gmail.com \
    --cc=juri@linkov.net \
    --cc=monnier@iro.umontreal.ca \
    --cc=rgm@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).