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: Re: BibTeX mode --- remove unwanted fields Date: Fri, 29 Apr 2016 12:41:39 +0530 Message-ID: References: <87fuu4yk6r.fsf@student.uu.se> Reply-To: "N. Raghavendra" NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1461960079 14360 80.91.229.3 (29 Apr 2016 20:01:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Apr 2016 20:01:19 +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 22:01:08 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 1awEb4-0006uJ-Dp for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Apr 2016 22:01:06 +0200 Original-Received: from localhost ([::1]:56078 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awEb0-0001EU-N6 for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Apr 2016 16:01:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36671) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awDtR-0000OQ-Bv for help-gnu-emacs@gnu.org; Fri, 29 Apr 2016 15:16:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1awDtF-0005V4-7o for help-gnu-emacs@gnu.org; Fri, 29 Apr 2016 15:15:55 -0400 Original-Received: from hapkido.dreamhost.com ([66.33.216.122]:59158) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awDtF-0005M2-0A for help-gnu-emacs@gnu.org; Fri, 29 Apr 2016 15:15:49 -0400 Original-Received: from homiemail-a120.g.dreamhost.com (caibbdcaaahh.dreamhost.com [208.113.200.77]) by hapkido.dreamhost.com (Postfix) with ESMTP id 8A79A90B3D for ; Fri, 29 Apr 2016 00:12:21 -0700 (PDT) Original-Received: from homiemail-a120.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a120.g.dreamhost.com (Postfix) with ESMTP id BCE4160002C2D for ; Fri, 29 Apr 2016 00:11:47 -0700 (PDT) Original-Received: from retrotexts.net (hrins2.hri.res.in [220.227.103.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: raghu@retrotexts.net) by homiemail-a120.g.dreamhost.com (Postfix) with ESMTPSA id 6D25E60002C2B for ; Fri, 29 Apr 2016 00:11:47 -0700 (PDT) Original-Received: by retrotexts.net (Postfix, from userid 501) id 5FD3313DA13F; Fri, 29 Apr 2016 12:41:39 +0530 (IST) In-Reply-To: <87fuu4yk6r.fsf@student.uu.se> (Emanuel Berg's message of "Fri, 29 Apr 2016 08:59:24 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (darwin) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 66.33.216.122 X-Mailman-Approved-At: Fri, 29 Apr 2016 16:00:53 -0400 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:109838 Archived-At: At 2016-04-29T08:59:24+02:00, Emanuel Berg wrote: > There is already `bibtex-next-field'. Then get the > data preferrable with a built-in, otherwise use > `thing-at-point' or something to that end. Oh, and the > "data" here is the field name, not the field data! > Then use `member' and see if that data is in your > variable of desired fields. If it isn't, kill with > `bibtex-kill-field'. After that/otherwise loop the > whole thing. Thanks, I'll look at bibtex.el, and see if I can cook up a method. Cheers, Raghu. -- N. Raghavendra , http://www.retrotexts.net/ Harish-Chandra Research Institute, http://www.hri.res.in/