From: kai.grossjohann@uni-duisburg.de (Kai Großjohann)
Subject: Re: buffer switch & copy not under X
Date: Mon, 23 Dec 2002 19:18:25 +0100 [thread overview]
Message-ID: <84vg1kbnv2.fsf@lucy.cs.uni-dortmund.de> (raw)
In-Reply-To: mailman.543.1040648590.19936.help-gnu-emacs@gnu.org
Francesco Scaglioni <fgs@epulse.net> writes:
> 1] when running emacs under X the following in my ~/.emacs is self
> explanatory, yet when running emacs in an xterm (font reasons ) it
> doesn't work.
>
> ; Switch buffer with ctrl-tab
> (global-set-key [(ctrl tab)] 'bury-buffer) ; Ctrl-Tab switches buffers
Type <tab> and then C-<tab> in "emacs -nw", then use C-h l. I'm
guessing that Emacs will not see the difference between the two.
You first need to teach your terminal to send some sort of escape
sequence for C-<tab>. Then you need to teach Emacs about this escape
sequence. Let's say the escape sequence is ESC [ a b c, then the
following will teach Emacs:
(unless window-system
(define-key function-key-map (kbd "ESC [ a b c") (kbd "C-<tab>")))
For teaching xterm about it, hmmm... Maybe this works in
~/.Xdefaults or equivalent:
XTerm.VT100.translations: #override \
Ctrl <Key> Tab: string(0x1B) string("[abc") \n\
...other.bindings.here...
Omit the "\n\" part if you only have one translation.
> 2] under x the 'contents' of C-k, C-w and M-w are available to paste
> to other applications elsewhere via a middle mouse button ( I am using
> windowmaker on SuSE 8.0 ) - yet when running emacs within an xterm
> they are not.
Yes. You are not allowing Emacs to talk to X. (What if you were
running on the console and there was no X to talk to?) I don't know
if M-x xterm-mouse-mode RET helps, but it's easy enough to try.
Or maybe you just fix your Emacs font...
--
~/.signature is: umop ap!sdn (Frank Nobis)
next parent reply other threads:[~2002-12-23 18:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.543.1040648590.19936.help-gnu-emacs@gnu.org>
2002-12-23 18:18 ` Kai Großjohann [this message]
2002-12-24 9:03 ` buffer switch & copy not under X Francesco Scaglioni
2002-12-23 13:04 Francesco Scaglioni
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=84vg1kbnv2.fsf@lucy.cs.uni-dortmund.de \
--to=kai.grossjohann@uni-duisburg.de \
/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.