From: uzibalqa via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Drew Adams <drew.adams@oracle.com>
Cc: Stefan Kangas <stefankangas@gmail.com>,
"57250@debbugs.gnu.org" <57250@debbugs.gnu.org>
Subject: bug#57250: emacs-lisp-mode not highlighting single characters `k' in comments
Date: Tue, 16 Aug 2022 20:31:38 +0000 [thread overview]
Message-ID: <wPiY7Aip6c_O7FFECW73-vHJqBrp-A8rjRGvYdxtbdzL8GmXAsN3Ort3oXLdIfCBJ2HQ4Wpfb9dAUF4wk8g5XQfHuaXeB-4zLs017Vrb3aY=@proton.me> (raw)
In-Reply-To: <SJ0PR10MB548882147D2EC8F2686FF0D2F36B9@SJ0PR10MB5488.namprd10.prod.outlook.com>
------- Original Message -------
On Tuesday, August 16th, 2022 at 7:23 PM, Drew Adams <drew.adams@oracle.com> wrote:
> > > But if the character sequence within tick ` and a single quote ' is a
> > > single
> > > character, the character does not get highlighted.
> > >
> > > Example:
> > >
> > > ;; Insert `k' for words with initial values.
> > >
> > > The character k does not get highlighted.
> >
> > That's because k here is more likely to be a key than a Lisp symbol.
> >
> > So I think this is expected.
>
>
> FWIW, I don't think it should be expected.
>
> And even if it were expected to consider it
> a key, that's not a reason not to highlight
> it.
I agree. That has been my argument.
Keys such as `M-x' do get highlighted. To me, this is a minor bug or a nice-to-have. If it can be fixed reasonably then that would be good. We need not expect, for this bug fix, that things like` C-x C-x', which contains a SPC
> char, would also get fixed (highlighted).
>
> That would be nice, but there's only so much
> that reasonably can be done. Highlighting
> everything from `to ' would likely introduce a fair number of problems. (And then there are things like a`C-x C-x' that's split
> across a newline...)
It would valuable to highlight everything from ` to ' if they happen on tho same line.
Or some other mechanism to highlight certain elements in comments that would benefit out of emphasising.
next prev parent reply other threads:[~2022-08-16 20:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-16 18:57 bug#57250: emacs-lisp-mode not highlighting single characters `k' in comments uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-16 19:11 ` Stefan Kangas
2022-08-16 19:17 ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-16 19:23 ` Drew Adams
2022-08-16 20:31 ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2022-08-17 11:16 ` Lars Ingebrigtsen
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='wPiY7Aip6c_O7FFECW73-vHJqBrp-A8rjRGvYdxtbdzL8GmXAsN3Ort3oXLdIfCBJ2HQ4Wpfb9dAUF4wk8g5XQfHuaXeB-4zLs017Vrb3aY=@proton.me' \
--to=bug-gnu-emacs@gnu.org \
--cc=57250@debbugs.gnu.org \
--cc=drew.adams@oracle.com \
--cc=stefankangas@gmail.com \
--cc=uzibalqa@proton.me \
/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.