unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Change grep -> lgrep, rgrep in Tools menu?
@ 2008-01-30 15:36 Lennart Borgman (gmail)
  2008-01-31  1:06 ` Richard Stallman
  0 siblings, 1 reply; 9+ messages in thread
From: Lennart Borgman (gmail) @ 2008-01-30 15:36 UTC (permalink / raw)
  To: Emacs Devel

Wouldn't it be better to have the simple commands `lgrep' and `rgrep' in 
the Tools menu rather than the more advanced command `grep'?




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

* Re: Change grep -> lgrep, rgrep in Tools menu?
  2008-01-30 15:36 Change grep -> lgrep, rgrep in Tools menu? Lennart Borgman (gmail)
@ 2008-01-31  1:06 ` Richard Stallman
  2008-01-31  8:46   ` Lennart Borgman (gmail)
  2008-02-01 15:24   ` Lennart Borgman (gmail)
  0 siblings, 2 replies; 9+ messages in thread
From: Richard Stallman @ 2008-01-31  1:06 UTC (permalink / raw)
  To: Lennart Borgman (gmail); +Cc: emacs-devel

    Wouldn't it be better to have the simple commands `lgrep' and `rgrep' in 
    the Tools menu rather than the more advanced command `grep'?

I am not convinced it is better.




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

* Re: Change grep -> lgrep, rgrep in Tools menu?
  2008-01-31  1:06 ` Richard Stallman
@ 2008-01-31  8:46   ` Lennart Borgman (gmail)
  2008-01-31  8:55     ` William Xu
  2008-02-01 15:24   ` Lennart Borgman (gmail)
  1 sibling, 1 reply; 9+ messages in thread
From: Lennart Borgman (gmail) @ 2008-01-31  8:46 UTC (permalink / raw)
  To: rms; +Cc: emacs-devel

Richard Stallman wrote:
>     Wouldn't it be better to have the simple commands `lgrep' and `rgrep' in 
>     the Tools menu rather than the more advanced command `grep'?
> 
> I am not convinced it is better.

But is not the menus supposed to be more for those that are not advanced 
users? I would guess that not all beginners are familiar with grep. 
Using lgrep or rgrep would probably be easy for them though.




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

* Re: Change grep -> lgrep, rgrep in Tools menu?
  2008-01-31  8:46   ` Lennart Borgman (gmail)
@ 2008-01-31  8:55     ` William Xu
  2008-01-31  9:05       ` Lennart Borgman (gmail)
  0 siblings, 1 reply; 9+ messages in thread
From: William Xu @ 2008-01-31  8:55 UTC (permalink / raw)
  To: emacs-devel

"Lennart Borgman (gmail)" <lennart.borgman@gmail.com> writes:

> But is not the menus supposed to be more for those that are not advanced
> users? I would guess that not all beginners are familiar with
> grep. Using lgrep or rgrep would probably be easy for them though.

I know grep well, but never used the other two. I actually don't know
what they do.

Also, consider the availability, on my macosx, 

,----
| zen:~$ lgrep
| bash: lgrep: command not found
| zen:~$ rgrep
| bash: rgrep: command not found
`----

,----
| zen:~$ grep
| Usage: grep [OPTION]... PATTERN [FILE]...
| Try `grep --help' for more information.
`----

-- 
William

http://williamxu.net9.org





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

* Re: Change grep -> lgrep, rgrep in Tools menu?
  2008-01-31  8:55     ` William Xu
@ 2008-01-31  9:05       ` Lennart Borgman (gmail)
  2008-01-31 10:24         ` William Xu
  0 siblings, 1 reply; 9+ messages in thread
From: Lennart Borgman (gmail) @ 2008-01-31  9:05 UTC (permalink / raw)
  To: William Xu; +Cc: emacs-devel

William Xu wrote:
> "Lennart Borgman (gmail)" <lennart.borgman@gmail.com> writes:
> 
>> But is not the menus supposed to be more for those that are not advanced
>> users? I would guess that not all beginners are familiar with
>> grep. Using lgrep or rgrep would probably be easy for them though.
> 
> I know grep well, but never used the other two. I actually don't know
> what they do.
> 
> Also, consider the availability, on my macosx, 
> 
> ,----
> | zen:~$ lgrep
> | bash: lgrep: command not found
> | zen:~$ rgrep
> | bash: rgrep: command not found
> `----

Try

   M-x lgrep
   M-x rgrep




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

* Re: Change grep -> lgrep, rgrep in Tools menu?
  2008-01-31  9:05       ` Lennart Borgman (gmail)
@ 2008-01-31 10:24         ` William Xu
  0 siblings, 0 replies; 9+ messages in thread
From: William Xu @ 2008-01-31 10:24 UTC (permalink / raw)
  To: emacs-devel

"Lennart Borgman (gmail)" <lennart.borgman@gmail.com> writes:

> Try
>
>   M-x lgrep
>   M-x rgrep

Ah, i did not know they are lisp functions.

-- 
William

http://williamxu.net9.org





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

* Re: Change grep -> lgrep, rgrep in Tools menu?
  2008-01-31  1:06 ` Richard Stallman
  2008-01-31  8:46   ` Lennart Borgman (gmail)
