From: Tony Zorman via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Philip Kaludercic <philipk@posteo.net>,
Jeremy Bryant <jb@jeremybryant.net>
Cc: 73016@debbugs.gnu.org
Subject: bug#73016: Potential inclusion of kbd-mode, part of kmonad, in Non-GNU ELPA
Date: Fri, 06 Sep 2024 12:53:53 +0200 [thread overview]
Message-ID: <87r09x59z2.fsf@hyperspace> (raw)
In-Reply-To: <87wmjqjuiz.fsf@posteo.net>
Hi,
thanks to Jeremy for submitting this, and to Philip for reviewing! I'm
travelling right now, so I'll keep this short; more to come in a few
days I hope.
On Thu, Sep 05 2024 09:53, Philip Kaludercic wrote:
> [… 12 lines elided …]
>
>> On behalf of the author, Tony Zorman, I would like to request
>> consideration to include it in NON-GNU ELPA.
>
> Just for the sake of the protocol, is there a reason against adding the
> package to GNU ELPA?
There has been at least one non-trivial contribution to the package, as
well as several smaller ones. While I have assigned copyright to the FSF
for Emacs and ELPA related things, I don't know whether the same can be
said of the other contributors.
>> The author is conscious that the following snippet should be improved
>> and we are soliciting recommendations on how to improve it.
>> ;; HACK
>> (defadvice redisplay (after refresh-font-locking activate)
>> (when (derived-mode-p 'kbd-mode)
>> (font-lock-fontify-buffer))))
>
> I agree, we should get rid of that. But first, what is the intention?
> What breaks if we just remove this advice?
When specifying the keyboard layout, the configuration language accepts
most special symbols verbatim (as in, one can just write @ to have that
symbol bound to a key). This includes " for double quotes, meaning the
highlighting of strings has to be taken care of be the mode—at least, I
think so. This produces inconsistent behaviour that I was never really a
fan of, especially when moving things around. For example, going from
(f "string")
to
(f
"string")
would "unhighlight" the string until one refreshes the syntax
highlighting for the buffer via e.g. font-lock-update, or wait until
this happens by itself. The advice is nothing more but a band-aid such
that the latter happens more often.
It may well be that I overlooked something about Emacs's way of going
about string highlighting back when I wrote the mode, and so far I
haven't had the drive to look back into this.
Tony
--
Tony Zorman | https://tony-zorman.com
next prev parent reply other threads:[~2024-09-06 10:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-03 22:19 bug#73016: Potential inclusion of kbd-mode, part of kmonad, in Non-GNU ELPA Jeremy Bryant via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-09-05 9:53 ` Philip Kaludercic
2024-09-06 10:53 ` Tony Zorman via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2024-09-14 8:42 ` Tony Zorman via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-09-14 10:10 ` Philip Kaludercic
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=87r09x59z2.fsf@hyperspace \
--to=bug-gnu-emacs@gnu.org \
--cc=73016@debbugs.gnu.org \
--cc=jb@jeremybryant.net \
--cc=philipk@posteo.net \
--cc=tonyzorman@mailbox.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.