From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "N. Raghavendra" Newsgroups: gmane.emacs.help Subject: BibTeX mode --- remove unwanted fields Date: Fri, 29 Apr 2016 11:19:21 +0530 Message-ID: Reply-To: "N. Raghavendra" NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1461909011 24133 80.91.229.3 (29 Apr 2016 05:50:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Apr 2016 05:50:11 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 29 07:50:01 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aw1JQ-0001ig-2H for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Apr 2016 07:50:00 +0200 Original-Received: from localhost ([::1]:52460 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aw1JP-0005Ck-78 for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Apr 2016 01:49:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57344) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aw1JD-00052k-St for help-gnu-emacs@gnu.org; Fri, 29 Apr 2016 01:49:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aw1J7-0003TZ-FY for help-gnu-emacs@gnu.org; Fri, 29 Apr 2016 01:49:44 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:47605) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aw1J7-0003TM-94 for help-gnu-emacs@gnu.org; Fri, 29 Apr 2016 01:49:41 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aw1J2-0001aT-4N for help-gnu-emacs@gnu.org; Fri, 29 Apr 2016 07:49:36 +0200 Original-Received: from www.hri.res.in ([220.227.103.137]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 29 Apr 2016 07:49:36 +0200 Original-Received: from raghu by www.hri.res.in with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 29 Apr 2016 07:49:36 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 15 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: www.hri.res.in User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (darwin) Cancel-Lock: sha1:fk+P/BYy2IhrhRvZyG1WyNv4l4Y= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:109828 Archived-At: Is there a way to remove unwanted fields from a BibTeX entry when doing `bibtex-clean-entry'? I'd like to have a variable `my-bibtex-fields' with a value like '("author" "editor" "title" "journal" "year" "publisher" "doi" "url" ...) and kill any field that doesn't belong to `my-bibtex-fields', when I run `bibtex-clean-entry' on an entry. Cheers, Raghu. -- N. Raghavendra , http://www.retrotexts.net/ Harish-Chandra Research Institute, http://www.hri.res.in/