From: Stefan Monnier <monnier@iro.umontreal.ca>
To: emacs-devel@gnu.org
Cc: Bob Weiner <rsw@gnu.org>
Subject: Re: [elpa] externals/hyperbole faa8294 2/3: Redo hyperbole-mode; new {r} HyRolo search in match buffer
Date: Thu, 29 Apr 2021 02:00:18 -0400 [thread overview]
Message-ID: <jwvy2d1eiv8.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <20210429035709.3DF2320D0F@vcs0.savannah.gnu.org> (ELPA Syncer's message of "Wed, 28 Apr 2021 23:57:08 -0400 (EDT)")
> +(defun enable-hyperbole-mode ()
> + "Enable Hyperbole global minor mode."
> + (interactive)
The `hyperbole-mode` command already offers that functionality, so
there's no point providing this as an interactive command.
I'd recommend you use a "--" in the name and keep that function "internal".
Also please use a "hyperbole-" prefix.
> + ;; Activate hyperbole-mode
> + (run-hooks 'hyperbole-mode-hook))
`define-minor-mode` runs `hyperbole-mode-hook` for you already, so this
`run-hooks` will cause the hook to be run twice in a row.
> :keymap hyperbole-mode-map
This argument is redundant.
> +(if after-init-time
> + ;; Initialize Hyperbole key bindings and hooks.
> + (hyperb:init)
> + ;; Initialize after other key bindings are loaded at startup.
> + (add-hook 'after-init-hook #'hyperb:init t))
>
> ;; !! FIXME: Loading a file should not change Emacs's behavior but we
> ;; need this here for awhile until can ensure Hyperbole users know to
I suspect the above code and the above comment should be swapped?
Stefan
next parent reply other threads:[~2021-04-29 6:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20210429035707.30958.16274@vcs0.savannah.gnu.org>
[not found] ` <20210429035709.3DF2320D0F@vcs0.savannah.gnu.org>
2021-04-29 6:00 ` Stefan Monnier [this message]
2021-04-30 2:35 ` [elpa] externals/hyperbole faa8294 2/3: Redo hyperbole-mode; new {r} HyRolo search in match buffer Robert Weiner
2021-04-30 3:20 ` Stefan Monnier
2021-05-16 20:12 ` Robert Weiner
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=jwvy2d1eiv8.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=rsw@gnu.org \
/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).