From unknown Sat Sep 06 02:33:09 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#4230 <4230@debbugs.gnu.org> To: bug#4230 <4230@debbugs.gnu.org> Subject: Status: 23.1; bookmark-handle-bookmark: bind `use-file-dialog' to nil to relocate Reply-To: bug#4230 <4230@debbugs.gnu.org> Date: Sat, 06 Sep 2025 09:33:09 +0000 retitle 4230 23.1; bookmark-handle-bookmark: bind `use-file-dialog' to nil = to relocate reassign 4230 emacs submitter 4230 "Drew Adams" severity 4230 normal thanks From drew.adams@oracle.com Fri Aug 21 15:45:33 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 21 Aug 2009 22:45:34 +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.5 required=4.0 tests=AWL,FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7LMjWLA009404 for ; Fri, 21 Aug 2009 15:45:33 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MecrT-0008MW-Ss for bug-gnu-emacs@gnu.org; Fri, 21 Aug 2009 18:45:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MecrP-0008Li-F0 for bug-gnu-emacs@gnu.org; Fri, 21 Aug 2009 18:45:31 -0400 Received: from [199.232.76.173] (port=43246 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MecrP-0008Lb-6p for bug-gnu-emacs@gnu.org; Fri, 21 Aug 2009 18:45:27 -0400 Received: from acsinet12.oracle.com ([141.146.126.234]:29562) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MecrO-0007jO-MF for bug-gnu-emacs@gnu.org; Fri, 21 Aug 2009 18:45:26 -0400 Received: from rgminet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by acsinet12.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n7LMin6Y002333 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 21 Aug 2009 22:44:52 GMT Received: from abhmt007.oracle.com (abhmt007.oracle.com [141.146.116.16]) by rgminet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n7LMjKp4025925 for ; Fri, 21 Aug 2009 22:45:20 GMT Received: from dradamslap1 (/141.144.245.31) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 21 Aug 2009 15:45:19 -0700 From: "Drew Adams" To: Subject: 23.1; bookmark-handle-bookmark: bind `use-file-dialog' to nil to relocate Date: Fri, 21 Aug 2009 15:45:19 -0700 Message-ID: <95DE0F7C73CE4F63AAE1BEA19D46D5AA@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcoisQ84xykRKKCjS/SbkSnnoRMBXw== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Source-IP: abhmt007.oracle.com [141.146.116.16] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090203.4A8F2380.00EA:SCFSTAT5015188,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) >From the definition of bookmark-handle-bookmark: (let ((file (bookmark-get-filename bookmark))) (when file ;Don't know how to relocate if there's no `file'. (setq file (expand-file-name file)) (ding) (if (y-or-n-p (concat (file-name-nondirectory file) " nonexistent. Relocate \"" bookmark "\"? ")) ... A bookmark can be to a directory or a file. AFAICT, at least on Windows, you cannot choose a directory using a file selection box - it insists on a file. Or perhaps there is another kind of file selection box that allows this, but it is not being used by Emacs. So `use-file-dialog' should be bound to nil around the call to `y-or-n-p'. I had a bookmark to a directory that needed to be relocated. I tried to jump to the bookmark by clicking it with the mouse in the list from `C-x r l'. Because I used the mouse, I got the file dialog box. I could not find a way to specify a new directory - choosing a directory just opens the dialog box to the files in the directory, waiting for you to pick one. In GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600) of 2009-07-29 on SOFT-MJASON Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.4)' From kfogel@red-bean.com Sun Oct 4 19:39:40 2009 Received: (at 4230-close) by emacsbugs.donarmstrong.com; 5 Oct 2009 02:39:40 +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.0 required=4.0 tests=AWL autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from sanpietro.red-bean.com (Debian-exim@sanpietro.red-bean.com [66.146.206.141]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n952dd1C017563 for <4230-close@emacsbugs.donarmstrong.com>; Sun, 4 Oct 2009 19:39:40 -0700 Received: from localhost ([127.0.0.1]:57342 helo=floss ident=kfogel) by sanpietro.red-bean.com with esmtp (Exim 4.69) (envelope-from ) id 1MudUA-0008Nc-R6 for 4230-close@emacsbugs.donarmstrong.com; Sun, 04 Oct 2009 21:39:38 -0500 From: Karl Fogel To: 4230-close@debbugs.gnu.org Subject: Fixed "bookmark-handle-bookmark: bind `use-file-dialog' to nil to relocate" Reply-To: Karl Fogel Date: Sun, 04 Oct 2009 22:39:38 -0400 Message-ID: <87k4zamumt.fsf@red-bean.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii fixed -- Thanks for the report. Fix committed; please test this, as I do not have a Windows system myself to test it on. $ cvs ci -F msg lisp/bookmark.el lisp/ChangeLog /sources/emacs/emacs/lisp/bookmark.el,v <-- lisp/bookmark.el new revision: 1.130; previous revision: 1.129 /sources/emacs/emacs/lisp/ChangeLog,v <-- lisp/ChangeLog new revision: 1.16356; previous revision: 1.16355 Mailing notification to emacs-diffs@gnu.org... sent. $ From unknown Sat Sep 06 02:33:09 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 02 Nov 2009 15:24:12 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A long time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator