From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Test for `save-abbrevs' improvement Date: Thu, 16 Feb 2006 15:39:30 +0100 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1140122074 25765 80.91.229.2 (16 Feb 2006 20:34:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 16 Feb 2006 20:34:34 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 16 21:34:32 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F9ppK-0006oR-BS for ged-emacs-devel@m.gmane.org; Thu, 16 Feb 2006 21:34:10 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F9ppI-0004cb-Li for ged-emacs-devel@m.gmane.org; Thu, 16 Feb 2006 15:34:08 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F9l1l-00019G-92 for emacs-devel@gnu.org; Thu, 16 Feb 2006 10:26:41 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F9kUl-0003fo-D3 for emacs-devel@gnu.org; Thu, 16 Feb 2006 09:52:38 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F9kI8-0000Db-7w for emacs-devel@gnu.org; Thu, 16 Feb 2006 09:39:33 -0500 Original-Received: from [64.233.182.194] (helo=nproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1F9kNH-0008Ls-6H for emacs-devel@gnu.org; Thu, 16 Feb 2006 09:44:51 -0500 Original-Received: by nproxy.gmail.com with SMTP id a25so113429nfc for ; Thu, 16 Feb 2006 06:39:30 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=oKgaHCDW8oLjvqEfkob75uYzMVl2uoqHdQG/l82wLWFnGKLHPwicq3GlUQoCo3v7Qj/0gduv0ytOA1QY3Sx1I311alCJMK9cbUKA//gahFaK9U8Jcj7x6772YTmmgppOdfPRZeZBL9aTgg/SZso6mFoS9zS+A+Ru4JqBPkXWYgo= Original-Received: by 10.48.237.6 with SMTP id k6mr186164nfh; Thu, 16 Feb 2006 06:39:30 -0800 (PST) Original-Received: by 10.48.42.14 with HTTP; Thu, 16 Feb 2006 06:39:30 -0800 (PST) Original-To: Emacs Devel Content-Disposition: inline X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:50628 Archived-At: 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