unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Patch request - menu modifications
@ 2021-01-31  6:34 David Masterson
  2021-01-31  7:39 ` moasenwood--- via Users list for the GNU Emacs text editor
  2021-01-31 15:09 ` Stefan Monnier
  0 siblings, 2 replies; 10+ messages in thread
From: David Masterson @ 2021-01-31  6:34 UTC (permalink / raw)
  To: help-gnu-emacs

I'd like to request two simple changes to the basic Emacs menus:

1. Add dired-quit ('q') to the dired menus.  It would make it easier to
traverse a directory tree using just the mouse (click directory to
descend and click dired-quit to return up). To me, it is not obvious
which menu to put it in.

2. Add kill-this-buffer to the "Buffers" menu.  The funny thing is that
where-is reports it as "<menu-bar> <file> <kill-buffer>", but I don't
see it there.

"GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll
bars) of 2020-12-14"
-- 
David Masterson



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

* Re: Patch request - menu modifications
  2021-01-31  6:34 Patch request - menu modifications David Masterson
@ 2021-01-31  7:39 ` moasenwood--- via Users list for the GNU Emacs text editor
  2021-02-02 23:52   ` David Masterson
  2021-01-31 15:09 ` Stefan Monnier
  1 sibling, 1 reply; 10+ messages in thread
From: moasenwood--- via Users list for the GNU Emacs text editor @ 2021-01-31  7:39 UTC (permalink / raw)
  To: help-gnu-emacs

David Masterson wrote:

> I'd like to request two simple changes to the basic Emacs
> menus:
>
> 1. Add dired-quit ('q') to the dired menus. It would make it
> easier to traverse a directory tree using just the mouse
> (click directory to descend and click dired-quit to return
> up). To me, it is not obvious which menu to put it in.

Interesting ... I don't even have "dired-quit", q meanwhile is
`quit-window', which isn't dired specific ... certainly it
doesn't help you "descend", it buries the buffer!

Maybe you look for `dired-up-directory'?

(Here, it depends how you visualize the file system hierarchy,
I think ./ is _downmost_, like the basic element [1], but some
people think it it is the top node in a tree-like
data structure.)

> 2. Add kill-this-buffer to the "Buffers" menu. The funny
> thing is that where-is reports it as "<menu-bar> <file>
> <kill-buffer>", but I don't see it there.

`C-x k' `kill-buffer' ... so the menu has its own functions, now?

kill-this-buffer:

  This command can be reliably invoked only from the menu bar,
  otherwise it could decide to silently do nothing.

"it could decide"? ??? Okay?

> "GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, X toolkit,
> Xaw3d scroll bars) of 2020-12-14"

I have

  GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+
  Version 3.24.5, cairo version 1.16.0) of 2020-10-23


[1] https://www.youtube.com/watch?v=jwY8FXOivko - okay, just
    remember it was a whole different culture in the 90s...
    well, evidently ;)

-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal




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

* Re: Patch request - menu modifications
  2021-01-31  6:34 Patch request - menu modifications David Masterson
  2021-01-31  7:39 ` moasenwood--- via Users list for the GNU Emacs text editor
@ 2021-01-31 15:09 ` Stefan Monnier
  2021-01-31 16:44   ` moasenwood--- via Users list for the GNU Emacs text editor
  2021-02-02 23:55   ` David Masterson
  1 sibling, 2 replies; 10+ messages in thread
From: Stefan Monnier @ 2021-01-31 15:09 UTC (permalink / raw)
  To: help-gnu-emacs

> 2. Add kill-this-buffer to the "Buffers" menu.  The funny thing is that
> where-is reports it as "<menu-bar> <file> <kill-buffer>", but I don't
> see it there.

It's called "Close" in the "File" menu.


        Stefan




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

