bug#81651: 30.2; Avoid showing "Select" sub-menu when region is already selected in context-menu-region

Charles Choi <[email protected]>
Newsgroups gmane.emacs.bugs
Message-ID <[email protected]>

1 Title
=======

  Enhancement Request: Avoid showing "Select" sub-menu when region is
  already selected in context-menu-region


2 Description
=============

  When context-menu-mode is enabled and the context menu is raised, a
  "Select" sub-menu is offered by the hook function context-menu-region.
  As of GNU Emacs 30.2, the "Select" sub-menu is always shown.

  An enhancement request is to change the condition of showing the
  "Select" sub-menu in the context menu only when no text is selected.
  The presumption is that when text is selected, the user-intended
  extent of the region is defined so no need to change the extent is
  necessary. This helps keep the context-menu selection small and
  focused on context.


3 Environment
=============

  GNU Emacs 30.2 (build 2, aarch64-apple-darwin24.6.0, NS appkit-2575.70
  Version 15.7.7 (Build 24G720)) of 2026-06-30


4 Steps to Reproduce
====================

  1. Launch Emacs with context-menu-mode enabled.

  2. In a writeable window, type in text and select it.

  3. Raise the context menu over the selected text.


5 Expected Result
=================

  No "Select" sub-menu is displayed in the context menu.


6 Actual Result
===============

  A "Select" sub-menu is displayed in the context menu.



—
Charles Y. Choi, Ph.D.
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.