From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!not-for-mail
From: Sam Halliday <sam.halliday@gmail.com>
Newsgroups: gmane.emacs.help
Subject: Re: custom backspace
Date: Tue, 22 Apr 2014 16:15:38 -0700 (PDT)
Message-ID: <7215734c-9d3b-423e-b03f-933c3aab390a@googlegroups.com>
References: <e6fef7a6-fa62-4426-b4fe-5e323637f5e9@googlegroups.com>
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: ger.gmane.org 1398209783 2920 80.91.229.3 (22 Apr 2014 23:36:23 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Tue, 22 Apr 2014 23:36:23 +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 Apr 23 01:36:16 2014
Return-path: <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org>
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 <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org>)
	id 1WckEZ-0003Y9-ON
	for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Apr 2014 01:36:15 +0200
Original-Received: from localhost ([::1]:57872 helo=lists.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org>)
	id 1WckEZ-00045z-BA
	for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Apr 2014 19:36:15 -0400
X-Received: by 10.236.45.41 with SMTP id o29mr21902888yhb.13.1398208538629;
	Tue, 22 Apr 2014 16:15:38 -0700 (PDT)
X-Received: by 10.140.108.132 with SMTP id j4mr500853qgf.1.1398208538609; Tue,
	22 Apr 2014 16:15:38 -0700 (PDT)
Original-Path: usenet.stanford.edu!cm18no5229376qab.0!news-out.google.com!du2ni14151qab.0!nntp.google.com!m5no4234821qaj.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Original-Newsgroups: gnu.emacs.help
In-Reply-To: <e6fef7a6-fa62-4426-b4fe-5e323637f5e9@googlegroups.com>
Complaints-To: groups-abuse@google.com
Injection-Info: glegroupsg2000goo.googlegroups.com;
	posting-host=109.154.235.237; 
	posting-account=kRukCAoAAAANs-vsVh9dFwo5kp5pwnPz
Original-NNTP-Posting-Host: 109.154.235.237
User-Agent: G2/1.0
Injection-Date: Tue, 22 Apr 2014 23:15:38 +0000
Original-Xref: usenet.stanford.edu gnu.emacs.help:205045
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 <help-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/help-gnu-emacs>,
	<mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/help-gnu-emacs>
List-Post: <mailto:help-gnu-emacs@gnu.org>
List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/help-gnu-emacs>,
	<mailto:help-gnu-emacs-request@gnu.org?subject=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:97310
Archived-At: <http://permalink.gmane.org/gmane.emacs.help/97310>

On Wednesday, 23 April 2014 00:00:46 UTC+1, Sam Halliday  wrote:
> I'd really like an emacs configuration whereby backspace will go back one=
 layer of indentation if the previous character is an indented whitespace, =
for all programming language modes.
>=20
>=20
> Also, I'd really like control-backspace to be contextual so that it will =
eat up all the whitespace if the previous character is whitespace, or delet=
e a word (which I think is the default) if the previous character is a non-=
whitespace character.


I should add some information to this to explain why I need some help:

1. "m-x describe-key" tells me that my "backspace" or DEL is bound to

 (backward-delete-char-untabify ARG &optional KILLP)
 =20
  with value untabify. But if type lots of spaces (e.g. in the scratch or m=
y .emacs) and then press backspace, it only goes back one character at a ti=
me... not untabbing.

2. describe on my control-backspace reveals that this is bound to C-backspa=
ce. But when I try to create any form of binding for C-backspace in my .ema=
cs I get an error that control must be followed by a single character... so=
 I don't have a clue how to rebind this.

Help greatly appreciated :-)