From: Dani Moncayo <dmoncayo@gmail.com>
To: 9952@debbugs.gnu.org
Subject: bug#9952: Default value displayed twice in `goto-line' prompt
Date: Fri, 4 Nov 2011 17:44:30 +0100 [thread overview]
Message-ID: <CAH8Pv0jUT6fSPRwzn5PDT2f9OqzRNz2tFYg_=wer6_ZiJO94FQ@mail.gmail.com> (raw)
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
next reply other threads:[~2011-11-04 16:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-04 16:44 Dani Moncayo [this message]
2011-11-04 20:33 ` bug#9952: Default value displayed twice in `goto-line' prompt Juri Linkov
2011-11-04 21:41 ` Dani Moncayo
2011-11-05 8:23 ` Dani Moncayo
2011-11-06 14:34 ` Juri Linkov
2012-07-28 18:02 ` Dani Moncayo
2012-07-29 18:12 ` Juri Linkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAH8Pv0jUT6fSPRwzn5PDT2f9OqzRNz2tFYg_=wer6_ZiJO94FQ@mail.gmail.com' \
--to=dmoncayo@gmail.com \
--cc=9952@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.