unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: "Roland Winkler" <winkler@gnu.org>
Cc: "47455@debbugs.gnu.org" <47455@debbugs.gnu.org>,
	Brian Elmegaard <be@mek.dtu.dk>
Subject: bug#47455: 27.1; bibtex mode - citation key generation - non-ascii characters
Date: Mon, 31 May 2021 07:48:45 +0200	[thread overview]
Message-ID: <8735u3lagy.fsf@gnus.org> (raw)
In-Reply-To: <1540.59554.339986.24756@gargle.gargle.HOWL> (Roland Winkler's message of "Sun, 30 May 2021 16:39:16 -0500")

"Roland Winkler" <winkler@gnu.org> writes:

> One can also instruct font-lock to use for non-ascii characters
> something like font-lock-warning-face (based on a user option for
> enabling this behavior).

Sounds like a good idea.

> However this fails with something like the unicode character
> 'ZERO WIDTH SPACE' (which has fooled me occassionally in the very
> context we are discussing here).  Is it possible to instruct emacs
> to make such "hidden characters" more easily visible, say by using
> some display property?

I vaguely remember a discussion about this not too long ago, but I can't
find it now.

All the other space "special" space characters, like NON-BREAKING SPACE
and the like, are fontified specially by default in Emacs 28.  But the
point of ZERO WIDTH SPACE is that it takes no room, which makes it
difficult to fontify.  :-)

But bibtex could apply a special display property here, or fontify the
surrounding characters in a special way.

> The fontification could also be encapsulated in a minor mode that
> one could use for \(Bib\|La\)?TeX files.
>
> Maybe such a minor mode exists already and I am right now
> reinventing the wheel?

I can't recall any such minor mode.  Anybody else?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  reply	other threads:[~2021-05-31  5:48 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-28 21:26 bug#47455: 27.1; bibtex mode - citation key generation - non-ascii characters Brian Elmegaard via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-05-18 16:05 ` Lars Ingebrigtsen
2021-05-18 19:00   ` Roland Winkler
2021-05-24 22:04     ` Lars Ingebrigtsen
2021-05-26 18:56       ` Roland Winkler
2021-05-28  7:17         ` Brian Elmegaard via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-05-30 21:39           ` Roland Winkler
2021-05-31  5:48             ` Lars Ingebrigtsen [this message]
2021-06-01  9:14           ` Arash Esbati
2021-06-01 14:37             ` Roland Winkler
2022-12-30  6:34               ` Roland Winkler

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=8735u3lagy.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=47455@debbugs.gnu.org \
    --cc=be@mek.dtu.dk \
    --cc=winkler@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).