unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Robert Weiner <rsw@gnu.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Lidell Mats <matsl@gnu.org>, emacs-devel <emacs-devel@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 22:35:10 -0400	[thread overview]
Message-ID: <CA+OMD9hWp4LSEmDeB34rfBEPDcv1pNKoTJYU5wUrOuPi9WzwcA@mail.gmail.com> (raw)
In-Reply-To: <jwvy2d1eiv8.fsf-monnier+emacs@gnu.org>

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

Thanks, Stefan.  Will implement these updates.

On your last comment, we want Hyperbole initialization deferred until after
Emacs init time, so that looks right to me.

Regards,

Bob

On Thu, Apr 29, 2021 at 2:00 AM Stefan Monnier <monnier@iro.umontreal.ca>
wrote:

> > +(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
>
>

[-- Attachment #2: Type: text/html, Size: 2414 bytes --]

  reply	other threads:[~2021-04-30  2:35 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   ` [elpa] externals/hyperbole faa8294 2/3: Redo hyperbole-mode; new {r} HyRolo search in match buffer Stefan Monnier
2021-04-30  2:35     ` Robert Weiner [this message]
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=CA+OMD9hWp4LSEmDeB34rfBEPDcv1pNKoTJYU5wUrOuPi9WzwcA@mail.gmail.com \
    --to=rsw@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=matsl@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=rswgnu@gmail.com \
    /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).