bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#9952: Default value displayed twice in `goto-line' prompt


From: Dani Moncayo
Subject: bug#9952: 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]