From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mirko Newsgroups: gmane.emacs.help Subject: multi-line paragraph separator Date: Wed, 05 Sep 2007 08:07:49 -0700 Organization: http://groups.google.com Message-ID: <1189004869.440206.289810@57g2000hsv.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1189006835 18127 80.91.229.12 (5 Sep 2007 15:40:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 5 Sep 2007 15:40:35 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Sep 05 17:40:32 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 1ISwzV-00040t-M6 for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Sep 2007 17:40:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ISwzT-00017x-TQ for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Sep 2007 11:40:27 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!57g2000hsv.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 46 Original-NNTP-Posting-Host: 208.218.238.20 Original-X-Trace: posting.google.com 1189004869 25100 127.0.0.1 (5 Sep 2007 15:07:49 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 5 Sep 2007 15:07:49 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: 57g2000hsv.googlegroups.com; posting-host=208.218.238.20; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Original-Xref: shelby.stanford.edu gnu.emacs.help:151717 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:47241 Archived-At: Hi, I am writing a mode to help navigate results of literature searches. I would like to redefine the paragraph as a beginning of a new citation. The problem is that because of the file format, I need a regexp to look at two or more lines to determine a start of a paragraph. Here are the details: In this file, citations are separated by two blank lines. A single blank line separates the citation header (title, authors, publication info) from the abstract. The header and the abstract start in column 5. Here is an example (the blank lines are marked with "<" -- these characters are not present in the file, and my comments in CAPITALS) PREVIOUS CITATION ABSTRACT ..... cantilever models can provide a fast and reliable understanding of the mechanical deflection properties of microfabricated SiO2 cantilevers. FOLLOWED BY TWO BLANK LINES < < Porous silicon fuel cells for micro power generation THIS IS THE HEADER OF THE NEXT CITATION Kuan-Lun Chu, Mark A Shannon and Richard I Masel 2007 J. Micromech. Microeng. 17 S243-S249 Abstract: http://www.iop.org/EJ/abstract/-alert=33505/0960-1317/17/9/S06 Full text PDF: http://www.iop.org/EJ/article/-alert=33505/0960-1317/17/9/S06/jmm7_9_s06.pdf < The objective of this paper is to report the recent progress in the FOLLOWED BY ITS ABSTRACT development of porous silicon fuel cells for micro power generation. Previous work has demonstrated that an acid loaded I tried by redefining the paragraph-start and paragraph-separate as (make-local-variable 'paragraph-start) (setq paragraph-start "\\f\\f| ") (make-local-variable 'paragraph-separate) (setq paragraph-separate "\\f$\\f$") but that did not work. Is that even possible? Thanks, Mirko