From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#4230: 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> Reply-To: Drew Adams , 4230@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1250896034 5216 80.91.229.12 (21 Aug 2009 23:07:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Aug 2009 23:07:14 +0000 (UTC) To: Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 22 01:07:07 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MedCM-0003jb-LW for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Aug 2009 01:07:07 +0200 Original-Received: from localhost ([127.0.0.1]:50712 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MedCM-0007Sw-1a for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Aug 2009 19:07:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MedCH-0007Sq-Gu for bug-gnu-emacs@gnu.org; Fri, 21 Aug 2009 19:07:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MedCB-0007Sc-Ml for bug-gnu-emacs@gnu.org; Fri, 21 Aug 2009 19:07:01 -0400 Original-Received: from [199.232.76.173] (port=60579 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MedCB-0007SZ-JV for bug-gnu-emacs@gnu.org; Fri, 21 Aug 2009 19:06:55 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:33109) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MedCA-0002E6-Vb for bug-gnu-emacs@gnu.org; Fri, 21 Aug 2009 19:06:55 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7LN6pGT013348; Fri, 21 Aug 2009 16:06:53 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n7LMoAp7010022; Fri, 21 Aug 2009 15:50:10 -0700 Resent-Date: Fri, 21 Aug 2009 15:50:10 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: "Drew Adams" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Fri, 21 Aug 2009 22:50:09 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 4230 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12508947349407 (code B ref -1); Fri, 21 Aug 2009 22:50:09 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 21 Aug 2009 22:45:34 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-Received: from dradamslap1 (/141.144.245.31) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 21 Aug 2009 15:45:19 -0700 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) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Fri, 21 Aug 2009 19:07:01 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:30458 Archived-At: >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)'