unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Markus Triska <triska@metalevel.at>
To: 36647@debbugs.gnu.org
Subject: bug#36647: 26.1; Please align examples of search-based fontification with recommendations
Date: Sun, 14 Jul 2019 11:10:31 +0200	[thread overview]
Message-ID: <m2d0idugl4.fsf@metalevel.at> (raw)


In 39.12.2 Defining Faces, the documentation of defface includes the text:

   "You should not quote the symbol FACE, and
    it should not end in ‘-face’ (that would be redundant)."

Yet, 23.6.2 Search-based Fontification repeatedly mentions fubar-face as
example face, and its name does end in -face:

    ;; Highlight occurrences of ‘fubar’,
    ;; using the face which is the value of ‘fubar-face’.
    ("fubar" . fubar-face)

The docstring of font-lock-keywords also repeatedly mentions fubar-face
as example:

    (\"fubar\" . fubar-face)
     Occurrences of \"fubar\" in the value of `fubar-face'.

To ensure exemplary face names and internal consistency of the manual,
it seems appropriate to change the example face names to names that are
in alignment with the manual's recommendations.

For instance, the cited examples could maybe be changed, respectively, to

    ;; Highlight occurrences of ‘fubar’,
    ;; using the face which is the value of ‘fubar’.
    ("fubar" . fubar)

and:

    (\"fubar\" . fubar)
     Occurrences of \"fubar\" in the value of the face `fubar'.

to follow the recommendations?

Thank you and all the best,
Markus


In GNU Emacs 26.1 (build 1, x86_64-apple-darwin15.3.0, X toolkit, Xaw scroll bars)
 of 2018-09-22 built on laptop
Windowing system distributor 'The X.Org Foundation', version 11.0.11502000





             reply	other threads:[~2019-07-14  9:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-14  9:10 Markus Triska [this message]
2019-07-14 20:39 ` bug#36647: 26.1; Please align examples of search-based fontification with recommendations Glenn Morris
2019-07-17 11:02   ` Basil L. Contovounesios

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=m2d0idugl4.fsf@metalevel.at \
    --to=triska@metalevel.at \
    --cc=36647@debbugs.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).