From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Julien Cubizolles Newsgroups: gmane.emacs.help Subject: Re: Question about string-match and match-string Date: Thu, 18 Jul 2013 10:00:43 +0200 Message-ID: <874nbsb8lw.fsf@free.fr> References: <20130717081704.GB16899@kuru.dyndns-at-home.com> <20130717083511.GC16899@kuru.dyndns-at-home.com> <87sizdbmo2.fsf@gmx.us> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1374134465 18171 80.91.229.3 (18 Jul 2013 08:01:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Jul 2013 08:01:05 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Rasmus Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 18 10:01:06 2013 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 1Uzj97-0002Ir-AW for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Jul 2013 10:01:05 +0200 Original-Received: from localhost ([::1]:52879 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uzj96-0001Qc-My for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Jul 2013 04:01:04 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58108) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uzj8w-0001QW-La for help-gnu-emacs@gnu.org; Thu, 18 Jul 2013 04:00:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uzj8v-0000uS-CB for help-gnu-emacs@gnu.org; Thu, 18 Jul 2013 04:00:54 -0400 Original-Received: from smtp4-g21.free.fr ([2a01:e0c:1:1599::13]:35442) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uzj8u-0000uC-R8 for help-gnu-emacs@gnu.org; Thu, 18 Jul 2013 04:00:53 -0400 Original-Received: from hereafter (unknown [37.161.145.186]) by smtp4-g21.free.fr (Postfix) with ESMTP id 34C414C8095; Thu, 18 Jul 2013 10:00:45 +0200 (CEST) In-Reply-To: <87sizdbmo2.fsf@gmx.us> (rasmus@gmx.us's message of "Wed, 17 Jul 2013 10:44:45 +0200") User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a01:e0c:1:1599::13 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:92221 Archived-At: Rasmus writes: > (defun rasmus/org-latex-ignore-heading (headline backend info) > "Strip headline from HEADLINE if it has tag ignoreheading for > certain headlines. `info' is Ignored" > (when (and (org-export-derived-backend-p backend 'latex 'html 'ascii) > (string-match "\\`.*ignoreheading.*\n" > (downcase headline))) > (replace-match "" nil nil headline))) > > (add-to-list 'org-export-filter-headline-functions > 'rasmus/org-latex-ignore-heading) I'm also looking for a ignoreheading function and was looking forward to using yours. However I get a (void-variable headline) error when exporting to LaTeX. Julien.