all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "Emacs-Devel" <emacs-devel@gnu.org>
Subject: RE: facemenu-set-face doc string
Date: Tue, 20 Mar 2007 14:57:22 -0700	[thread overview]
Message-ID: <EIENLHALHGIMHGDOLMIMCEPECPAA.drew.adams@oracle.com> (raw)
In-Reply-To: <BDEIJAFNGDOAGCJIPKPBOEGACDAA.drew.adams@oracle.com>

Sorry, I forgot this important piece of info from the current doc string. It
is needed, or users won't understand why nothing happens when the region is
empty or inactive and they pick a face that is excluded by
`facemenu-listed-faces':

  Add FACE to the menu of faces, if allowed by `facemenu-listed-faces'.

> The current explanation is not very clear, IMO (just what are
> "the faces to
> use"? apply a face to faces?).
>
> I propose a minor change: use active voice and refer to
> `facemenu-add-new-face' and `facemenu-add-face', whose doc strings are
> clear.
>
> OLD:
>
>  Apply FACE to the region or next character typed.
>
>  If the region is active (normally true except in Transient
>  Mark mode) and nonempty, and there is no prefix argument,
>  this command applies FACE to the region.  Otherwise, it applies FACE
>  to the faces to use for the next character
>  inserted.  (Moving point or switching buffers before typing
>  a character to insert cancels the specification.)
>
>  If FACE is `default', to \"apply\" it means clearing
>  the list of faces to be used.  For any other value of FACE,
>  to \"apply\" it means putting FACE at the front of the list
>  of faces to be used, and removing any faces further
>  along in the list that would be completely overridden by
>  preceding faces (including FACE).
>
>  This command can also add FACE to the menu of faces,
>  if `facemenu-listed-faces' says to do that.
>
> PROPOSED:
>
>  Apply FACE to the region or the next character typed.
>  If there is no prefix argument and the region is active and nonempty,
>  then apply FACE to the region.  Otherwise, apply FACE to the next
>  character inserted.
>
>  Call `facemenu-add-new-face', then `facemenu-add-face'.
>
>
>
>
> _______________________________________________
> Emacs-devel mailing list
> Emacs-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-devel
>

      reply	other threads:[~2007-03-20 21:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-20 21:29 facemenu-set-face doc string Drew Adams
2007-03-20 21:57 ` Drew Adams [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=EIENLHALHGIMHGDOLMIMCEPECPAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.com \
    --cc=emacs-devel@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.