From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: custom backspace Date: Tue, 22 Apr 2014 18:45:28 -0700 (PDT) Message-ID: <33157b68-c4f0-4af8-bc36-0be999f00c85@default> References: <7215734c-9d3b-423e-b03f-933c3aab390a@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1398217573 4269 80.91.229.3 (23 Apr 2014 01:46:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Apr 2014 01:46:13 +0000 (UTC) To: Sam Halliday , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 23 03:46:06 2014 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 1WcmGA-0002nB-Qk for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Apr 2014 03:46:02 +0200 Original-Received: from localhost ([::1]:58158 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WcmG9-0007VB-Vt for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Apr 2014 21:46:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39724) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WcmFq-0007DT-L9 for help-gnu-emacs@gnu.org; Tue, 22 Apr 2014 21:45:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WcmFh-00086U-Sd for help-gnu-emacs@gnu.org; Tue, 22 Apr 2014 21:45:42 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:26750) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WcmFh-00086E-Cd for help-gnu-emacs@gnu.org; Tue, 22 Apr 2014 21:45:33 -0400 Original-Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s3N1jUEo019826 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 23 Apr 2014 01:45:30 GMT Original-Received: from userz7022.oracle.com (userz7022.oracle.com [156.151.31.86]) by ucsinet22.oracle.com (8.14.5+Sun/8.14.5) with ESMTP id s3N1jTkn002648 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 23 Apr 2014 01:45:30 GMT Original-Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by userz7022.oracle.com (8.14.5+Sun/8.14.4) with ESMTP id s3N1jTim002630; Wed, 23 Apr 2014 01:45:29 GMT In-Reply-To: <7215734c-9d3b-423e-b03f-933c3aab390a@googlegroups.com> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6691.5000 (x86)] X-Source-IP: ucsinet22.oracle.com [156.151.31.94] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 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:97314 Archived-At: > 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= my > .emacs) and then press backspace, it only goes back one character at a > time... not untabbing. It *is* untabifying. If the char before point is a tab character, then without untabifying behavior that char is removed. With untabifying, the tab char is converted to SPC chars and then one of those SPC chars is removed, instead. > 2. describe on my control-backspace reveals that this is bound to C- > backspace. But when I try to create any form of binding for C-backspace i= n > my .emacs I get an error that control must be followed by a single > character... so I don't have a clue how to rebind this. Use `C-h k', then hit the `C-backspace' key. It tells you something like this: runs the command backward-kill-paragraph... Now you know how Emacs prints the name of that key sequence: . So do this: (global-set-key (kbd "") 'your-command) See the Emacs manual, node `Init Rebinding'.