From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Roland Winkler Newsgroups: gmane.emacs.help Subject: Re: Required empty fields in BibTeX mode Date: Mon, 19 Nov 2007 15:46:41 +0100 Organization: FAU Erlangen-Nuernberg Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1195486936 16658 80.91.229.12 (19 Nov 2007 15:42:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 19 Nov 2007 15:42:16 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 19 16:42:13 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Iu8lB-0001YB-Rz for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Nov 2007 16:42:06 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iu8ky-0005to-Ck for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Nov 2007 10:41:52 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news4.google.com!fu-berlin.de!uni-berlin.de!news.dfncis.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 17 Original-X-Trace: news.dfncis.de muXW6aZYfLVj5hZKy30CgQxnomkz1xTnxXomaUR7cT0X1D Cancel-Lock: sha1:hfqgpV+fzsTbBKGcLko40tS/pys= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) Original-Xref: shelby.stanford.edu gnu.emacs.help:153915 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:49347 Archived-At: Roland Winkler writes: > Sven Bretfeld writes: >> By default Emacs kills empty fields when the function >> bibtex-clean-entry is called. Is it possible to exclude a certain type >> of field from deletion? > > Formatting of BibTeX entries is controlled by the variable > bibtex-entry-format which contains a list of formatting options. > Empty fields are deleted if this list contains 'opts-or-alts. Remove > this from the list and you should get what you want. Ooops, this is just part one of your more specific question. With the above you will keep all empty fields. You could then put a function into bibtex-clean-entry-hook that deletes all empty fields except for the one you want to keep. Roland