From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#12915: 24.2.50; Visiting a file via drag-and-drop should add it to the history of visited files Date: Sat, 12 Jan 2013 08:18:03 -0500 Message-ID: References: <87obgug641.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1357996737 6614 80.91.229.3 (12 Jan 2013 13:18:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 12 Jan 2013 13:18:57 +0000 (UTC) Cc: 12915@debbugs.gnu.org To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 12 14:19:14 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Tu0zR-00035J-6K for geb-bug-gnu-emacs@m.gmane.org; Sat, 12 Jan 2013 14:19:13 +0100 Original-Received: from localhost ([::1]:59326 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tu0zB-0002NT-4j for geb-bug-gnu-emacs@m.gmane.org; Sat, 12 Jan 2013 08:18:57 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:60590) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tu0z7-0002NK-Pu for bug-gnu-emacs@gnu.org; Sat, 12 Jan 2013 08:18:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tu0z4-0008UR-0h for bug-gnu-emacs@gnu.org; Sat, 12 Jan 2013 08:18:53 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50934) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tu0z3-0008UL-TE for bug-gnu-emacs@gnu.org; Sat, 12 Jan 2013 08:18:49 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Tu0zF-0006C4-Jp for bug-gnu-emacs@gnu.org; Sat, 12 Jan 2013 08:19:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 12 Jan 2013 13:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12915 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12915-submit@debbugs.gnu.org id=B12915.135799670523763 (code B ref 12915); Sat, 12 Jan 2013 13:19:01 +0000 Original-Received: (at 12915) by debbugs.gnu.org; 12 Jan 2013 13:18:25 +0000 Original-Received: from localhost ([127.0.0.1]:56398 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tu0ye-0006BE-FH for submit@debbugs.gnu.org; Sat, 12 Jan 2013 08:18:24 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:16047) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tu0yd-0006Az-1n for 12915@debbugs.gnu.org; Sat, 12 Jan 2013 08:18:23 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqQHAG6Zu09FpZpV/2dsb2JhbABEgXuuTYE1ghSBCIIVAQEEAVYjBQsLDiYHCxQYDSSIHAW6CZBEA4hCmnGBWIMH X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="212359964" Original-Received: from 69-165-154-85.dsl.teksavvy.com (HELO pastel.home) ([69.165.154.85]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 12 Jan 2013 08:18:04 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 575AC592A5; Sat, 12 Jan 2013 08:18:03 -0500 (EST) In-Reply-To: <87obgug641.fsf@gnu.org> (Chong Yidong's message of "Sat, 12 Jan 2013 16:25:50 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:69650 Archived-At: > I think it is best done by adding an optional argument `add-history' to > `find-file' (and similar functions like `find-file-other-frame'), so > that Lisp callers can specify to update `file-name-history' even if the > file name was not read interactively. Any objections? Maybe a more automatic way is to provide a `display-buffer-hook', that's run from `set-window-buffer', and then have find-file-noselect use this hook to add the file name onto the history if the buffer is shown to the user. Stefan