From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bastien Newsgroups: gmane.emacs.bugs Subject: bug#16542: 24.3.50; When finding a file via a bookmark, that file is not part of file-name-history Date: Mon, 27 Jan 2014 12:29:13 +0100 Message-ID: <87lhy1slx2.fsf@bzg.ath.cx> References: <87lhy5kqa9.fsf@bzg.ath.cx> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1390822214 13937 80.91.229.3 (27 Jan 2014 11:30:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Jan 2014 11:30:14 +0000 (UTC) Cc: 16542@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 27 12:30:21 2014 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 1W7kOT-0003Jv-2m for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Jan 2014 12:30:21 +0100 Original-Received: from localhost ([::1]:58999 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7kOS-0003B2-Mf for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Jan 2014 06:30:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58282) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7kOL-00035O-3h for bug-gnu-emacs@gnu.org; Mon, 27 Jan 2014 06:30:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W7kOB-0006cE-D5 for bug-gnu-emacs@gnu.org; Mon, 27 Jan 2014 06:30:12 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51666) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7kOB-0006ai-AT for bug-gnu-emacs@gnu.org; Mon, 27 Jan 2014 06:30:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1W7kOA-0002pa-L1 for bug-gnu-emacs@gnu.org; Mon, 27 Jan 2014 06:30:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Bastien Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Jan 2014 11:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16542 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16542-submit@debbugs.gnu.org id=B16542.139082215910804 (code B ref 16542); Mon, 27 Jan 2014 11:30:02 +0000 Original-Received: (at 16542) by debbugs.gnu.org; 27 Jan 2014 11:29:19 +0000 Original-Received: from localhost ([127.0.0.1]:37452 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W7kNT-0002oC-0h for submit@debbugs.gnu.org; Mon, 27 Jan 2014 06:29:19 -0500 Original-Received: from mail-wg0-f43.google.com ([74.125.82.43]:54405) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W7kNR-0002o4-3Z for 16542@debbugs.gnu.org; Mon, 27 Jan 2014 06:29:17 -0500 Original-Received: by mail-wg0-f43.google.com with SMTP id y10so5280137wgg.34 for <16542@debbugs.gnu.org>; Mon, 27 Jan 2014 03:29:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type; bh=u6fwqHgqyCdFe3n00BMxHFoKAtaLowMyUr2GbH1OAOA=; b=xEfmXKouoBFzA8kNJSsu4/Pmf+9sfCHAndQoZFP2bACcQYt2SrbZeKaBLyPVd5M4f/ Txkr26dX/ghpqGFiCJVnFCuEBT4n27UUyfTOx4vK3qgefynqcw8gtNnbkHoNGfkpDs9I swY8nB1DnyMi5MHOiuHe6KprQSD1bRo00seMEXTtyBHKXNaobs8exM+Dw9eThh5eJiKX zhfO2E7DbfwamoH05whi6Yl0LkZrjGh4UJght4vqJJLgicd0GgPDAHugrs21BbJh2ah2 VjIujYQqZ54+ngXx59lpyTCqZtuz1jEEX16JX2ynOMNTJjzOLu56HZMQAdsQzzG1MF4S V3Qg== X-Received: by 10.180.207.15 with SMTP id ls15mr11641465wic.50.1390822156366; Mon, 27 Jan 2014 03:29:16 -0800 (PST) Original-Received: from bzg.localdomain (AMontsouris-651-1-148-18.w83-202.abo.wanadoo.fr. [83.202.7.18]) by mx.google.com with ESMTPSA id bj3sm24489460wjb.14.2014.01.27.03.29.14 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Jan 2014 03:29:14 -0800 (PST) Original-Received: by bzg.localdomain (Postfix, from userid 1000) id DD80D1C208DA; Mon, 27 Jan 2014 12:29:13 +0100 (CET) In-Reply-To: (Drew Adams's message of "Sat, 25 Jan 2014 00:42:29 -0800 (PST)") 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.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.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:84106 Archived-At: Drew Adams writes: >> FWIW: There are other cases (besides "via the bookmarks buffer") where >> a file is visited but not added to the file-name-history. >> >> Bug #12915 contains a general discussion about the matter. > > Yes, thank you, Dani. > > FWIW, I will repeat just this part from my post in that thread: > > The proper solution is for commands that read file names to DTRT > wrt `file-name-history' - TRT for that command. > ^^^^^^^^^^^^^^^^^^^^ Thank you both for your input. The #12915 bug report was quite a read. There seem to be one consensus and one point of disagreement: - consensus: the bug report calls for a general mechanism, as the same problem hit other commands; - disagreement: such a general mechanism should be activated for all commands that find a file or only for specific commands (e.g. only interactive commands, [your rule here], or even no rule at all--as Drew suggests.) I'm on Drew side here, I think a one-by-one approach is better, whether there is a general mechanism or not (yet). Since there is no strong objection for fixing the bookmark-jump case, and since it's trivial to migrate this fix to a general solution when we'll have one, I'm willing to apply the fix if no-one objects in a week. -- Bastien