GNU bug report logs - #50067
Context menus

Previous Next

Package: emacs;

Reported by: Juri Linkov <juri <at> linkov.net>

Date: Sun, 15 Aug 2021 08:52:01 UTC

Severity: normal

Tags: fixed

Fixed in version 28.0.50

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

Full log


Message #126 received at 50067 <at> debbugs.gnu.org (full text, mbox):

From: Tak Kunihiro <homeros.misasa <at> gmail.com>
To: Juri Linkov <juri <at> linkov.net>
Cc: Alan Third <alan <at> idiocy.org>,
 Mattias EngdegÄrd <mattiase <at> acm.org>,
 Tak Kunihiro <homeros.misasa <at> gmail.com>, tkk <at> misasa.okayama-u.ac.jp,
 Lars Ingebrigtsen <larsi <at> gnus.org>, 50067 <at> debbugs.gnu.org
Subject: Re: bug#50067: Context menus
Date: Sat, 21 Aug 2021 15:33:36 +0900
** context-menu-region

All commands belong to `Edit' in menu bar.
I think `context-menu-edit' sounds better.

Isn't it better to use `menu-bar-edit-menu' as a source rather than
create a menu from scratch?

On paste when there is a region and delete-selection-mode is t, the
region should be replaced by the text.

** no multiple horizontal lines

Sometimes I see double lines on the context menu.  I think that there is
no useful case to have double lines.  To allow only one horizontal line
would look cool.

** reuse existing menu

I cannot figure out how to include pre-existing menu such for
(mouse-buffer-menu-map).  To lean how to manipulate menu is not easy.
It's nice to have an example something like below (does not work).

  (defun context-menu-buffer (menu)
  "Add a buffer menu entry to MENU."
    (let ((map (mouse-buffer-menu-map)))
      (define-key-after menu [buffer] map))
    menu)




This bug report was last modified 3 years and 171 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.