From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Newsgroups: gmane.emacs.help Subject: Re: delete whole word (ssh) Date: Mon, 6 Oct 2008 19:10:29 -0700 (PDT) Organization: http://groups.google.com Message-ID: <29e46491-2388-4a4c-94f9-08faede555dd@k36g2000pri.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1223347264 24876 80.91.229.12 (7 Oct 2008 02:41:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 7 Oct 2008 02:41:04 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 07 04:42:01 2008 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 1Kn2WE-0007jm-UX for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Oct 2008 04:41:51 +0200 Original-Received: from localhost ([127.0.0.1]:49913 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kn2VB-0000IK-3b for geh-help-gnu-emacs@m.gmane.org; Mon, 06 Oct 2008 22:40:45 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!k36g2000pri.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 33 Original-NNTP-Posting-Host: 24.6.185.159 Original-X-Trace: posting.google.com 1223345429 7658 127.0.0.1 (7 Oct 2008 02:10:29 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 7 Oct 2008 02:10:29 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k36g2000pri.googlegroups.com; posting-host=24.6.185.159; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; en) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.2 Safari/525.22, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:163115 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:58458 Archived-At: On Oct 6, 7:14 am, Rafal Kurcz wrote: > Hello > > The backspace didn't work in emacs on ssh session. > I put the following into my config file to use the backspace to delete > the character at the left side of a cursor: > > (keyboard-translate ?\C-h ?\C-?) > or > (global-set-key "\C-h" 'backward-delete-char) > > Unfortunately ctrl-backspace does not delete whole words but only one > character. > How can I force emacs to delete whole words on ssh session. (1) are you using emacs in X-Windows, then running ssh within M-x term? (2) Or, are you using a terminal app in X-windws, ssh to remote server, then launching emacs in the remote server? The answer depends. For (2), it's likely your term app has a preference setting to that tells it what signal to send for the the backspace key. For (1) it's a bit complex... perhaps you can just try this: (global-set-key (kbd "C-") 'backward-kill-word) Xah =E2=88=91 http://xahlee.org/ =E2=98=84