all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Test for `save-abbrevs' improvement
@ 2006-02-16 14:39 Juanma Barranquero
  2006-02-16 20:46 ` Kevin Rodgers
  0 siblings, 1 reply; 6+ messages in thread
From: Juanma Barranquero @ 2006-02-16 14:39 UTC (permalink / 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-02-17 20:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-16 14:39 Test for `save-abbrevs' improvement Juanma Barranquero
2006-02-16 20:46 ` 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

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.