unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Ramesh Nedunchezian <rameshnedunchezian@outlook.com>
To: Dmitry Gutov <dgutov@yandex.ru>, 47688@debbugs.gnu.org
Subject: bug#47688: 28.0.50; repeat-mode: Make rectangle commands repeatable. Also some misc. queries, comments
Date: Sat, 10 Apr 2021 18:34:18 +0530	[thread overview]
Message-ID: <TY2PR0101MB3693BD1671895DE055B33C4FDA729@TY2PR0101MB3693.apcprd01.prod.exchangelabs.com> (raw)
In-Reply-To: <c6130f4f-5980-afc3-9c08-ee812873ab68@yandex.ru>

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



On 10/04/21 4:04 pm, Dmitry Gutov wrote:
> On 10.04.2021 11:23, Ramesh Nedunchezian wrote:
>>     So, a repeat-map, like the rectangle one below, which has lots of
>>     keybindings can set a `:help' attribute on itself.
>>     `repeat-post-hook' can then rely on this `:help'-er to provide a
>>     help much similar to what the hydra package provides.
> 
> :help attribute sounds like a neat alternative, but what would you set it to?
> 
> Aside from nil, perhaps.

Hydra -- this is part of GNU Emacs / GNU ELPA -- uses one of the 3
types

    (defcustom hydra-hint-display-type 'lv
      "The utility to show hydra hint"
      :type '(choice
	      (const message)
	      (const lv)
	      (const posframe))
      :group 'hydra)

(https://github.com/abo-abo/hydra/blob/2d553787aca1aceb3e6927e426200e9bb9f056f1/hydra.el#L249)

Hydra's hints are very pleasant to look at, and hydra is one of the
frequently mentioned package in reddit.com/r/emacs.

I am attaching screenshots of how the 'lv' and 'posframe' hints looks
like for one of the "fancier" hydras in the project's README
(https://github.com/abo-abo/hydra)

The core idea behind my suggestion is that /the/ repeat map itself is
the best judge on what sort of hint is the best.

I understand that repeat-mode's "Repeat with ..." and "Exit with ..."
messages are more of informational / diagonsic messages.  The messages
need stop at being diagnostic assurances. They can go a step further
and be hints.

'nil'--do nothing--as a ':help'-er is what an experienced user may
want.  A verbose hint is what a beginner will appreciate.

Rectangle, register and highlight commands are very useful ... and
when I was new to Emacs they were bothersome to type and remember.
/Younger/ me would have /loved/ a hydra-like hints.









[-- Attachment #2: hydra-hint--lv.png --]
[-- Type: image/png, Size: 117124 bytes --]

[-- Attachment #3: hydra-hint--posframe.png --]
[-- Type: image/png, Size: 107483 bytes --]

  reply	other threads:[~2021-04-10 13:04 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-10  8:23 bug#47688: 28.0.50; repeat-mode: Make rectangle commands repeatable. Also some misc. queries, comments Ramesh Nedunchezian
2021-04-10 10:34 ` Dmitry Gutov
2021-04-10 13:04   ` Ramesh Nedunchezian [this message]
2021-04-10 14:54     ` Dmitry Gutov
2021-04-10 12:32 ` Ramesh Nedunchezian
2021-04-12 16:16 ` Juri Linkov
2021-04-13 16:09   ` Juri Linkov
2021-04-14 18:12 ` Juri Linkov
     [not found] ` <handler.47688.D47688.161842410719411.notifdone@debbugs.gnu.org>
2021-05-04  4:19   ` bug#47688: closed (Re: bug#47688: 28.0.50; repeat-mode: Make rectangle commands repeatable. Also some misc. queries, comments) Ramesh Nedunchezian

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=TY2PR0101MB3693BD1671895DE055B33C4FDA729@TY2PR0101MB3693.apcprd01.prod.exchangelabs.com \
    --to=rameshnedunchezian@outlook.com \
    --cc=47688@debbugs.gnu.org \
    --cc=dgutov@yandex.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).