GNU bug report logs - #9952
Default value displayed twice in `goto-line' prompt

Previous Next

Package: emacs;

Reported by: Dani Moncayo <dmoncayo <at> gmail.com>

Date: Fri, 4 Nov 2011 16:48:01 UTC

Severity: wishlist

Tags: patch

Merged with 9201

Done: Juri Linkov <juri <at> jurta.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Juri Linkov <juri <at> jurta.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#9952: closed (Default value displayed twice in `goto-line'
 prompt)
Date: Sun, 29 Jul 2012 18:20:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sun, 29 Jul 2012 21:12:07 +0300
with message-id <87boiysah5.fsf <at> mail.jurta.org>
and subject line Re: bug#9952: Default value displayed twice in `goto-line' prompt
has caused the debbugs.gnu.org bug report #9952,
regarding Default value displayed twice in `goto-line' prompt
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
9952: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9952
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Dani Moncayo <dmoncayo <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Default value displayed twice in `goto-line' prompt
Date: Fri, 4 Nov 2011 17:44:30 +0100
Hi,

From "emacs -Q":
1. Type "3 M-g g".

Observed minibuffer prompt: "Goto line (3) (default 3): ".
Expected: "Goto line (default 3): ".

I think that the following patch fixes this problem:

=== modified file 'lisp/simple.el'
--- lisp/simple.el      2011-10-27 03:01:40 +0000
+++ lisp/simple.el      2011-11-04 16:36:39 +0000
@@ -924,10 +924,7 @@
                 (concat " in " (buffer-name buffer))
               "")))
        ;; Read the argument, offering that number (if any) as default.
-       (list (read-number (format (if default "Goto line%s (%s): "
-                                    "Goto line%s: ")
-                                  buffer-prompt
-                                  default)
+       (list (read-number (format "Goto line%s: " buffer-prompt)
                           default)
             buffer))))
   ;; Switch to the desired buffer, one way or another.



In GNU Emacs 24.0.90.1 (i386-mingw-nt6.1.7601)
 of 2011-10-27 on DANI-PC
Windowing system distributor `Microsoft Corp.', version 6.1.7601
configured using `configure --with-gcc (4.5)'

-- 
Dani Moncayo


[Message part 3 (message/rfc822, inline)]
From: Juri Linkov <juri <at> jurta.org>
To: Dani Moncayo <dmoncayo <at> gmail.com>
Cc: 9952-done <at> debbugs.gnu.org
Subject: Re: bug#9952: Default value displayed twice in `goto-line' prompt
Date: Sun, 29 Jul 2012 21:12:07 +0300
> Ping.

Thanks, installed.


This bug report was last modified 12 years and 294 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.