all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juanma Barranquero <lekktu@gmail.com>
Subject: Test for `save-abbrevs' improvement
Date: Thu, 16 Feb 2006 15:39:30 +0100	[thread overview]
Message-ID: <f7ccd24b0602160639o7f513e3t65bdd1b369b443b1@mail.gmail.com> (raw)

Often it is said here that it is best to check for features, and not
for specific Emacs versions.

What about changes to allowed values for a variable?

`save-abbrevs' now accepts the value `silently', but that feature has
neither new variables nor functions to test for. And I don't want to
simply set `save-abbrevs' to `silently' because then, 21.1 asks me
every time about saving the abbreviations.

What would be the wisest way to check for it?

  (string-match "`silently'"
                (documentation-property 'save-abbrevs
                                        'variable-documentation))

seems hardly elegant...

--
                    /L/e/k/t/u

             reply	other threads:[~2006-02-16 14:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-16 14:39 Juanma Barranquero [this message]
2006-02-16 20:46 ` Test for `save-abbrevs' improvement Kevin Rodgers
2006-02-17  9:41   ` Juanma Barranquero
2006-02-17 10:27     ` Juanma Barranquero
2006-02-17 17:41       ` Kevin Rodgers
2006-02-17 20:31         ` Juanma Barranquero

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=f7ccd24b0602160639o7f513e3t65bdd1b369b443b1@mail.gmail.com \
    --to=lekktu@gmail.com \
    /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.