From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Sam Halliday Newsgroups: gmane.emacs.help Subject: backward-delete-char-untabify-method Date: Sun, 8 Jun 2003 19:05:40 +0100 Organization: blueyonder (post doesn't reflect views of blueyonder) Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <20030608190540.21c4890c.devnull@example.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1055095715 24369 80.91.224.249 (8 Jun 2003 18:08:35 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 8 Jun 2003 18:08:35 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Sun Jun 08 20:08:32 2003 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 19P4am-0006Kp-00 for ; Sun, 08 Jun 2003 20:08:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19P4cT-0008Qq-Do for gnu-help-gnu-emacs@m.gmane.org; Sun, 08 Jun 2003 14:10:17 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newspeer1-gui.server.ntli.net!ntli.net!news-hub.cableinet.net!blueyonder!internal-news-hub.cableinet.net!news-binary.blueyonder.co.uk.POSTED!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help X-Newsreader: GNU/Linux Sylpheed Claws 0.9.0 Original-Lines: 36 Original-NNTP-Posting-Host: 82.41.201.73 Original-X-Complaints-To: abuse@blueyonder.co.uk Original-X-Trace: news-binary.blueyonder.co.uk 1055095538 82.41.201.73 (Sun, 08 Jun 2003 18:05:38 GMT) Original-NNTP-Posting-Date: Sun, 08 Jun 2003 18:05:38 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:114296 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:10790 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10790 hi there, the docs mention that the only options available to `backward-delete-char-untabify-method' are: `untabify' -- turn a tab to many spaces, then delete one space; `hungry' -- delete all whitespace, both tabs and spaces; `all' -- delete all whitespace, including tabs, spaces and newlines; nil -- just delete one character. but none of these do _exactly_ what i am after. what i would like is similar to `hungry', but not the same. if i have some indented text: line 1 line 2 line 3 A when the cursor is at `A', if i press BACKSPACE, the cursor will go to the beginning of the line, but i would prefer it to go to the same indentation as "line 3", another BACKSPACE bringing me to "line 2" and requiring a third to bring me to the beginning of the line. i.e. I would prefer a `delete back one level of indentation' option. could somebody please tell me if is this possible? and how to set it up (or where to look)? my ~/.emacs (for 21.3.x) is at http://www.ma.hw.ac.uk/~samuel/emacs but to save the trip, the relevant part is: (setq backward-delete-char-untabify-method 'hungry) (global-set-key "\C-?" 'backward-delete-char-untabify) cheers, Sam