all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Rafal Kurcz <pawlaczus@yahoo.com>
To: help-gnu-emacs@gnu.org
Subject: Re: delete whole word (ssh)
Date: Wed, 8 Oct 2008 06:34:46 -0700 (PDT)	[thread overview]
Message-ID: <9ca8d42a-44be-4bb8-9ff2-61cff506b8e1@c60g2000hsf.googlegroups.com> (raw)
In-Reply-To: bbeb0432-a987-4a3b-963e-f95a6eb315b7@a2g2000prm.googlegroups.com

On 7 Paź, 17:42, Xah <xah...@gmail.com> wrote:
> On Oct 7, 8:18 am, Rafal Kurcz <pawlac...@yahoo.com> wrote:
>
>
>
> > On 7 Pa¼, 04:10,Xah<xah...@gmail.com> wrote:
>
> > > On Oct 6, 7:14 am, Rafal Kurcz <pawlac...@yahoo.com> 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-<backspace>") 'backward-kill-word)
>
> > I am using the (2) option it is using ssh to connect to a remote
> > server and then launch emacs on it.
> > Could you give me more indications of how to solve this problem.
>
> I haven't been using X term on Linux/Unixes for few years... but my
> experiences on over a decade use of many terminal emulators on the Mac
> and Windows is that the app itself will have a preference setting
> where you can set what char code the Backspace key sends. What exactly
> the option is depends on the term app and often the option is not
> intuitive... that may go by several names or as config file...
>
> For example, on OS X 10.4.x's Terminal app, go to “Terminal‣Window
> Settings...” then the Keyboard tab, there's “Delete key sends
> backspace” checkbox. (Note: on Apple keyboard, the Delete key is the
> name for the Backspace key on the PC keybords... to compliate the
> issue, there's also the Delete key (aka Del) in the group of Home/End
> block.)
>
> I think you will need to give exactly which terminal emulation app and
> the exact OS for people to be more helpful.
>
> Also, as far as my experience goes this issue is rather complex...
> because even without connecting to remote server, but just using a
> terminal emulation such as unix shell, the backspace behavior also
> depends on your termcap settings (seehttp://en.wikipedia.org/wiki/Termcap
> )...
>
> Does (global-set-key (kbd "C-<backspace>") 'backward-kill-word) work?


Unfortunately it does not work.


>
> so, i'd say give exact info on the OS, term app u are using... maybe
> people familiar with your setting can give more help.


I'm using Gentoo Linux, xterm-235 and openssh-4.7_p1-r6.
Esc-backspace works fine but ctrl-backspace does not work.

Great THANSK to all of You for help.


  reply	other threads:[~2008-10-08 13:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-06 14:14 delete whole word (ssh) Rafal Kurcz
2008-10-07  2:10 ` Xah
2008-10-07 15:18   ` Rafal Kurcz
2008-10-07 15:42     ` Xah
2008-10-08 13:34       ` Rafal Kurcz [this message]
2008-10-07 16:11 ` Nikolaj Schumacher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9ca8d42a-44be-4bb8-9ff2-61cff506b8e1@c60g2000hsf.googlegroups.com \
    --to=pawlaczus@yahoo.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.