From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kai.grossjohann@uni-duisburg.de (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.help Subject: Re: buffer switch & copy not under X Date: Mon, 23 Dec 2002 19:18:25 +0100 Organization: University of Dortmund, Germany Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <84vg1kbnv2.fsf@lucy.cs.uni-dortmund.de> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1040667665 8682 80.91.224.249 (23 Dec 2002 18:21:05 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 23 Dec 2002 18:21:05 +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 18QXC4-0002Eu-00 for ; Mon, 23 Dec 2002 19:20:48 +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 18QXBm-0004m0-02 for gnu-help-gnu-emacs@m.gmane.org; Mon, 23 Dec 2002 13:20:30 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!pd9e1ef94.dip.t-dialin.NET!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 42 Original-NNTP-Posting-Host: pd9e1ef94.dip.t-dialin.net (217.225.239.148) Original-X-Trace: fu-berlin.de 1040667508 5455621 217.225.239.148 (16 [73968]) User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) Cancel-Lock: sha1:Xi7xNVMocmK9oGe52on1rdeFhMA= Original-Xref: shelby.stanford.edu gnu.emacs.help:108431 Original-To: help-gnu-emacs@gnu.org 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:4960 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:4960 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 buffers 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 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)