From: Emanuel Berg <incal@dataswamp.org>
To: help-gnu-emacs@gnu.org
Subject: Re: reclaiming focus after `browse-url'
Date: Thu, 30 Jun 2022 08:36:19 +0200 [thread overview]
Message-ID: <877d4ymzdo.fsf@dataswamp.org> (raw)
In-Reply-To: lzh743qwag.fsf@3c22fb11fdab.ant.amazon.com
Sam Steingold wrote:
> "Cons cell (how-many-times . frame-to-give-focus-to).") [...]
>
> "Re-acquire OS input focus until `(car sds-reclaim-focus)' is 0.
> Should be used, after calling 'browse-url' 5 times, as
> (setq sds-reclaim-focus (cons 5 (selected-frame)))
> (add-function :after after-focus-change-function #'sds-reclaim-focus)
> it removes itself from 'after-focus-change-function'."
Side issue, avoid Elisp in docstrings ...
Not everyone understands them and even so if it made sense (it
doesn't) one would simply call the source itself the complete,
100% documentation of a software with no need to say a word.
...
The code can maybe be made ... more clear?
--
underground experts united
https://dataswamp.org/~incal
prev parent reply other threads:[~2022-06-30 6:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-29 16:17 reclaiming focus after `browse-url' Sam Steingold
2022-06-30 6:36 ` Emanuel Berg [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877d4ymzdo.fsf@dataswamp.org \
--to=incal@dataswamp.org \
--cc=help-gnu-emacs@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.