all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: Word search
@ 2008-03-25  8:13 Vincent Belaïche
  2008-03-25 10:24 ` Jason Rumney
                   ` (2 more replies)
  0 siblings, 3 replies; 33+ messages in thread
From: Vincent Belaïche @ 2008-03-25  8:13 UTC (permalink / raw)
  To: rms; +Cc: juri, monnier, emacs-devel

[-- Attachment #1: Type: text/plain, Size: 2412 bytes --]


Hello valuated Emacs developpers,

Just to answer Richard's suggestion "let's ask them" and the wish to 
poll users : I am new to this mailing list and one suggestion I was 
going to make was concerning word search, when I discovered that this 
was already being discussed.

I am using Emacs mainly for editing LaTeX documents where auto-fill-mode 
+ indentation is active, and therefore word search is a must and 
incremental word search is a very very nice to have.

I fully agree with Juri's point that the current keys to enter word 
search is inconvenient, and I find the double meaning of C-w between 
usual editing and word search difficult (I would prefer to have a less 
easy to remember key to enter word search provided that that it does not 
overload the meaning of usual edition keys like C-w).

FYI, unfortunately I was never able to have word search work properly. 
For instance, when I try word search in the *info* node "Word search" 
and I type "C-sC-w" then I type "the words" (all of these things 
without double quotes) and then I type "", I would expect to find 
the first occurrence at the end of first line of info node text which is :

---- excerpt from info node Word Search --------------
Word search searches for a sequence of words without regard to how the
words are separated.  More precisely, you type a string of many words,
---- end of excerpt -------------------------------------

Instead of that, I get the following error message : 
"[(wrong-type-argument integer-or-marker-p t)]" which is displayed in 
the Minibuffer and has no trace in the *Message* buffer. Is that normal 
? My emacs version is "GNU Emacs 22.0.990.1 (i386-mingw-nt5.0.2195) of 
2007-05-31".

Sorry to dwell on it, if this is an already known or solved problem, I 
am jumping into this thread without having read all of it since the 
beginning.

BR,
        Vincent.


Richard Stallman a écrit :
>     But I doubt that many people use it because for many years of existence
>     of word search, very few people tried to find a way to enable incremental
>     word search (according to mailing list archives) until recently.
>
> Maybe you're right.  But let's ask them.
>
>
>
>
>   



_________________________________________________________________
Créez gratuitement votre disque dur virtuel Windows Live SkyDrive !
http://skydrive.live.com

[-- Attachment #2: Type: text/html, Size: 2743 bytes --]

^ permalink raw reply	[flat|nested] 33+ messages in thread
* Re: Word search
@ 2008-03-26 20:47 Vincent Belaïche
  2008-03-26 21:16 ` Drew Adams
  0 siblings, 1 reply; 33+ messages in thread
From: Vincent Belaïche @ 2008-03-26 20:47 UTC (permalink / raw)
  To: drew.adams; +Cc: juri, emacs-devel, rms, monnier

[-- Attachment #1: Type: text/plain, Size: 3582 bytes --]


Dear Drew,

I am realizing that there was no mistake in the mail before the latest 
one I sent, but that the mailing system has stripped off a part of it. 
What I meant was "C-sxxxC-w" where instread of "xxx" I had written "RET" 
between less-than and greater-than signs. But it seems that this xxx has 
been stripped off by the mailing system.
Similarly I meant that I terminated the interactive search by "C-s" or 
by "xxx" where xxx has the same meaning as above (a carriage return 
key). The fact is that I am writing to you with Thunderbird using an 
adds-on that allows to use hotmail without going through the Web 
interface (it seems that there is some bug with this when HTML is used).

More  answers embedded below (please read at least the last one) :

Drew Adams a écrit :
> Two comments: (1) help-gnu-emacs@gnu.org might be a more appropriate list.
> Consider moving this there. (2) Please use plain-text for these mailing lists.
>
> 	Sorry Drew, There was a mistake in my mail, I did not mean
>       "C-sC-w" but I meant "C-sC-w".
>
> What's the difference? They look the same to me.
>   

They were not the same when I sent the mail there was RET bracketted 
with LT and GT signs in between "C-s" and "C-w". So when I am sending 
this mail "C-sC-w" is different from "C-sC-w"
>       I tested it again and it does not work.
> 	
> 	That you for the information on the incremental word search 
> 	("C-sM-eC-w"). I tested it on the same node, and whether I terminate by 
> 	"C-s" or by "" it fails in the same way. To tell you the truth, I 
> 	had not even tried that, as the plain non incremental one was not 
> 	working in the first place.
>
> Not sure what you mean by terminate by "C-s" or by "". 
When I sent the mail between the pair of double quotes "" there was a 
RET bracketted by LT and GT signs. So when I ma sending this mail "" is 
different from "".
> Does it at least work, in
> the sense that it finds what you are looking for, regardless of how you
> terminate the search? 
It does not find what I am looking for. When I type "C-sM-eC-w" I enter 
Incremental word search (I can see that as on the left side of the 
minibuffer is written "Word I-search").  Then if I type "the words" and 
then RET   I get an error message "[(wrong-type-argument 
integer-or-marker-p t)]" and the cursor of the *info* buffer remains at 
the same position, that is to say on the Top Left of the window, just on 
the "F" in "File: emacs,  Node: Word Search,  Next: Regexp Search,  
Prev: Nonincremental Search,  Up: Search"

More strange is the following: if I enter again the incremental word 
search, and I type on the right arrow key, what happens is that the 
content of the *info* buffer is copied character by character into the 
minibuffer. That is to say, assume that I type 5 times on the right 
arrow key, then the effect is as if I had entered the five characters 
"F" "i" "l" "e" and ":" consecutively (remember that when I enter the 
Word-I-search the *info* buffer point is pointing at the beginning the 
text "File: emacs,  Node: Word Search,  Next: Regexp Search,  Prev: 
Nonincremental Search,  Up: Search"

Regards,
       Vincent.
> To terminate the search, you can just use RET or an arrow
> key or another non-isearch key (except C-g). What do you mean by ""?
>
>
>
>   



_________________________________________________________________
Votre contact a choisi Hotmail, l'e-mail ultra sécurisé. Créez un compte gratuitement !
http://www.windowslive.fr/hotmail/default.asp

[-- Attachment #2: Type: text/html, Size: 3906 bytes --]

^ permalink raw reply	[flat|nested] 33+ messages in thread
* Re: Word search
@ 2008-03-25 16:43 Vincent Belaïche
  2008-03-25 18:02 ` Drew Adams
  0 siblings, 1 reply; 33+ messages in thread
From: Vincent Belaïche @ 2008-03-25 16:43 UTC (permalink / raw)
  To: drew.adams; +Cc: juri, emacs-devel, rms, monnier

[-- Attachment #1: Type: text/plain, Size: 2306 bytes --]


Sorry Drew,

There was a mistake in my mail, I did not mean "C-sC-w" but I meant 
"C-sC-w". I tested it again and it does not work.

That you for the information on the incremental word search 
("C-sM-eC-w"). I tested it on the same node, and whether I terminate by 
"C-s" or  by "" it fails in the same way. To tell you the truth, I 
had not even tried that, as the plain non incremental one was not 
working in the first place.

Regards,
       Vincent.

Drew Adams a écrit :
> 	I fully agree with Juri's point that the current keys to enter word 
> 	search is inconvenient, and I find the double meaning of C-w between 
> 	usual editing and word search difficult (I would prefer to have a less 
> 	easy to remember key to enter word search provided that that it does not
>
> 	overload the meaning of usual edition keys like C-w).
>
> C-s C-w is not word search in the sense that you write below. C-s C-w yanks
> characters or words into the search string, starting at the cursor position.
> 	
> 	FYI, unfortunately I was never able to have word search work properly. 
> 	For instance, when I try word search in the *info* node "Word search" 
> 	and I type "C-sC-w" then I type "the words" (all of these things 
> 	without double quotes) and then I type "", I would expect to find 
> 	the first occurrence at the end of first line of info node text which is
> :
> 	
> 	---- excerpt from info node Word Search --------------
> 	Word search searches for a sequence of words without regard to how the
> 	words are separated. More precisely, you type a string of many words,
> 	---- end of excerpt -------------------------------------
> 	
> I think what you want is incremental search for words. In vanilla Emacs you can
> get to it this way: `C-s M-e C-w' - this is mentioned in the Emacs manual node
> you cited, Word Search. Library isearch+.el binds the same thing to `C-s M-w',
> which is a bit easier to use. 
>
> FYI, isearch+.el is here: http://www.emacswiki.org/cgi-bin/wiki/isearch%2b.el.
> It is described here: http://www.emacswiki.org/cgi-bin/wiki/IsearchPlus.
>
>
>
>
>
>   



_________________________________________________________________
Créez gratuitement votre disque dur virtuel Windows Live SkyDrive !
http://skydrive.live.com

[-- Attachment #2: Type: text/html, Size: 2631 bytes --]

^ permalink raw reply	[flat|nested] 33+ messages in thread
* First two elements of search-ring shown twice in minibuffer when using M-p multiple times?
@ 2008-03-08 14:38 Tobias Bading
  2008-03-08 15:18 ` Juri Linkov
  0 siblings, 1 reply; 33+ messages in thread
From: Tobias Bading @ 2008-03-08 14:38 UTC (permalink / raw)
  To: bug-gnu-emacs

Hello everyone,

I'm using Emacs 22.1 compiled under MacOS X and Windoze XP from the  
EMACS_22_1 tag in the cvs repository for quite some time now and both  
of 'em work great, wouldn't want to live without them :-). However,  
there's a minor bug that really bugs me. It is reproducible on both  
platforms without any customizations, i.e. my .emacs file moved out  
of the way. It goes like this:
Start a fresh emacs, then C-s 1 RET, C-s 2 RET, C-s 3 RET to search  
for "1", "2" and "3". The value of variable search-ring is ("3" "2"  
"1") now. So far, so good. Now, let's try to search for "1" again  
using M-p (isearch-ring-retreat) in isearch-mode. A C-s C-s searches  
for "3", now a M-p and you're searching for "2", but the next M-p  
does not search for "1", but for "3" again! And another M-p brings  
you to "2". This is what I noticed on both platforms: After the  
initial C-s C-s sequence, the minibuffer shows "I-search: 3", the  
cursor is still in your buffer and the tool bar as well as the menu  
bar remain unchanged. After the first M-p the minibuffer displays "I- 
search: 2" and the cursor is at the end of the minibuffer. However,  
the tool bar and the menu bar still remain unchanged. I guess this is  
part of the problem, because the second M-p finally adapts the tool  
bar and the menu bar to the fact that the cursor is in the minibuffer  
now, i.e. the Minibuf menu item appears and a few icons are grayed  
out. Unfortunately, the second M-p also jumps back to the first  
element of search-ring instead of showing the third element. So to  
reach the third element of search-ring, you have to press M-p four  
times instead of twice :-(. I hope I'm not the only one having this  
problem and that there's a fix available :-).

Have a nice weekend,
Tobias

PS: The frame's title is incorrect after the first M-p as well,  
noticeable if you have a (setq frame-title-format "Emacs: %b") in  
your .emacs file.

PPS: isearch-forward-regexp has the same problem :-(.





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

end of thread, other threads:[~2008-03-30 21:59 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-25  8:13 Word search Vincent Belaïche
2008-03-25 10:24 ` Jason Rumney
2008-03-25 21:48   ` Juri Linkov
2008-03-25 14:12 ` Drew Adams
2008-03-25 14:42 ` Johan Bockgård
  -- strict thread matches above, loose matches on Subject: below --
2008-03-26 20:47 Vincent Belaïche
2008-03-26 21:16 ` Drew Adams
2008-03-30  6:13   ` Vincent Belaïche
2008-03-30  6:45     ` Drew Adams
2008-03-30  7:02       ` Vincent Belaïche
2008-03-30 16:58         ` Drew Adams
2008-03-30 21:59     ` Johan Bockgård
2008-03-25 16:43 Vincent Belaïche
2008-03-25 18:02 ` Drew Adams
2008-03-08 14:38 First two elements of search-ring shown twice in minibuffer when using M-p multiple times? Tobias Bading
2008-03-08 15:18 ` Juri Linkov
2008-03-09 21:59   ` Juri Linkov
2008-03-10 14:31     ` Stefan Monnier
2008-03-10 17:12       ` Word search (was: First two elements of search-ring shown twice in minibuffer when using M-p multiple times?) Juri Linkov
2008-03-10 18:34         ` Word search Stefan Monnier
2008-03-10 22:38           ` Juri Linkov
2008-03-11 18:47             ` Stefan Monnier
2008-03-12  0:35               ` Juri Linkov
2008-03-12  1:49                 ` Stefan Monnier
2008-03-12 10:38                   ` Juri Linkov
2008-03-12 14:09                     ` Stefan Monnier
2008-03-12 17:51                 ` Richard Stallman
2008-03-11 20:24             ` Richard Stallman
2008-03-12  0:37               ` Juri Linkov
2008-03-12 17:51                 ` Richard Stallman
2008-03-13  2:08                   ` Juri Linkov
2008-03-13 22:24                     ` Richard Stallman
2008-03-13 10:55                   ` René Kyllingstad
2008-03-14  1:08                     ` Juri Linkov
2008-03-12 19:18                 ` Drew Adams
2008-03-13  1:06                   ` Richard Stallman
2008-03-13  2:17                   ` Juri Linkov
2008-03-13 22:24                     ` Richard Stallman

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.