unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#10118: C-w folds case too eagerly
@ 2011-11-23 14:29 Stefan Monnier
  2011-11-23 20:39 ` Juri Linkov
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier @ 2011-11-23 14:29 UTC (permalink / raw)
  To: 10118

Package: Emacs

   % emacs -Q
   TOTORO TOTO M-b
   C-r C-w RO

this fails to find "TOTORO" because we end up looking for "totoRO"
(without ignoring case) rather than "TOTORO".


        Stefan



In GNU Emacs 24.0.91.1 (i686-pc-linux-gnu, GTK+ Version 2.24.7)
 of 2011-11-22 on pastel
Windowing system distributor `The X.Org Foundation', version 11.0.11101901
configured using `configure  'CFLAGS=-Wall -Wno-pointer-sign -DUSE_LISP_UNION_TYPE -DSYNC_INPUT -DENABLE_CHECKING -DXASSERTS -DFONTSET_DEBUG -g -O0' '--with-tiff=no''

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: fr_CH.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Summary

Minor modes in effect:
  gnus-mailing-list-mode: t
  electric-pair-mode: t
  electric-indent-mode: t
  url-handler-mode: t
  global-reveal-mode: t
  reveal-mode: t
  auto-insert-mode: t
  savehist-mode: t
  minibuffer-electric-default-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<right> <down> <left> <right> <down> <left> <right> 
<up> <left> <right> <up> <left> <right> <up> <left> 
<right> <up> <left> <right> <up> <left> <right> <down> 
<left> <right> <down> <left> <right> <down> <left> 
<right> <down> <right> <up> <up> <up> <up> <left> <left> 
<right> <down> <left> <right> <down> <left> <right> 
<down> <left> <right> <up> <up> <up> <left> <right> 
<down> <left> <right> <down> <left> <right> <up> <up> 
<left> <right> <down> <left> <right> <down> <left> 
<right> <up> <up> <left> <right> <down> <left> <right> 
<down> <left> <right> <down> <left> <right> <down> 
<left> <right> <down> <left> <right> <up> <up> <up> 
<up> <up> <left> <right> <down> <left> <right> <down> 
<left> <right> <down> <left> <right> <up> <up> <left> 
<right> <up> <left> <right> <down> <left> <right> <down> 
<left> <right> <down> <left> <right> <down> <left> 
<right> <up> <left> <right> <down> <left> <right> <down> 
<left> <right> <up> <left> <right> <up> <left> <right> 
<up> <left> <right> <down> <left> <right> <down> <left> 
<right> <down> <left> <right> <left> <return> I e . 
<backspace> <backspace> . e . SPC C - s SPC T O T O 
SPC M - e SPC C - a SPC _ <backspace> C - k SPC f o 
o SPC R E T SPC s h o u l d SPC s e a r c h SPC f o 
r SPC " f o o " SPC w h i l e SPC i g n o r e i n g 
SPC c a s e . <right> <up> <left> <right> <up> <left> 
<right> <up> <left> <right> <up> <left> <right> <down> 
<left> <right> <down> <left> <right> <left> <down> 
<right> <right> <right> <right> <right> <right> <right> 
<C-left> C-d C-e <right> <up> <left> <right> <up> <left> 
<right> <down> <left> <right> <down> <left> <right> 
<switch-frame> <switch-frame> <switch-frame> <switch-frame> 
<switch-frame> <select-window> <help-echo> M-x r e 
p - e m - b <tab> <return>

Recent messages:
Mark set
byte-code: End of buffer [2 times]
Auto-saving...done
Mark set
byte-code: End of buffer
Auto-saving...done
Mark set
Quit
Mark activated
Auto-saving...done

Load-path shadows:
None found.

Features:
(shadow emacsbug multi-isearch debug woman tutorial help-macro man
info-look help-at-pt ehelp apropos cus-edit cus-start cus-load gnus-fun
newcomment supercite regi pp qp executable copyright gnus-html
browse-url xml url-cache mm-url url url-proxy url-privacy url-expand
url-methods url-history url-cookie url-util mule-util sort smiley
ansi-color gnus-cite flow-fill mail-extr gnus-async gnus-bcklg gnus-ml
nndraft nnmh utf-7 rfc2104 nnimap parse-time utf7 gnutls netrc
network-stream starttls tls gnus-agent gnus-srvr gnus-score score-mode
nnvirtual gnus-msg gnus-art mm-uu mml2015 epg-config mm-view mml-smime
smime dig mailcap nntp gnus-cache nnir gnus-sum nnoo gnus-group
gnus-undo nnmail mail-source server gnus-start gnus-spec gnus-int
gnus-range message sendmail format-spec rfc822 mml mml-sec mm-decode
mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums
mailabbrev gmm-utils mailheader gnus-win gnus gnus-ems nnheader
mail-utils wid-edit noutline outline easy-mmode flyspell ispell eldoc
checkdoc regexp-opt thingatpt help-mode view prog-mode load-dir electric
url-handlers url-parse auth-source warnings eieio byte-opt bytecomp
byte-compile cconv macroexp assoc gnus-util password-cache url-vars
mm-util mail-prsvr reveal autoinsert uniquify advice help-fns
advice-preload time-date savehist minibuf-eldef disp-table cl
cl-loaddefs all-autoloads company-autoloads debbugs-autoloads
epoch-view-autoloads jgraph-mode-autoloads js2-mode-autoloads
lmc-autoloads load-dir-autoloads markchars-autoloads minimap-autoloads
muse-autoloads info easymenu oauth2-autoloads quarter-plane-autoloads
rainbow-mode-autoloads register-list-autoloads sisu-mode-autoloads
svg-clock-autoloads undo-tree-autoloads uni-confusables-autoloads
windresize-autoloads package tabulated-list proof-site proof-autoloads
pg-vars bbdb-autoloads agda2 tooltip ediff-hook vc-hooks lisp-float-type
mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register
page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock
font-lock syntax font-core frame cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs
button faces cus-face files text-properties overlay sha1 md5 base64
format env code-pages mule custom widget hashtable-print-readable
backquote make-network-process dbusbind dynamic-setting
system-font-setting font-render-setting move-toolbar gtk x-toolkit
x multi-tty emacs)





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#10118: C-w folds case too eagerly
  2011-11-23 14:29 bug#10118: C-w folds case too eagerly Stefan Monnier
@ 2011-11-23 20:39 ` Juri Linkov
  2011-12-01 19:45   ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: Juri Linkov @ 2011-11-23 20:39 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: 10118