* Re: Patch request - menu modifications
  2021-01-31 15:09 ` Stefan Monnier
@ 2021-01-31 16:44   ` moasenwood--- via Users list for the GNU Emacs text editor
  2021-02-02 23:55   ` David Masterson
  1 sibling, 0 replies; 10+ messages in thread
From: moasenwood--- via Users list for the GNU Emacs text editor @ 2021-01-31 16:44 UTC (permalink / raw)
  To: help-gnu-emacs

Stefan Monnier wrote:

>> 2. Add kill-this-buffer to the "Buffers" menu. The funny
>> thing is that where-is reports it as "<menu-bar> <file>
>> <kill-buffer>", but I don't see it there.
>
> It's called "Close" in the "File" menu.

So it's true! You _do_ discover things by using the menus!

:P

-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal




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

* Re: Patch request - menu modifications
  2021-01-31  7:39 ` moasenwood--- via Users list for the GNU Emacs text editor
@ 2021-02-02 23:52   ` David Masterson
  0 siblings, 0 replies; 10+ messages in thread
From: David Masterson @ 2021-02-02 23:52 UTC (permalink / raw)
  To: help-gnu-emacs

moasenwood--- via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org> writes:

> David Masterson wrote:
>
>> I'd like to request two simple changes to the basic Emacs
>> menus:
>>
>> 1. Add dired-quit ('q') to the dired menus. It would make it
>> easier to traverse a directory tree using just the mouse
>> (click directory to descend and click dired-quit to return
>> up). To me, it is not obvious which menu to put it in.
>
> Interesting ... I don't even have "dired-quit", q meanwhile is
> `quit-window', which isn't dired specific ... certainly it
> doesn't help you "descend", it buries the buffer!

You're right -- I got it wrong!  (Could've swore it was dired-quit...)

> Maybe you look for `dired-up-directory'?

Didn't know that one, but that might work.

> (Here, it depends how you visualize the file system hierarchy,
> I think ./ is _downmost_, like the basic element [1], but some
> people think it it is the top node in a tree-like
> data structure.)

My goal is to 'f' into a directory and 'q' to exit a directory using
only the menu.  That would make the menu complete for walking the
directory tree. (I'm considering changing <mouse-1> to dired-find-file)

>> 2. Add kill-this-buffer to the "Buffers" menu. The funny
>> thing is that where-is reports it as "<menu-bar> <file>
>> <kill-buffer>", but I don't see it there.
>
> `C-x k' `kill-buffer' ... so the menu has its own functions, now?
>
> kill-this-buffer:
>
>   This command can be reliably invoked only from the menu bar,
>   otherwise it could decide to silently do nothing.
>
> "it could decide"? ??? Okay?

kill-this-buffer seems better so it doesn't take input. This could be
used to clean up buffers from walking the dir tree.

-- 
David Masterson



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

* Re: Patch request - menu modifications
  2021-01-31 15:09 ` Stefan Monnier
  2021-01-31 16:44   ` moasenwood--- via Users list for the GNU Emacs text editor
@ 2021-02-02 23:55   ` David Masterson
  2021-02-03  0:28     ` Michael Heerdegen
  1 sibling, 1 reply; 10+ messages in thread
From: David Masterson @ 2021-02-02 23:55 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: help-gnu-emacs

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> 2. Add kill-this-buffer to the "Buffers" menu.  The funny thing is that
>> where-is reports it as "<menu-bar> <file> <kill-buffer>", but I don't
>> see it there.
>
> It's called "Close" in the "File" menu.

I have "Close Tab" not "Close" in the file menu -- two different things, no?

-- 
David Masterson



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

* Re: Patch request - menu modifications
  2021-02-02 23:55   ` David Masterson
@ 2021-02-03  0:28     ` Michael Heerdegen
  2021-02-05  5:50       ` David Masterson
  0 siblings, 1 reply; 10+ messages in thread
From: Michael Heerdegen @ 2021-02-03  0:28 UTC (permalink / raw)
  To: help-gnu-emacs

David Masterson <dsmasterson92630@outlook.com> writes:

> I have "Close Tab" not "Close" in the file menu [...]

Are you sure you don't have both?

Michael.




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

* Re: Patch request - menu modifications
  2021-02-03  0:28     ` Michael Heerdegen
@ 2021-02-05  5:50       ` David Masterson
  2021-02-05  7:54         ` Thibaut Verron
  0 siblings, 1 reply; 10+ messages in thread
