From unknown Tue Jun 17 01:43:14 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3909: 23.1.50; Drag drop events in command history? Reply-To: Sridhar Boovaraghavan , 3909@debbugs.gnu.org Resent-From: Sridhar Boovaraghavan Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 23 Jul 2009 20:10:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 3909 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.124837945415724 (code B ref -1); Thu, 23 Jul 2009 20:10:05 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 23 Jul 2009 20:04:14 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6NK49Uq015719 for ; Thu, 23 Jul 2009 13:04:10 -0700 Received: from mx10.gnu.org ([199.232.76.166]:38655) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MU4WO-0002TQ-FR for emacs-pretest-bug@gnu.org; Thu, 23 Jul 2009 16:04:08 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MU4WL-0006kw-WA for emacs-pretest-bug@gnu.org; Thu, 23 Jul 2009 16:04:06 -0400 Received: from mta1.srv.hcvlny.cv.net ([167.206.4.196]:44096) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MU4WL-0006kp-AD for emacs-pretest-bug@gnu.org; Thu, 23 Jul 2009 16:04:05 -0400 Received: from BOB-MARLEY.optonline.net (ool-4356a1eb.dyn.optonline.net [67.86.161.235]) by mta1.srv.hcvlny.cv.net (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTP id <0KN900B4F3Q80W81@mta1.srv.hcvlny.cv.net> for emacs-pretest-bug@gnu.org; Thu, 23 Jul 2009 16:03:46 -0400 (EDT) Date: Thu, 23 Jul 2009 16:03:32 -0400 From: Sridhar Boovaraghavan To: emacs-pretest-bug@gnu.org Message-id: <84d47rtbe3.fsf@earthlink.net> MIME-version: 1.0 X-Mailer: emacs 23.1.50.1 (via feedmail 11-beta-1 Q) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) If in Windows, I drag a file from explorer and drop it into Emacs, it opens fine. However, would it make sense for an event to be registered in the command history (like open-file xxx) so that when I kill that buffer and want to re-open it, I can just recall that command? Regards, Sridhar In GNU Emacs 23.1.50.1 (i386-mingw-nt6.0.6002) of 2009-07-22 on BOB-MARLEY Windowing system distributor `Microsoft Corp.', version 6.0.6002 configured using `configure --with-gcc (3.4) --cflags -Id:/Utilities/GnuWin32/include' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ENU value of $XMODIFIERS: nil locale-coding-system: cp1252 default-enable-multibyte-characters: t Major mode: Message Minor modes in effect: mml-mode: t gnus-message-citation-mode: t tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Recent input: x r e c o v e r t h i u y e s C-k C-k C-k C-x s y C-x p p C-u x g n u s n e w s . g m a n e . o r g ; j g m a n e . e m a c s . d e v e l u SPC 1 0 0 0 0 C-x 1 n SPC C-x 1 n C-x 1 n SPC SPC C-x 1 > a D r a g - d r o p SPC i n SPC t h e SPC c o m m a n d SPC h i s t o r y ? e v e n t s SPC C-k s r i d h a r _ m l @ y a h o o . c o m C-x 5 2 x r e p o r t Recent messages: `A k' to list killed groups Checking new news...done Setting up drafts group No more newsgroups Retrieving newsgroup: gmane.emacs.devel... Creating nntp marks directory c:/Users/Sridhar/AppData/Roaming/News/marks/news.gmane.org/gmane/emacs/devel/ Bootstrapping marks for gmane.emacs.devel...done Fetching headers for gmane.emacs.devel...done Generating summary...done Mark set Load-path shadows: d:/site-lisp/u-vm-color hides d:/site-lisp/vm/lisp/u-vm-color d:/site-lisp/bbdb/lisp/bbdb-autoloads hides d:/emacs/lisp/bbdb-autoloads d:/site-lisp/feedmail hides d:/emacs/lisp/mail/feedmail -- Sridhar Boovaraghavan From cyd@stupidchicken.com Sun Jul 26 08:51:26 2009 Received: (at control) by emacsbugs.donarmstrong.com; 26 Jul 2009 15:51:27 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.7 required=4.0 tests=AWL,VALID_BTS_CONTROL autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6QFpNaY028678 for ; Sun, 26 Jul 2009 08:51:24 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id F2C1657E259; Sun, 26 Jul 2009 11:52:01 -0400 (EDT) From: Chong Yidong To: control@debbugs.gnu.org Subject: severity 3909 wishlist Date: Sun, 26 Jul 2009 11:52:01 -0400 Message-ID: <87vdlf787y.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii severity 3909 wishlist thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 06 18:20:40 2013 Received: (at control) by debbugs.gnu.org; 6 Feb 2013 23:20:40 +0000 Received: from localhost ([127.0.0.1]:40140 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U3EIC-0007zY-5k for submit@debbugs.gnu.org; Wed, 06 Feb 2013 18:20:40 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:54720) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U3EIA-0007zR-8e for control@debbugs.gnu.org; Wed, 06 Feb 2013 18:20:38 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1U3EGt-0006ej-Fk for control@debbugs.gnu.org; Wed, 06 Feb 2013 18:19:19 -0500 Date: Wed, 06 Feb 2013 18:19:19 -0500 Message-Id: Subject: control message for bug 12915 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) forcemerge 3909 12915 From unknown Tue Jun 17 01:43:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#3909: 23.1.50; Drag drop events in command history? Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Jul 2021 19:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 3909 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Dani Moncayo Cc: Glenn Morris , 12915@debbugs.gnu.org, Stefan Monnier , 3909@debbugs.gnu.org Received: via spool by 3909-submit@debbugs.gnu.org id=B3909.16266361168560 (code B ref 3909); Sun, 18 Jul 2021 19:22:02 +0000 Received: (at 3909) by debbugs.gnu.org; 18 Jul 2021 19:21:56 +0000 Received: from localhost ([127.0.0.1]:57387 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5CMN-0002Du-Kl for submit@debbugs.gnu.org; Sun, 18 Jul 2021 15:21:55 -0400 Received: from quimby.gnus.org ([95.216.78.240]:37192) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5CML-0002Dd-Po; Sun, 18 Jul 2021 15:21:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ONMpFSDEeIeGFfZbqHbI26lr5Eq0hM/mXiH5bepmoe0=; b=VNqi5ORVrlUTp85WkEQqzHf1n6 YDt5qBGYFVF1enL542hjGHi3yRFUA7vln/qoo7eBxwtZhYALIOI49TxjMBtLWmtWZGtRyRG8ee/zZ ZPwhDtOK5YESm0tFPJNJldS3l0CxRmrzXhiuzc2ERuZ7cyttYZEgmf8YF4yShWenGlYc=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m5CMC-0003Qp-FN; Sun, 18 Jul 2021 21:21:46 +0200 From: Lars Ingebrigtsen References: X-Now-Playing: David Bowie's _The Rise and Fall of Ziggy Stardust and the Spiders From Mars_: "Suffragette City" Date: Sun, 18 Jul 2021 21:21:43 +0200 In-Reply-To: (Dani Moncayo's message of "Sat, 17 Nov 2012 22:37:36 +0100") Message-ID: <87v957mnqw.fsf_-_@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Dani Moncayo writes: >>> Please, when a file is visited via drag-and-drop, add that file to the >>> history of visited files (so that I can revisit it with `C-x C-f M-p', >>> for example). I don't see the point of not doi [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Dani Moncayo writes: >>> Please, when a file is visited via drag-and-drop, add that file to the >>> history of visited files (so that I can revisit it with `C-x C-f M-p', >>> for example). I don't see the point of not doing that. >> >> On a related note, I've always found it irritating that the same is true >> of files specified on the command line: >> >> emacs -Q README & >> C-x C-k README RET >> C-x C-f M-p >> -> "Beginning of history; no preceding item" > > Indeed. The history of visited files should contain every visited > file, regardless of the way it was visited (command line argument, > drag-n-drop, menu item, C-x C-f...) The discussion here veered off into generalities, and nothing was done. The two practical suggestions were: 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. 2) To add a `display-buffer-hook' to do the same if the file actually ends up being displayed, so this pushing would happen deep in `find-file-noselect'. I think 1) is attractive in that it's very straightforward and simple to understand. 2) is attractive in that we don't put file names into the history unless we actually read the file, and we don't have to adjust function parameters for the other `find-file-*' commands, too. I think I prefer 1), because it's easier to reason about. Anybody got an opinion? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Tue Jun 17 01:43:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#3909: [External] : bug#12915: bug#3909: 23.1.50; Drag drop events in command history? Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Jul 2021 21:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 3909 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Lars Ingebrigtsen , Dani Moncayo Cc: Glenn Morris , "12915@debbugs.gnu.org" <12915@debbugs.gnu.org>, Stefan Monnier , "3909@debbugs.gnu.org" <3909@debbugs.gnu.org> Received: via spool by 3909-submit@debbugs.gnu.org id=B3909.16266425302610 (code B ref 3909); Sun, 18 Jul 2021 21:09:02 +0000 Received: (at 3909) by debbugs.gnu.org; 18 Jul 2021 21:08:50 +0000 Received: from localhost ([127.0.0.1]:57512 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5E1n-0000fx-8v for submit@debbugs.gnu.org; Sun, 18 Jul 2021 17:08:50 -0400 Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:62194) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5E1k-0000fm-U7; Sun, 18 Jul 2021 17:08:45 -0400 Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 16IL2qr7000849; Sun, 18 Jul 2021 21:08:44 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2021-07-09; bh=AlfLEax6zEpsxcBa0LH8qwYMwWdSysPQ7pWKY7DbQMA=; b=h5bApcGQXsMyE2dCnMLiKPzl8pg9G6+YmbOzXUMIWa+iYv8BxtplQ0/JWmQxcjO5rXeC cJ4s2K78n1mJQBe8uudKeNo7g5Gbrwp+V2ASINj/3bocL1Fq+opZMpG59YX+PM5vnVqq 3lcCyuB7q4Sguwi3gtPNsdH/XIol93rQBv7OwLtB9pZ1hzVIpvjdWhlPXdd7l9L3VzVd 6NcHz0EJ+TgdK60qvviBcKWUd/LnWNbULsUAuJkSWfYmpxp86Zmhi3MypoppdIGQuUSB 8o2VNbzBvd2qrun8kXUCAvzFk9aZG+J/iARwE7GkBDoz+gg27c/iOspxTHR32zFK2WsH 2Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2020-01-29; bh=AlfLEax6zEpsxcBa0LH8qwYMwWdSysPQ7pWKY7DbQMA=; b=VqyEUdbGRbDVZ0rag7eBs1cdIRMcHcWdB+5hncutclsh+hspgjxZdbPW0zlzITvkK9LJ rAzhESXKtRQRI4rqbX4aP8ww4ZnSTx8fQgiy/JNZSWcHmW1JkRoAlDmPphZxdcTmJdm9 DSBfYebFGRYGKGpdNGF8Tz7Xx91Zi9+6pAd5R6kSkI/qlZe7dCaC6OR2bwgzVsRRRBQL X3od9NTUOBmO5AqZDQ7JvGOCsZ4Zqm5mShytuOJNkfGQxv+3R9JrWLiUy1mvyPSD17oC ms6sXett+OQRXSbZl56QwlwNcyBvuQ8/Ek6ul7mzF20HyXkStkPTT8XmnsqY99EENbmv DQ== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by mx0b-00069f02.pphosted.com with ESMTP id 39uptrspse-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 18 Jul 2021 21:08:44 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 16IL1Coc095001; Sun, 18 Jul 2021 21:08:43 GMT Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2169.outbound.protection.outlook.com [104.47.59.169]) by aserp3030.oracle.com with ESMTP id 39upe734m5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 18 Jul 2021 21:08:43 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RDyMK00IpVN/1DSnhIpHlamy533EpnDD8lfz3SvpzdW9S3mFOquapQK7tpB6eaGlVuaiTAnov0ud2Ifr/J3FHm6fEX1M8soDwoLlRsehDQugRnnPvjTepn+KC1RFEUM+PCR8/QFMpQYjR8ppLFCf6ESK8h/vQQ4XJ/viR9O/eYIyUisXlEHDI+M5LEnhI3jTZ0Kx3OrcvZ2EbevRQIZBNgOrf8ziWSkKdgvJjyJgZybZsKaUwc0dQ/LjIf0dp3Kwtaf8VedAPHkikFFmyRQZs8Q/ytgOgq72lFlfaTa5UMT8OZNyaL4xUIsgTg0r5NvAtFBInJg5z5k1tPw7MVAChw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AlfLEax6zEpsxcBa0LH8qwYMwWdSysPQ7pWKY7DbQMA=; b=oNz8KeSOedvkdsjVoCcF1woVONhiwd3EOap0iKEvTnaPVFawn1rXJ6CIu6ctuttFMycRPPBXpjCivcJrwGpFs8j0yv8kPybvhUUlN/PD+y4i5lXvX7bta1kTeJKyE7FkkZn7uhZWVqbtSgvJhHXb2hLoWQ3isTxrIHWCC/5UzICfPPNtJPqxevoFvB81QZ0+ipCkHtX1RgIfebvr5Sqr9Q42zMo1Y5YVpAUlI0m8NQ7WyELUK848dEUY+grfiBeecv94LW/2K8fkfdyke/RNtInquiliXPXMvMmhYWtRLzxsR4j5CWeE4d2F1l6H1DvN+gK9kxzGQhpCeu64ygZXTA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AlfLEax6zEpsxcBa0LH8qwYMwWdSysPQ7pWKY7DbQMA=; b=dhMnwWCn1Us6ck9BU6F3gw6zfuaflwXaaHTnrwPd0UvRWNKsJI+t1WBu7V+/cZfFWNGrT0EkgoFvtMK3P/KW7JkQAr6OszBvPdPX6x+dVPjnymKnfepB3feUSlekY5Kq2qAVIkr07k5vNMR5v0wVwvTyF5YWyzRF5uvFdPvdkqk= Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by BY5PR10MB4051.namprd10.prod.outlook.com (2603:10b6:a03:1b1::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.29; Sun, 18 Jul 2021 21:08:40 +0000 Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::1d3c:d31b:8add:1958]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::1d3c:d31b:8add:1958%5]) with mapi id 15.20.4331.032; Sun, 18 Jul 2021 21:08:40 +0000 From: Drew Adams Thread-Topic: [External] : bug#12915: bug#3909: 23.1.50; Drag drop events in command history? Thread-Index: AQHXfAozt8dMbjyrdECrarG3TMk1+6tJN2AA Date: Sun, 18 Jul 2021 21:08:40 +0000 Message-ID: References: <87v957mnqw.fsf_-_@gnus.org> In-Reply-To: <87v957mnqw.fsf_-_@gnus.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: gnus.org; dkim=none (message not signed) header.d=none;gnus.org; dmarc=none action=none header.from=oracle.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: e6ae2c8b-0c74-406e-eb2a-08d94a3037aa x-ms-traffictypediagnostic: BY5PR10MB4051: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 0BvJ0VjIVQjFZvy7rHtvPpd26p1emuiTQVf6zcBURYPrQD4vXJOiRh3KAOyPqFS0kpvqwGuA5girAS+Md+eicC1h7rpTT/vHZO5vxphNxjfAy7lfnhNCAt4VV/5stfjTd9iizNFnd1aDPKilyq2Vna6w5kEeXPet9uNzP2/mGAugb6gGrxRoCNWk3L0fO4R5ANLHlUl+V/TetKdHpnSyg3CfMHO8rrEok2NdZfzqVQ5mYzR7uPf2lonOfqBNmPpZITOUKrooN+lkCMk0aH0T5qZXXlmPd65ceJsqSssuU+SWDd/+F6bSQv1hu0CcEN38IK2lzetdQj0I3P808bjm05uun7iTYOXlVEXXZTk+ewtUP2SngA0egTHa1uMpcW9z3K8ZLpp0dH5Sfpz8hjChGcuPLaUzrMPGTyg2pFR1BC8mNr7z2qAWhUe5/8N7A722YcfBzTkZlJocb/zdKTxfNE+i49rADqva80p/URtI2sO1cF9v0EmiZuNSkZT39POF6uCt3dYKshLb9WUq3jHKFIIsYa+XXRzGRXnfWYlZwrHv1SkReDICVQ/LhagRMnZKXbNvlvzqUT9stG4a1y/kUxeB2VfOdv0fyn2zP99Hy9SUdQqBp+sn9EqLQdzGVH6tkQLv4KxkNSVpedIjWGKBvGIXpU/Qq78HWbTpahToMIbDEj8C33LE2nHSfv7Hjbzkb6cN6NFsupI5aBDl4YlPNA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(136003)(39860400002)(376002)(396003)(346002)(186003)(110136005)(54906003)(316002)(55016002)(26005)(7696005)(6506007)(5660300002)(122000001)(38100700002)(33656002)(2906002)(64756008)(9686003)(4326008)(8936002)(52536014)(66446008)(66556008)(66476007)(66946007)(76116006)(44832011)(86362001)(478600001)(8676002)(71200400001)(83380400001)(38070700004); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: /G4PKH4ygqmV6D0AgeNTyAhd7aDW2gy+Qo5Y31ls6m/oKF2RQ4Ma14CDSpKn554eiXPinW8Sy/Cj+1RbMkK2v7TEnloWbQBIqRnTb4eRV0hCUE0nw95XaO/fW0Zwgjq7FeD3U3/MOaYIICnJu71b8m0mV05rK5l/l3i/+PIQn+WPyGotCpLxe1cwE/eSklD2mLxzcykMpzH9/sL3yV3DUnfiZeKuo4kNqfV3S5V3pUeSDGFHVS1YQkRuot2Nq+q0RNe27dXz16E7zRkuJYyc1Y8uTLmt33XmRZmhjfVq7gCQsKb41b8xZupWibYClmGmKwhy30SfALMFon9EZzk/1hlRLX9Z9Hg4O2mOCxioAx8QXyvrOShltkmLuLDVYE6VTiKzMjbOPFpyepuIxPrrWB/2jLDfeKlGz71mcK8x3lX9S/VQTOVpsP854X4G1Di57CdLeU/zV/qq8tzMVbrOrx5TpZ8sLORpVQ9OWZFbAp/9dpK8nd+XDwZfufXhdDH+yC9LB7wbcQPsQvE0rB2Zq42ALKq30dXPY4dZbxQDJA5PK20zFNE3ix7y4O2UQdRIpnr/IzhJcbnOA9kcjk0NvtAO+N9ZmcgqZYc+XMa+Rptn/97SZ2tUQ9UGVoyBixa/viiI2mpg9AXkj3bP1nXlIujWZT3at7OiiwMJfRNSvt+X69+c4JhQYQ4WIgZ3DRTf4jXMrd46ceJtBr9PHP5Ze6hcI7mWJaJqBmfqQJ1l0Ok/aag6194p3ND2LOFsDXpRTJP2yW6qlytgbMOwgPrdktLTAeWwD/AA2bf6UiTbs6exZTjc8zejza97Gs4MWPGAt0gfSidpFgQUJzMNe3vlHg/54xMQ4Ssjgva1+A4GjfAtJYdmBjq9IwhGQNoEQ/uSUHlYCwz5fe9eP3lxnlbnzmK4XE6KF6wpF1dwoJV9D4poLNOcZjZHxo/6tBWs6X5ETHbBu3CkVIcrrs/8gSxeNVvoKXqfBidITqzeq5DG5po2qXJKiWjQEs1B1+VaxwoAyObI8bBVSjj0DBIa4voPs7XxAU9oOlV3Y+1L5/lJUUz/WBZ//hSNYJ5onDg1Z9m5GE3XvrBoUyplwJs46chPwaNXf1foZYEtN5kKkLn/e9NKQjLMoGu6+sjERW7+/t9KR0VwPIKXBx3eleH/izj3DTrpg3OIQHhfSb031Q0hT/ZXyfqnYIiF4POkVzIJ8wVOlt6ktcpkGKqM5mFIYzimclFfYUu8GnYtSd7QJDxJOscsc0Nba80ZX9mbQL/mVmrlRIGTkEmpzDuhUguNYJ948o5UmRR6vPmlzqzk+niZnKf3AQmTCq5dFSEC/Q3/Xy1+ x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e6ae2c8b-0c74-406e-eb2a-08d94a3037aa X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Jul 2021 21:08:40.1454 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 2RWvcMP17HNFhi2frG9FCU472HK0AIyS9wxPHyBiLngepai3CT1siD9Qi+cJQwsz/HNQdLO8n6gcS0IivqPFvA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR10MB4051 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=10049 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 suspectscore=0 bulkscore=0 malwarescore=0 phishscore=0 mlxlogscore=999 mlxscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104190000 definitions=main-2107180143 X-Proofpoint-ORIG-GUID: N6Z0qxXVW7-4rba2C4rl3naAl5no9D3t X-Proofpoint-GUID: N6Z0qxXVW7-4rba2C4rl3naAl5no9D3t X-Spam-Score: 0.2 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) > The two practical suggestions were: >=20 > 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. >=20 > 2) To add a `display-buffer-hook' to do the same if the file actually > ends up being displayed, so this pushing would happen deep in > `find-file-noselect'. >=20 > I think 1) is attractive in that it's very straightforward and simple to > understand. 2) is attractive in that we don't put file names into the > history unless we actually read the file, and we don't have to adjust > function parameters for the other `find-file-*' commands, too. >=20 > I think I prefer 1), because it's easier to reason about. >=20 > Anybody got an opinion? In the #12915 thread both Juri and I argued for having (multiple) means of _user_ control. And several such means were suggested. I said, for example: Give users the _possibility_ of including, as part of `file-name-history', file names not actually typed in the minibuffer. But give them also the ability to _choose_ which such names get added, as defined by how the files were chosen for access. Juri said, specifically to argue against your #1:: Since this is a matter of personal preference, I think not Lisp callers but Emacs users should be able to specify what to add to the history. There are lots of good suggestions in the thread - many specific and some based on actual implementation and use. Asking "Anybody got an opinion?" is an invitation to ignore lots of opinions already carefully expressed.=20 From unknown Tue Jun 17 01:43:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#3909: bug#12915: bug#3909: 23.1.50; Drag drop events in command history? Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Jul 2021 22:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 3909 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Lars Ingebrigtsen Cc: Glenn Morris , 12915@debbugs.gnu.org, 3909@debbugs.gnu.org, Stefan Monnier , Dani Moncayo Received: via spool by 3909-submit@debbugs.gnu.org id=B3909.162664799010681 (code B ref 3909); Sun, 18 Jul 2021 22:40:02 +0000 Received: (at 3909) by debbugs.gnu.org; 18 Jul 2021 22:39:50 +0000 Received: from localhost ([127.0.0.1]:57564 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5FRu-0002m5-Cp for submit@debbugs.gnu.org; Sun, 18 Jul 2021 18:39:50 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:44737) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5FRs-0002ln-Uo; Sun, 18 Jul 2021 18:39:49 -0400 Received: (Authenticated sender: juri@linkov.net) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 014CD20005; Sun, 18 Jul 2021 22:39:39 +0000 (UTC) From: Juri Linkov References: <87v957mnqw.fsf_-_@gnus.org> Date: Mon, 19 Jul 2021 01:32:05 +0300 In-Reply-To: <87v957mnqw.fsf_-_@gnus.org> (Lars Ingebrigtsen's message of "Sun, 18 Jul 2021 21:21:43 +0200") Message-ID: <87y2a3i78a.fsf@linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > 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: diff --git a/lisp/startup.el b/lisp/startup.el index 456c01efd1..46252e7b93 100644 --- a/lisp/startup.el +++ b/lisp/startup.el @@ -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)) (setq displayable-buffers (cons buf displayable-buffers)) ;; Set the file buffer to the current buffer so ;; that it will be used with "--eval" and And the same for drag and drop. From unknown Tue Jun 17 01:43:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#3909: bug#12915: bug#3909: 23.1.50; Drag drop events in command history? Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Jul 2021 22:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 3909 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juri Linkov Cc: Glenn Morris , 12915@debbugs.gnu.org, 3909@debbugs.gnu.org, Stefan Monnier , Dani Moncayo Received: via spool by 3909-submit@debbugs.gnu.org id=B3909.162664865711676 (code B ref 3909); Sun, 18 Jul 2021 22:51:01 +0000 Received: (at 3909) by debbugs.gnu.org; 18 Jul 2021 22:50:57 +0000 Received: from localhost ([127.0.0.1]:57576 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5Fce-00032F-Pj for submit@debbugs.gnu.org; Sun, 18 Jul 2021 18:50:56 -0400 Received: from quimby.gnus.org ([95.216.78.240]:38704) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5Fcc-00031z-RR; Sun, 18 Jul 2021 18:50:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=CfoiDvpSZ485rTSvKlQwmSZrVObtDde4g3NCOBKHr3s=; b=T52otU3y92YIT/jOB4vK5LeDfb 0pkcLz1jof1DS/k8xwQK+7tkHdAlsONJUtw42XmpPaLbOkOUlnLW9Qc+djhYoE6bDBvupFVN0Tokf uE0hj4T33dbe5nk7tZ/JFVPOaQqMxKIaboxTsoCQBjloKfnp0Z0J6+qxdNhrHZ1pNZfY=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m5FcS-0004ux-96; Mon, 19 Jul 2021 00:50:46 +0200 From: Lars Ingebrigtsen References: <87v957mnqw.fsf_-_@gnus.org> <87y2a3i78a.fsf@linkov.net> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEVTUlYrKi19fYGj pKjz8/T///+yhuWBAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+UHEhYxBBv2f/wAAAGHSURBVDjLbZPt YYQwCIZBMwDpdQCvdwN4kgGsYf+ZGgiJX80PNTzyAuYVAACjLQK96BP4qvGyHX5+ACYYphrHFseR eWJ+lWsJU0vAiC5FMh8zdumHg04AyfahAVAVigieJOcMJEIjjw5qHChWEES2BopS0cdaqIC8S1Hr GzCJyD57GQi1Rnm4Ap+VDKStiSVmwApEV+1rnCnpsxUbNe7VQ6ay2QZrKyhYHSTWt+qgCpJP+Jaq a0RrszcVpBNrKreP+K1CGoA6Rm5HqKXzoI2RgaaEXy4lHzDQj8NrLFNxwhGQv8/AJ4ANiNkjNKCu 8JWPQGe6ZvRzTZ6QF5s2dxBqOPFiLe7gkVX/ZSXwKBULYIx9KDSA5ZsOQdb6J5TDgin6cWvkNbtH uovNHM3x9b9xp6pxJZ6XZVB5Pz11O3VABpDi+6NNzyegNsfwW24MF6Cjr+M28nYHahNOnztQA+Qc b8DMIPPzBvTrcg54BZbAy3qX0viY8A7ewvO493SssQDE/wCf4wr+AKAOadJ+NaBFAAAAJXRFWHRk YXRlOmNyZWF0ZQAyMDIxLTA3LTE4VDIyOjQ5OjA0KzAwOjAwnI7QyAAAACV0RVh0ZGF0ZTptb2Rp ZnkAMjAyMS0wNy0xOFQyMjo0OTowNCswMDowMO3TaHQAAAAASUVORK5CYII= X-Now-Playing: David Bowie's _"Heroes"_: ""Heroes"" Date: Mon, 19 Jul 2021 00:50:42 +0200 In-Reply-To: <87y2a3i78a.fsf@linkov.net> (Juri Linkov's message of "Mon, 19 Jul 2021 01:32:05 +0300") Message-ID: <878s23me2l.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Juri Linkov 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 a [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Juri Linkov 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 From unknown Tue Jun 17 01:43:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#3909: bug#12915: bug#3909: 23.1.50; Drag drop events in command history? Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Jul 2021 15:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 3909 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Lars Ingebrigtsen Cc: Glenn Morris , 12915@debbugs.gnu.org, 3909@debbugs.gnu.org, Stefan Monnier , Dani Moncayo Received: via spool by 3909-submit@debbugs.gnu.org id=B3909.162670943721331 (code B ref 3909); Mon, 19 Jul 2021 15:44:02 +0000 Received: (at 3909) by debbugs.gnu.org; 19 Jul 2021 15:43:57 +0000 Received: from localhost ([127.0.0.1]:59948 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5VQy-0005Xu-TD for submit@debbugs.gnu.org; Mon, 19 Jul 2021 11:43:57 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:46257) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5VQw-0005XS-Q0; Mon, 19 Jul 2021 11:43:55 -0400 Received: (Authenticated sender: juri@linkov.net) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id E3998E0003; Mon, 19 Jul 2021 15:43:46 +0000 (UTC) From: Juri Linkov Organization: LINKOV.NET References: <87v957mnqw.fsf_-_@gnus.org> <87y2a3i78a.fsf@linkov.net> <878s23me2l.fsf@gnus.org> Date: Mon, 19 Jul 2021 18:24:08 +0300 In-Reply-To: <878s23me2l.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 19 Jul 2021 00:50:42 +0200") Message-ID: <87h7gqnzj3.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) >>> 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. >> >> @@ -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). `find-file' can't be such central place, because there are many other file-reading commands like find-file-other-window, find-file-other-frame, … Long ago I tried: (defun add-file-name-to-history () "Add the name of the file just opened to the history." (when (and buffer-file-name (not buffer-read-only)) (add-to-history 'file-name-history buffer-file-name))) (add-hook 'find-file-hook 'add-file-name-to-history) (add-hook 'first-change-hook 'add-file-name-to-history) But it clutters up the history. Maybe a new defcustom e.g. `add-file-name-commands' could help with such options as a list of command names to selectively add their args to the history, or a regexp of command names. > But I guess we could just have a function like > `add-to-file-name-history' if we wanted to future-proof that? This is not specific to the file history, the same requests were about e.g. describe-function, describe-variable, … So also tried: (define-advice describe-function (:before (function)) "Add function name to the history." (when (and function (symbolp function)) (add-to-history 'minibuffer-history (symbol-name function)))) (define-advice describe-variable (:before (variable &optional _buffer _frame)) "Add variable name to the history." (when (and variable (symbolp variable)) (add-to-history 'minibuffer-history (symbol-name variable)))) (define-advice describe-symbol (:before (symbol &optional _buffer _frame)) "Add symbol name to the history." (when (and symbol (symbolp symbol)) (add-to-history 'minibuffer-history (symbol-name symbol)))) But still too much clutter. Maybe a more general defcustom is needed that will accept a list of 3 parameters: command name, its argument number, and a history variable, e.g. '((find-file-other-window 1 file-name-history) …) From unknown Tue Jun 17 01:43:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#3909: bug#12915: bug#3909: 23.1.50; Drag drop events in command history? Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Jul 2021 15:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 3909 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juri Linkov Cc: Glenn Morris , 12915@debbugs.gnu.org, 3909@debbugs.gnu.org, Stefan Monnier , Dani Moncayo Received: via spool by 3909-submit@debbugs.gnu.org id=B3909.162670989530719 (code B ref 3909); Mon, 19 Jul 2021 15:52:02 +0000 Received: (at 3909) by debbugs.gnu.org; 19 Jul 2021 15:51:35 +0000 Received: from localhost ([127.0.0.1]:59988 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5VYM-0007zO-MW for submit@debbugs.gnu.org; Mon, 19 Jul 2021 11:51:34 -0400 Received: from quimby.gnus.org ([95.216.78.240]:46748) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5VYL-0007z7-8L; Mon, 19 Jul 2021 11:51:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=S+W1mokRcDSN69mbBtsB4dEp08ngfzc49q+T4mJNXDs=; b=jtKNrFfMVIoJPDFfSjo5OlfTkM M4l8MZX6nTMUSSR1bKKUveMafHkMJJbO3Ux9FMaSadwhSHav/TOQU6Ur9x9HWmyWg0w9YSue7T3kz 6/pR9UU10tAfErBlyAJVm/ESKwpOhqEzKCqWubD3mUXVsPfNQtWo1UH0yxzOTgsylNnU=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m5VYB-0008Sa-W5; Mon, 19 Jul 2021 17:51:26 +0200 From: Lars Ingebrigtsen References: <87v957mnqw.fsf_-_@gnus.org> <87y2a3i78a.fsf@linkov.net> <878s23me2l.fsf@gnus.org> <87h7gqnzj3.fsf@mail.linkov.net> X-Now-Playing: Chuck Person's _Chuck Person's Eccojams Vol. 1_: "A8" Date: Mon, 19 Jul 2021 17:51:23 +0200 In-Reply-To: <87h7gqnzj3.fsf@mail.linkov.net> (Juri Linkov's message of "Mon, 19 Jul 2021 18:24:08 +0300") Message-ID: <878s22l2tg.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Juri Linkov writes: >> But I guess we could just have a function like >> `add-to-file-name-history' if we wanted to future-proof that? > > This is not specific to the file history, the same requests were about > e.g. des [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Juri Linkov writes: >> But I guess we could just have a function like >> `add-to-file-name-history' if we wanted to future-proof that? > > This is not specific to the file history, the same requests were about > e.g. describe-function, describe-variable, =E2=80=A6 So also tried: I think you're over-thinking this. :-) There's a lot of controversial things we could be doing in the history area, but we're not doing it, because: > But still too much clutter. Adding drag'n'drop file names and command name file names isn't controversial, and can be done easily, so we should just do that. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Tue Jun 17 01:43:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#3909: bug#12915: bug#3909: 23.1.50; Drag drop events in command history? Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Jul 2021 22:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 3909 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Lars Ingebrigtsen Cc: Glenn Morris , 12915@debbugs.gnu.org, 3909@debbugs.gnu.org, Stefan Monnier , Dani Moncayo Received: via spool by 3909-submit@debbugs.gnu.org id=B3909.162673212510513 (code B ref 3909); Mon, 19 Jul 2021 22:03:02 +0000 Received: (at 3909) by debbugs.gnu.org; 19 Jul 2021 22:02:05 +0000 Received: from localhost ([127.0.0.1]:60548 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5bKu-0002jP-Ri for submit@debbugs.gnu.org; Mon, 19 Jul 2021 18:02:05 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:56705) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5bKs-0002iX-GO; Mon, 19 Jul 2021 18:02:03 -0400 Received: (Authenticated sender: juri@linkov.net) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 7180EE0002; Mon, 19 Jul 2021 22:01:53 +0000 (UTC) From: Juri Linkov Organization: LINKOV.NET References: <87v957mnqw.fsf_-_@gnus.org> <87y2a3i78a.fsf@linkov.net> <878s23me2l.fsf@gnus.org> <87h7gqnzj3.fsf@mail.linkov.net> <878s22l2tg.fsf@gnus.org> Date: Tue, 20 Jul 2021 00:57:24 +0300 In-Reply-To: <878s22l2tg.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 19 Jul 2021 17:51:23 +0200") Message-ID: <8735savuez.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > Juri Linkov writes: > >>> But I guess we could just have a function like >>> `add-to-file-name-history' if we wanted to future-proof that? >> >> This is not specific to the file history, the same requests were about >> e.g. describe-function, describe-variable, … So also tried: > > I think you're over-thinking this. :-) I completely agree. > There's a lot of controversial things we could be doing in the history > area, but we're not doing it, because: > >> But still too much clutter. > > Adding drag'n'drop file names and command name file names isn't > controversial, and can be done easily, so we should just do that. Then it should be enough just to add after the find-file call: (add-to-history 'file-name-history (abbreviate-file-name file)) in command-line-1 and drag-n-drop functions. From unknown Tue Jun 17 01:43:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#3909: bug#12915: bug#3909: 23.1.50; Drag drop events in command history? Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 20 Jul 2021 11:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 3909 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juri Linkov Cc: Glenn Morris , 3909@debbugs.gnu.org, Stefan Monnier , Dani Moncayo , 12915@debbugs.gnu.org Received: via spool by 3909-submit@debbugs.gnu.org id=B3909.16267817477954 (code B ref 3909); Tue, 20 Jul 2021 11:50:02 +0000 Received: (at 3909) by debbugs.gnu.org; 20 Jul 2021 11:49:07 +0000 Received: from localhost ([127.0.0.1]:32997 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5oFH-00024D-N5 for submit@debbugs.gnu.org; Tue, 20 Jul 2021 07:49:07 -0400 Received: from quimby.gnus.org ([95.216.78.240]:56352) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5oFF-00023e-R9; Tue, 20 Jul 2021 07:49:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=8XbiL6grRZuHULy/XGtHCYemvJyvHpGQhha/EnKdS3U=; b=gwfwFCIktAnpqL5pX2FotyhmWP KUXzqKFVy2bBn93UEV/Zdc8MnhNIVW4kaE/n8JoGzXHTJou213/8IiLESnRLcHyB6YoIOCtVcdhS6 SnLeTGl/HdZbGfzNlwWmBtYCOBNznpXqXVhJewU1DQUMSsRnwCnGBcrj3970VU1a7GXo=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m5oF5-0002h0-4e; Tue, 20 Jul 2021 13:48:57 +0200 From: Lars Ingebrigtsen References: <87v957mnqw.fsf_-_@gnus.org> <87y2a3i78a.fsf@linkov.net> <878s23me2l.fsf@gnus.org> <87h7gqnzj3.fsf@mail.linkov.net> <878s22l2tg.fsf@gnus.org> <8735savuez.fsf@mail.linkov.net> X-Now-Playing: Squarepusher's _Be Up A Hello_: "Hitsonu" Date: Tue, 20 Jul 2021 13:48:54 +0200 In-Reply-To: <8735savuez.fsf@mail.linkov.net> (Juri Linkov's message of "Tue, 20 Jul 2021 00:57:24 +0300") Message-ID: <871r7ti4t5.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Juri Linkov writes: > Then it should be enough just to add after the find-file call: > > (add-to-history 'file-name-history (abbreviate-file-name file)) > > in command-line-1 and drag-n-drop functions. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Juri Linkov writes: > Then it should be enough just to add after the find-file call: > > (add-to-history 'file-name-history (abbreviate-file-name file)) > > in command-line-1 and drag-n-drop functions. I've now done so, but via a trivial helper function, and I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 20 07:49:13 2021 Received: (at control) by debbugs.gnu.org; 20 Jul 2021 11:49:13 +0000 Received: from localhost ([127.0.0.1]:33002 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5oFN-00024m-4F for submit@debbugs.gnu.org; Tue, 20 Jul 2021 07:49:13 -0400 Received: from quimby.gnus.org ([95.216.78.240]:56366) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5oFJ-00023z-AF for control@debbugs.gnu.org; Tue, 20 Jul 2021 07:49:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=xF7TuB0wEAghrc+WYXM/VdZQlOwPLTI2I65fLpZAZ+0=; b=pJG5KKE/zC4efc1DOdD35xo7n2 a77mAhAWWDbYRJbzxxkOETmRMs/5qPcT3Tc39Rj0VcyX5BDB/TRzkJFsY5lnR4ffPJGG3ZnUz3J8k n0FXOEBTNjiYTY7E3TwJ/ht8Ign9yo0CalQbhNC6h4tmEi8pjYYg9peSSnD7L6KFt2zg=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m5oFB-0002h9-KJ for control@debbugs.gnu.org; Tue, 20 Jul 2021 13:49:03 +0200 Date: Tue, 20 Jul 2021 13:49:01 +0200 Message-Id: <87zguhgq8i.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #12915 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 12915 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 12915 28.1 quit