>    % emacs -Q
>    TOTORO TOTO M-b
>    C-r C-w RO
>
> this fails to find "TOTORO" because we end up looking for "totoRO"
> (without ignoring case) rather than "TOTORO".

Sorry, I don't know how to solve this puzzle.  The value `not-yanks'
of `search-upper-case' explicitly tells Isearch to downcase the word
pulled from the buffer.





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#10118: C-w folds case too eagerly
  2011-11-23 20:39 ` Juri Linkov
@ 2011-12-01 19:45   ` Stefan Monnier
  0 siblings, 0 replies; 3+ messages in thread
From: Stefan Monnier @ 2011-12-01 19:45 UTC (permalink / raw)
  To: Juri Linkov; +Cc: 10118

>> % emacs -Q
>> TOTORO TOTO M-b
>> C-r C-w RO
>> 
>> this fails to find "TOTORO" because we end up looking for "totoRO"
>> (without ignoring case) rather than "TOTORO".

> Sorry, I don't know how to solve this puzzle.  The value `not-yanks'
> of `search-upper-case' explicitly tells Isearch to downcase the word
> pulled from the buffer.

I know, but I think it's wrong.  I think that rather than downcase it,
it should only cause the case to stay ignored.  The behavior I'd expect
is something like:

- C-r C-w leads to "I-search: toto", which hides the uppercase nature of
  the yanked string, but doesn't actually throw it away.
- then typing "RO" leads to "I-search: TOTORO", where TOTO's uppercase
  nature is made explicit.


        Stefan





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-12-01 19:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-23 14:29 bug#10118: C-w folds case too eagerly Stefan Monnier
2011-11-23 20:39 ` Juri Linkov
2011-12-01 19:45   ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).