From: David Masterson @ 2021-02-05  5:50 UTC (permalink / raw)
  To: Michael Heerdegen; +Cc: help-gnu-emacs

Michael Heerdegen <michael_heerdegen@web.de> writes:

> David Masterson <dsmasterson92630@outlook.com> writes:
>
>> I have "Close Tab" not "Close" in the file menu [...]
>
> Are you sure you don't have both?

You're right -- how did I miss that?  However, I'm not working with tabs
(I'll have to try that), so "Close Tab" won't work on the only tab with
multiple buffer windows displayed, thus "Close This Buffer" is needed.

-- 
David Masterson



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

* Re: Patch request - menu modifications
  2021-02-05  5:50       ` David Masterson
@ 2021-02-05  7:54         ` Thibaut Verron
  2021-02-07  5:57           ` David Masterson
  0 siblings, 1 reply; 10+ messages in thread
From: Thibaut Verron @ 2021-02-05  7:54 UTC (permalink / raw)
  To: David Masterson; +Cc: Michael Heerdegen, help-gnu-emacs

2021-02-05 6:50 UTC+01:00, David Masterson <dsmasterson92630@outlook.com>:
> Michael Heerdegen <michael_heerdegen@web.de> writes:
>
>> David Masterson <dsmasterson92630@outlook.com> writes:
>>
>>> I have "Close Tab" not "Close" in the file menu [...]
>>
>> Are you sure you don't have both?
>
> You're right -- how did I miss that?  However, I'm not working with tabs
> (I'll have to try that), so "Close Tab" won't work on the only tab with
> multiple buffer windows displayed, thus "Close This Buffer" is needed.
>

"Close this buffer" is exactly the "close" under "insert file", you
would get the same behaviour with C-x k RET.

Maybe what you mean instead is "remove this window", aka "delete-window" C-x 0?
That one seems to be missing from the menu indeed.



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

* Re: Patch request - menu modifications
  2021-02-05  7:54         ` Thibaut Verron
@ 2021-02-07  5:57           ` David Masterson
  0 siblings, 0 replies; 10+ messages in thread
From: David Masterson @ 2021-02-07  5:57 UTC (permalink / raw)
  To: Thibaut Verron; +Cc: Michael Heerdegen, help-gnu-emacs

Thibaut Verron <thibaut.verron@gmail.com> writes:

> 2021-02-05 6:50 UTC+01:00, David Masterson <dsmasterson92630@outlook.com>:
>> Michael Heerdegen <michael_heerdegen@web.de> writes:
>>
>>> David Masterson <dsmasterson92630@outlook.com> writes:
>>>
>>>> I have "Close Tab" not "Close" in the file menu [...]
>>>
>>> Are you sure you don't have both?
>>
>> You're right -- how did I miss that?  However, I'm not working with tabs
>> (I'll have to try that), so "Close Tab" won't work on the only tab with
>> multiple buffer windows displayed, thus "Close This Buffer" is needed.
>>
>
> "Close this buffer" is exactly the "close" under "insert file", you
> would get the same behaviour with C-x k RET.

Geez!  I'm too much of an old-time keyboard user.  Right again!

> Maybe what you mean instead is "remove this window", aka "delete-window" C-x 0?
> That one seems to be missing from the menu indeed.

Nope.  "Close" was what I was thinking of.  Thanks.

-- 
David Masterson



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

end of thread, other threads:[~2021-02-07  5:57 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-31  6:34 Patch request - menu modifications David Masterson
2021-01-31  7:39 ` moasenwood--- via Users list for the GNU Emacs text editor
2021-02-02 23:52   ` David Masterson
2021-01-31 15:09 ` Stefan Monnier
2021-01-31 16:44   ` moasenwood--- via Users list for the GNU Emacs text editor
2021-02-02 23:55   ` David Masterson
2021-02-03  0:28     ` Michael Heerdegen
2021-02-05  5:50       ` David Masterson
2021-02-05  7:54         ` Thibaut Verron
2021-02-07  5:57           ` David Masterson

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