From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Francesco Scaglioni Newsgroups: gmane.emacs.help Subject: Re: buffer switch & copy not under X Date: Tue, 24 Dec 2002 09:03:15 +0000 (GMT) Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <20021224.090315.71093969.fgs@epulse.net> References: <84vg1kbnv2.fsf@lucy.cs.uni-dortmund.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1040720544 19815 80.91.224.249 (24 Dec 2002 09:02:24 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 24 Dec 2002 09:02:24 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18QkxD-00059S-00 for ; Tue, 24 Dec 2002 10:02:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18QkwW-0002mb-04 for gnu-help-gnu-emacs@m.gmane.org; Tue, 24 Dec 2002 04:01:40 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18QkwM-0002l8-00 for help-gnu-emacs@gnu.org; Tue, 24 Dec 2002 04:01:30 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18QkwI-0002kR-00 for help-gnu-emacs@gnu.org; Tue, 24 Dec 2002 04:01:29 -0500 Original-Received: from mail5.nhs.uk ([194.72.23.242]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18QkwH-0002kH-00 for help-gnu-emacs@gnu.org; Tue, 24 Dec 2002 04:01:25 -0500 Original-Received: from hn-ext by mail5.nhs.uk (Sendmail 8.8.8) with esmtp id 18QkwG-0005tp-00; Tue, 24 Dec 2002 09:01:24 +0000 Original-Received: from relay.nhs.uk (194.62.42.143) by relayint2.nhs.uk (Syntegra-I2 6.5.016) id 3DD28BFA0069473F for help-gnu-emacs@gnu.org; Tue, 24 Dec 2002 09:01:24 +0000 Original-Received: from localhost (194.155.32.215) by relay.nhs.uk (Syntegra-3 6.5.026) id 3DF490C9003C894D for help-gnu-emacs@gnu.org; Tue, 24 Dec 2002 09:02:01 +0000 Original-To: help-gnu-emacs@gnu.org In-Reply-To: <84vg1kbnv2.fsf@lucy.cs.uni-dortmund.de> X-Mailer: Mew version 3.1 on Emacs 21.1 / Mule 5.0 (SAKAKI) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:4998 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:4998 From: kai.grossjohann@uni-duisburg.de (Kai Gro=DFjohann) Subject: Re: buffer switch & copy not under X Date: Mon, 23 Dec 2002 19:18:25 +0100 > Francesco Scaglioni 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 buff= ers > = > Type and then C- 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-. 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-"))) > = > For teaching xterm about it, hmmm... Maybe this works in > ~/.Xdefaults or equivalent: > = > XTerm.VT100.translations: #override \ > Ctrl 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 past= e > > to other applications elsewhere via a middle mouse button ( I am us= ing > > 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) > _______________________________________________ > Help-gnu-emacs mailing list > Help-gnu-emacs@gnu.org > http://mail.gnu.org/mailman/listinfo/help-gnu-emacs > = Thanks for that I appreciate it -- shall give it a try Happy Christmas Francesco