all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* RE: Add M-x occur to the menu-bar
@ 2003-09-16  8:30 Marshall, Simon
  2003-09-17 18:02 ` Richard Stallman
  0 siblings, 1 reply; 101+ messages in thread
From: Marshall, Simon @ 2003-09-16  8:30 UTC (permalink / raw)
  Cc: emacs-devel

Should something be added to TODO or would anyone like to volunteer to
try it?  I can volunteer, but I've no idea when I'd get a chance to do
anything.

(What is the alternative interface for grep?  I couldn't find anything
by poking around in the manual.)

Thanks, Simon.

-----Original Message-----
From: Richard Stallman [mailto:rms@gnu.org]
Sent: 13 September 2003 14:57
To: Marshall, Simon
Cc: emacs-devel@gnu.org
Subject: Re: Add M-x occur to the menu-bar


    I think M-x grep and M-x occur should have as similar a UI as
possible.

All else being equal, I agree.  People have tried making interfaces
for grep that separate the arguments.  I think one such is actually
installed as an alternative.  But they are simply less convenient
than M-x grep.

    I've always found it baffling that if you are in a *grep* buffer you
get
    a Compile menu with entries like "Next Error" to go to the next
match.
    I've always found it annoying that C-x ` works for *grep* but not
for
    *Occur*.

It might make sense for C-x ` to work with Occur.

^ permalink raw reply	[flat|nested] 101+ messages in thread
* RE: Add M-x occur to the menu-bar
@ 2003-09-19  9:10 Marshall, Simon
  2003-09-20  7:49 ` Richard Stallman
  0 siblings, 1 reply; 101+ messages in thread
From: Marshall, Simon @ 2003-09-19  9:10 UTC (permalink / raw)
  Cc: emacs-devel

I meant, to list the ideas explicitly:

- Make list-matching-lines and grep have the same UI (or wrapping grep
in a list-matching-lines-in-files) and their buffers have the same
major-mode.

- Add something like list-matching-lines-in-buffers, taking a regexp to
match buffer names.

- Replace Tools/Search Files menu entry with Tools/List Matching Lines
menu containing menu entries:
	In Buffer		# list-matching-lines
	In Buffers...	# list-matching-lines-in-buffers
	In Files...		# grep or list-matching-lines-in-files
	---
	Goto First Match
	Goto Previous Match
	Goto Next Match
	Goto Last Match
	---
	Stop Searching

- Add menu to the major-mode (occur or whatever it would be called)
containing menu entries:
	Goto First Match
	Goto Previous Match
	Goto Next Match
	Goto Last Match
	---
	Stop Searching

(OK, I never mentioned the last item before.)

