[Top][All Lists]

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

M-%, in query-replace, offers less-than-ideal default replacement text

From: Eric Hanchrow
Subject: M-%, in query-replace, offers less-than-ideal default replacement text
Date: Mon, 18 Jun 2007 17:07:20 -0700
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux)

Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the address@hidden mailing list.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

* start emacs with "emacs -Q -nw"

* in the *scratch* buffer, prepare two lines of "foo" as test data by
  typing F O O RET F O O RET.

* M-< C-s foo M-% bar RET SPC q

Thus we have replaced the first "foo" with "bar".  So far, so good.

* C-a C-s foo M-% 

Note that the prompt reads "Query replace foo with:", offering no
default text.  Nothing wrong with that ... however, now hit M-p to see
the most-recent value in the command history.  Here's the problem: I'd
expect to see "bar" here, but instead I see "foo".  I have to hit M-p
a second time to see "bar".

I don't think it makes sense to see "foo" here, since "foo" was never
used as replacement text.

If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
/usr/local/src/emacs-cvs/etc/DEBUG for instructions.

In GNU Emacs (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2007-06-13 on debian
configured using `configure  '--enable-maintainer-mode''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: nil
  locale-coding-system: utf-8
  default-enable-multibyte-characters: t

Major mode: Fundamental

Minor modes in effect:
  erc-ring-mode: t
  erc-pcomplete-mode: t
  erc-netsplit-mode: t
  erc-button-mode: t
  erc-fill-mode: t
  erc-stamp-mode: t
  erc-autojoin-mode: t
  erc-track-mode: t
  erc-track-minor-mode: t
  erc-match-mode: t
  erc-log-mode: t
  erc-services-mode: t
  erc-irccontrols-mode: t
  erc-noncommands-mode: t
  erc-readonly-mode: t
  recentf-mode: t
  display-time-mode: t
  shell-dirtrack-mode: t
  iswitchb-mode: t
  encoded-kbd-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
y . RET " g r i p e " SPC " m o a n " RET SPC " b i 
t c h " RET I SPC k n o w SPC a l l SPC t h o s e SPC 
t o w e DEL DEL DEL DEL w o r d s SPC : - ) RET C-c 
C-@ c h e w y RET C-c C-@ y e a h ! RET t h a t ' s 
SPC p r o b a b l y SPC w h y SPC i t DEL DEL t h e 
SPC w o r d SPC c o DEL DEL o c c u r r i e DEL DEL 
e d SPC t o SPC m e . RET i t SPC c a r p s SPC a n 
d SPC c r o a k s . RET a n d SPC w a r n s SPC a n 
d SPC d i e s . RET w h o SPC k n o w s SPC w h a t 
SPC v DEL c o l u DEL o r f u l SPC v e r b s SPC a 
r e SPC i n SPC s t o r e SPC i n SPC p e r l SPC 6 
. RET C-x b g r o RET g , RET c y l RET q l RET q l 
RET q l RET c y l C-x C-f d r TAB RET ESC x r e p l 
C-g C-h r C-h K C-s C-s % C-s C-a TAB RET C-v q ESC 
x r e p o r t - e m TAB b TAB RET

Recent messages:
Sorting threads...done
Generating summary...done
Mark all unread articles as read? (y or n) 
Exiting summary buffer and applying spam rules
Registering 0  articles with classification spam, check spam-use-gmane
Marking spam as expired without moving it
Mark saved where search started
Loading emacsbug...done

People studying literature rarely say anything that would be of the
slightest use to those producing it.
        -- Paul Graham

reply via email to

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