From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Alan Wehmann Newsgroups: gmane.emacs.help Subject: Re: how to change levels of chunks in outline mode? Date: 06 Jan 2003 14:32:42 -0600 Organization: Fermi National Accelerator Laboratory Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1041973078 23866 80.91.224.249 (7 Jan 2003 20:57:58 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 7 Jan 2003 20:57:58 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18W0nN-0006Co-00 for ; Tue, 07 Jan 2003 21:57:57 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18VyBt-0004fs-0F for gnu-help-gnu-emacs@m.gmane.org; Tue, 07 Jan 2003 13:11:05 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!info1.fnal.gov!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: fsui03.fnal.gov Original-X-Trace: info4.fnal.gov 1041885063 12068 131.225.68.24 (6 Jan 2003 20:31:03 GMT) Original-X-Complaints-To: abuse@fnnews.fnal.gov Original-NNTP-Posting-Date: 6 Jan 2003 20:31:03 GMT X-Newsreader: Gnus v5.5/XEmacs 20.4 - "Emerald" Original-Xref: shelby.stanford.edu gnu.emacs.help:108693 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:5231 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5231 Since the outline level is determined by the length of the match to the regular expression that looks for outline headers, I should think you could interactively change the headers so that the length of the match changes--in the chunk where you want to make changes. For example, by using "query-replace-regexp". You could use narrowing to control where you make such changes. "Robert P. J. Day" writes: > is there an easy way to shift an entire chunk of a file > that i'm looking at in outline mode either up or down a level > of depth? > > that is, if i have a number of consecutive chapters that > are at level one, and i decide that they really should be > all sections in a more all-encompassing chapter, can i shift > all level 1 headings to level 2, the internal level 2s to level > 3, and so on? > > rday > > > -- Alan Wehmann wehmann@fnal.gov