I also asked what the alternative UI for grep was, the one you think may
already exist, because I couldn't find it.  If that bit has already been
done, or partly done, then all the better.  Do you know what the
alternative is?  (Maybe it was added for 21.4, in which case it's no
surprise I couldn't find it.)

Simon.

-----Original Message-----
From: Richard Stallman [mailto:rms@gnu.org]
Sent: 17 September 2003 19:03
To: Marshall, Simon
Cc: emacs-devel@gnu.org
Subject: Re: Add M-x occur to the menu-bar


I wrote:

    All else being equal, I agree.  People have tried making interfaces
    for grep that separate the arguments.  I think one such is actually
    installed as an alternative.  But they are simply less convenient
    than M-x grep.

You replied:

    Should something be added to TODO or would anyone like to volunteer
to
    try it?

I am confused.  Try what?
Did you mean this idea?

    It might make sense for C-x ` to work with Occur.

^ permalink raw reply	[flat|nested] 101+ messages in thread
* RE: Add M-x occur to the menu-bar
@ 2003-09-16  8:16 Marshall, Simon
  0 siblings, 0 replies; 101+ messages in thread
From: Marshall, Simon @ 2003-09-16  8:16 UTC (permalink / raw)
  Cc: emacs-devel

I used the "List ..." idiom to match the "Edit/Text Properties/List
Properties" menu entry.  I don't have a preference one way or another,
"Show ..." perhaps, but I don't see a reason for them to be different.

-----Original Message-----
From: Eli Zaretskii [mailto:eliz@elta.co.il]
Sent: 13 September 2003 10:36
To: Simon Marshall
Cc: emacs-devel@gnu.org
Subject: Re: Add M-x occur to the menu-bar


> From: "Marshall, Simon" <simon.marshall@misys.com>
> Date: Fri, 12 Sep 2003 17:07:24 +0100
> 
> Tools
> 	List Matching Lines

I think this should be "Show Matching Lines" or maybe "Display
Matching Lines".

^ permalink raw reply	[flat|nested] 101+ messages in thread
* RE: Add M-x occur to the menu-bar
@ 2003-09-12 16:07 Marshall, Simon
  2003-09-13  9:36 ` Eli Zaretskii
                   ` (2 more replies)
  0 siblings, 3 replies; 101+ messages in thread
From: Marshall, Simon @ 2003-09-12 16:07 UTC (permalink / raw)
  Cc: 'Emacs Developers'

I must admit I don't have a strong preference; given the level of
ignorance here with many emacs users over (a) M-x grep and, in
particular, (b) M-x occur and (c) C-x ` etc., I had also thought of the
following.  Perhaps it's also worth throwing this suggestion in.  

I think M-x grep and M-x occur should have as similar a UI as possible.
I've always found it baffling that if you are in a *grep* buffer you get
a Compile menu with entries like "Next Error" to go to the next match.
I've always found it annoying that C-x ` works for *grep* but not for
*Occur*.  (I guess M-x grep is closer to M-x compile for historical
implementation reasons.)

Make the existing Grep entry into a submenu of Tools, like this:

Tools
	List Matching Lines
		In Buffer			# In Buffers... WBN one
day
		In Files...
		---
		Goto First Match
		Goto Previous Match
		Goto Next Match
		---
		Stop Searching

Where the Goto entries process either the current buffer (if a *grep* or
*Occur* buffer) or, otherwise, the most recently created/used *grep* or
*Occur*.  The Stop entry can be active only if a grep has been invoked.

WDYT?

-----Original Message-----
From: Richard Stallman [mailto:rms@gnu.org]
Sent: 12 September 2003 15:04
To: Marshall, Simon
Subject: Re: Add M-x occur to the menu-bar


I tend not to think that M-x occur is worth a space there, so I don't
want to add this.  However, if people generally think it should be
there,
I will go along.

^ permalink raw reply	[flat|nested] 101+ messages in thread
* Add M-x occur to the menu-bar
@ 2003-09-11 16:11 Marshall, Simon
  0 siblings, 0 replies; 101+ messages in thread
From: Marshall, Simon @ 2003-09-11 16:11 UTC (permalink / raw)


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

It seems useful to add an entry for M-x occur to the Tools menu-bar,
alongside the entry for M-x grep.  

While I was at it, it seemed a good idea to change the use of the word
"search" for the entry for M-x grep, since that word is used for entries
(under the Edit menu-bar) that move point.  M-x occur and M-x grep are
different; they list matching lines rather than moving point.

So here's a patch.

 <<menu-bar.diff2>>  <<menu-bar.cl2>> 

[-- Attachment #2: menu-bar.diff2 --]
[-- Type: application/octet-stream, Size: 937 bytes --]

*** menu-bar.el.~3~	Mon Feb 17 10:30:04 2003
--- menu-bar.el	Thu Sep 11 17:04:05 2003
***************
*** 802,810 ****
    '(menu-item "Compile..." compile
  	      :help "Invoke compiler or Make, view compilation errors"))
  (define-key menu-bar-tools-menu [grep]
!   '(menu-item "Search Files (Grep)..." grep
! 	      :help "Search files for strings or regexps (with Grep)"))
! 
  \f
  ;; The "Help" menu items
  
--- 802,812 ----
    '(menu-item "Compile..." compile
  	      :help "Invoke compiler or Make, view compilation errors"))
  (define-key menu-bar-tools-menu [grep]
!   '(menu-item "List Matches in Files (Grep)..." grep
! 	      :help "List lines in files matching string or regular expression"))
! (define-key menu-bar-tools-menu [occur]
!   '(menu-item "List Matches in Buffer (Occur)..." occur
! 	      :help "List lines in buffer matching regular expression"))
  \f
  ;; The "Help" menu items
  