@ 2008-02-01 15:24   ` Lennart Borgman (gmail)
  2008-02-01 19:46     ` Search menu [was: Change grep -> lgrep, rgrep in Tools menu?] Drew Adams
  1 sibling, 1 reply; 9+ messages in thread
From: Lennart Borgman (gmail) @ 2008-02-01 15:24 UTC (permalink / raw)
  To: rms; +Cc: emacs-devel

Richard Stallman wrote:
>     Wouldn't it be better to have the simple commands `lgrep' and `rgrep' in 
>     the Tools menu rather than the more advanced command `grep'?
> 
> I am not convinced it is better.

Rethinking: Didn't we discuss this once before? And is not the real 
issue that lgrep/rgrep should be in the edit menu under Search? (And 
perhaps: why is grep in the tools menu and not in edit - Search?)





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

* Search menu   [was: Change grep -> lgrep, rgrep in Tools menu?]
  2008-02-01 15:24   ` Lennart Borgman (gmail)
@ 2008-02-01 19:46     ` Drew Adams
  2008-03-21 20:41       ` Lennart Borgman (gmail)
  0 siblings, 1 reply; 9+ messages in thread
From: Drew Adams @ 2008-02-01 19:46 UTC (permalink / raw)
  To: 'Lennart Borgman (gmail)', rms; +Cc: emacs-devel

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

> why is grep in the tools menu and not in edit - Search?

I agree that Grep should be on the Search menu. I moved it there in my own
code long ago.

FWIW - 

I also did the following to the Search menu:

* Moved it to the top level, instead of as an Edit submenu. 
* Moved the Replace, Bookmarks, and Go To submenus to it.
* Added an Occurrences item (`occur').
* Added a Tags submenu (`find-tag', `find-tag-regexp',
  `apropos-tags', `tags-search').

Screenshot of the menu attached. All except the Icicles submenu is vanilla
Emacs stuff, just renamed and rearranged.

There are lots of powerful search tools in Emacs, and it is good to make
them more evident.

BTW - Although I removed a lot from the Edit menu, I added other things to
it - things that are more about editing: submenus Fill (filling), Edit
Region, and Sort Region, for instance. And items Delete Matching Lines and
Delete Non-Matching Lines (`flush-lines', `keep-lines').


[-- Attachment #2: search-menu.png --]
[-- Type: image/png, Size: 6199 bytes --]

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

* Re: Search menu   [was: Change grep -> lgrep, rgrep in Tools menu?]
  2008-02-01 19:46     ` Search menu [was: Change grep -> lgrep, rgrep in Tools menu?] Drew Adams
@ 2008-03-21 20:41       ` Lennart Borgman (gmail)
  0 siblings, 0 replies; 9+ messages in thread
From: Lennart Borgman (gmail) @ 2008-03-21 20:41 UTC (permalink / raw)
  To: Drew Adams; +Cc: rms, emacs-devel

Drew Adams wrote:
>> why is grep in the tools menu and not in edit - Search?
> 
> I agree that Grep should be on the Search menu. I moved it there in my own
> code long ago.
> 
> FWIW - 
> 
> I also did the following to the Search menu:
> 
> * Moved it to the top level, instead of as an Edit submenu. 
> * Moved the Replace, Bookmarks, and Go To submenus to it.
> * Added an Occurrences item (`occur').
> * Added a Tags submenu (`find-tag', `find-tag-regexp',
>   `apropos-tags', `tags-search').
> 
> Screenshot of the menu attached. All except the Icicles submenu is vanilla
> Emacs stuff, just renamed and rearranged.
> 
> There are lots of powerful search tools in Emacs, and it is good to make
> them more evident.
> 
> BTW - Although I removed a lot from the Edit menu, I added other things to
> it - things that are more about editing: submenus Fill (filling), Edit
> Region, and Sort Region, for instance. And items Delete Matching Lines and
> Delete Non-Matching Lines (`flush-lines', `keep-lines').

I still think it would be good to replace

   Tools
     grep

with

   Edit
     Search
       lgrep
       rgrep

For Drews suggestion and earlier discussion see here:

http://www.nabble.com/Change-grep--%3E-lgrep,-rgrep-in-Tools-menu--td15184987.html

Also, occur is missing from the search sub-menu.

I believe those things are essential for beginners. The menus are 
perhaps most useful for the beginners. My earlier question did not evoke 
much response, maybe because this question is not so important for most 
readers here.

I suggest we change the Edit menu. Maybe Drew's suggestion is good too, 
but I feel that it can be troublesome with too many menus.

If someone feels very strongly against changing the menus, then please 
say so. Otherwise I think it is just a matter of doing it (in a sane way).




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

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

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-30 15:36 Change grep -> lgrep, rgrep in Tools menu? Lennart Borgman (gmail)
2008-01-31  1:06 ` Richard Stallman
2008-01-31  8:46   ` Lennart Borgman (gmail)
2008-01-31  8:55     ` William Xu
2008-01-31  9:05       ` Lennart Borgman (gmail)
2008-01-31 10:24         ` William Xu
2008-02-01 15:24   ` Lennart Borgman (gmail)
2008-02-01 19:46     ` Search menu [was: Change grep -> lgrep, rgrep in Tools menu?] Drew Adams
2008-03-21 20:41       ` Lennart Borgman (gmail)

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).