[-- Attachment #3: menu-bar.cl2 --]
[-- Type: application/octet-stream, Size: 172 bytes --]

2003-09-11  Simon Marshall  <simon@gnu.org>

	* menu-bar.el (menu-bar-tools-menu) <occur>: New entry.
	(menu-bar-tools-menu) <grep>: Change "search" to "list lines".


[-- Attachment #4: Type: text/plain, Size: 141 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel

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

end of thread, other threads:[~2004-04-15 18:43 UTC | newest]

Thread overview: 101+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-16  8:30 Add M-x occur to the menu-bar Marshall, Simon
2003-09-17 18:02 ` Richard Stallman
  -- strict thread matches above, loose matches on Subject: below --
2003-09-19  9:10 Marshall, Simon
2003-09-20  7:49 ` Richard Stallman
2003-09-23  1:06   ` Miles Bader
2003-09-23 18:50     ` Eli Zaretskii
2003-09-23 20:10       ` David Kastrup
2003-09-24  8:40       ` Richard Stallman
2003-09-16  8:16 Marshall, Simon
2003-09-12 16:07 Marshall, Simon
2003-09-13  9:36 ` Eli Zaretskii
2003-09-13 13:57 ` Richard Stallman
2003-09-18 17:21   ` Kevin Rodgers
2003-09-18 18:40     ` Miles Bader
2003-09-21 12:11       ` Eli Zaretskii
2003-09-21 11:28         ` Miles Bader
2003-09-21 13:55       ` Ehud Karni
2003-09-19 12:22     ` Richard Stallman
2003-09-18 17:10 ` Kevin Rodgers
2003-09-18 17:27   ` Masatake YAMATO
2004-01-27 15:34   ` Ted Zlatanov
2004-01-27 17:24     ` Benjamin Rutt
2004-01-27 18:46       ` Ted Zlatanov
2004-01-27 19:02         ` Benjamin Rutt
2004-01-27 19:04       ` Stefan Monnier
2004-01-27 19:35         ` Ted Zlatanov
2004-01-27 23:03           ` Miles Bader
2004-01-28  3:53             ` Ted Zlatanov
2004-01-28 14:30               ` Stefan Monnier
2004-01-28 15:46                 ` Ted Zlatanov
2004-01-28 22:45                   ` Kevin Rodgers
2004-01-29  5:42                     ` Eli Zaretskii
2004-01-29 15:19                       ` Stefan Monnier
2004-01-29 15:28                         ` Miles Bader
2004-01-29 15:41                           ` David Kastrup
2004-01-29 20:52                         ` Kai Grossjohann
2004-01-29 17:51                 ` Richard Stallman
2004-01-30 19:00                   ` Ted Zlatanov
2004-02-04 20:39                     ` Ted Zlatanov
2004-02-04 23:20                       ` Kim F. Storm
2004-02-05 17:27                         ` Ted Zlatanov
2004-02-06 23:57                           ` Kim F. Storm
2004-02-06 23:10                             ` Stefan Monnier
2004-02-07  0:52                               ` David Kastrup
2004-02-07 22:39                                 ` Stefan Monnier
2004-02-09 18:44                               ` Ted Zlatanov
2004-02-09 18:43                             ` Ted Zlatanov
2004-02-10 12:44                               ` Richard Stallman
2004-02-10 14:50                                 ` Kim F. Storm
2004-02-10 16:51                                   ` Ted Zlatanov
2004-02-12 14:57                                   ` Richard Stallman
2004-02-12 16:46                                     ` Ted Zlatanov
2004-02-12 19:48                                       ` Stefan Monnier
2004-02-12 20:34                                         ` Ted Zlatanov
2004-02-12 20:57                                           ` Stefan Monnier
2004-02-13 20:58                                             ` Andreas Schwab
2004-02-13 21:04                                               ` Stefan Monnier
2004-02-14 17:17                                               ` Richard Stallman
2004-02-12 23:19                                           ` Kim F. Storm
2004-02-14 17:15                                             ` Richard Stallman
2004-02-13 17:03                                       ` Ted Zlatanov
2004-02-13 21:47                                         ` Kim F. Storm
2004-02-14 17:16                                         ` Richard Stallman
2004-02-23 20:18                                       ` Ted Zlatanov
2004-02-25 13:24                                         ` Richard Stallman
2004-02-23 20:33                                       ` Ted Zlatanov
2004-02-24  0:37                                         ` Kim F. Storm
2004-02-24 17:23                                           ` Ted Zlatanov
2004-03-02 23:25                                       ` Kevin Rodgers
2004-03-03 13:27                                         ` Stefan Monnier
2004-03-04 16:41                                         ` Richard Stallman
2004-03-05 18:14                                       ` Ted Zlatanov
2004-03-11 20:19                                         ` Richard Stallman
2004-03-14  2:04                                           ` Kim F. Storm
     [not found]                                       ` <jwvr7x06q95.fsf-monnier+emacs <E1Avz1R-0001M2-Df@fencepost.gnu.org>
     [not found]                                         ` <4n1xohpsvt.fsf@collins.bwh.harvard.edu>
     [not found]                                         ` <4n8yikpjcz.fsf@collins.bwh.harvard.edu>
2004-03-02 15:51                                           ` Richard Stallman
2004-03-02 17:30                                             ` Ted Zlatanov
2004-03-03  1:40                                               ` Miles Bader
2004-03-03 20:41                                                 ` Mike Hearn
2004-03-03 21:57                                                 ` Kim F. Storm
2004-03-07 16:04                                                   ` Richard Stallman
2004-03-03 15:19                                               ` Richard Stallman
2004-03-08 20:20                                           ` Ted Zlatanov
2004-03-25  5:31                                       ` Ted Zlatanov
2004-03-25 10:01                                         ` Kim F. Storm
2004-03-25 16:24                                         ` Stefan Monnier
2004-04-07 21:01                                       ` Ted Zlatanov
2004-04-07 21:50                                         ` Stefan Monnier
2004-04-08 14:57                                         ` Richard Stallman
2004-04-14  3:28                                       ` Ted Zlatanov
2004-04-14 17:57                                       ` Ted Zlatanov
2004-04-15  0:20                                         ` Kim F. Storm
2004-04-15  1:29                                           ` Kim F. Storm
2004-04-15 16:44                                         ` Richard Stallman
2004-04-14 18:04                                       ` Ted Zlatanov
2004-04-14 21:57                                         ` Stefan Monnier
2004-04-15 15:40                                       ` Ted Zlatanov
2004-04-15 15:59                                       ` Ted Zlatanov
2004-04-15 18:43                                       ` Ted Zlatanov
2004-02-07  9:00                           ` Richard Stallman
2004-01-28  9:04     ` Richard Stallman
2003-09-11 16:11 Marshall, Simon

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.