From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: 23.0.60; A combination of PC Selection, Visual Lines and emacsclient redefines C-backspace Date: Wed, 21 Jan 2009 22:21:28 -0800 (PST) Message-ID: <200901220621.n0M6LSjL008598@rodan.ics.uci.edu> References: <87iqoa7igp.fsf@cyd.mit.edu> <200901201618.n0KGIxNl015357@mothra.ics.uci.edu> <87mydk7ikx.fsf@cyd.mit.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1232605347 21962 80.91.229.12 (22 Jan 2009 06:22:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 Jan 2009 06:22:27 +0000 (UTC) Cc: pent , rfrancoise@debian.org, 1960@emacsbugs.donarmstrong.com, emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 22 07:23:38 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LPsyX-0002Do-Ov for ged-emacs-devel@m.gmane.org; Thu, 22 Jan 2009 07:23:38 +0100 Original-Received: from localhost ([127.0.0.1]:42874 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LPsxG-0002VY-2s for ged-emacs-devel@m.gmane.org; Thu, 22 Jan 2009 01:22:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LPsx8-0002U0-LR for emacs-devel@gnu.org; Thu, 22 Jan 2009 01:22:10 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LPsx5-0002RA-6v for emacs-devel@gnu.org; Thu, 22 Jan 2009 01:22:09 -0500 Original-Received: from [199.232.76.173] (port=52556 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LPsx5-0002R3-1b for emacs-devel@gnu.org; Thu, 22 Jan 2009 01:22:07 -0500 Original-Received: from barrelv2.ics.uci.edu ([128.195.1.114]:63287) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1LPsx4-0004KC-H6 for emacs-devel@gnu.org; Thu, 22 Jan 2009 01:22:06 -0500 Original-Received: from rodan.ics.uci.edu (rodan.ics.uci.edu [128.195.6.9]) by barrelv2.ics.uci.edu (8.13.8+Sun/8.13.8) with ESMTP id n0M6LTHb002877; Wed, 21 Jan 2009 22:21:30 -0800 (PST) Original-Received: (from dann@localhost) by rodan.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id n0M6LSjL008598; Wed, 21 Jan 2009 22:21:28 -0800 (PST) X-Debbugs-No-Ack: yes In-Reply-To: <87mydk7ikx.fsf@cyd.mit.edu> (Chong Yidong's message of "Wed, 21 Jan 2009 11:02:54 -0500") Original-Lines: 38 X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: n0M6LTHb002877 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@rodan.ics.uci.edu X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:108073 Archived-At: > > there's probably some problem with pc-selection-mode and the way it > > interacts with normal-erase-is-backspace. > > The problem is not pc-selection mode, but how Emacs does > normal-erase-is-backspace in multi-tty situations. Here's an even > simpler recipe, not involving pc-selection-mode or the daemon: > > 1. Add the following line to .emacs: > > (global-set-key [C-delete] 'kill-line) > > 2. emacs -nw -f server-start > 3. emacsclient -c > 4. C-h k C-backspace > > => runs the command kill-line This happens because: (defun normal-erase-is-backspace-setup-frame (&optional frame) "Set up `normal-erase-is-backspace-mode' on FRAME, if necessary." (unless frame (setq frame (selected-frame))) (unless (terminal-parameter nil 'normal-erase-is-backspace) (normal-erase-is-backspace-mode (if (if (eq normal-erase-is-backspace 'maybe) When using "emacs -nw -f server-start" the "(unless (terminal-parameter" test passes and `normal-erase-is-backspace' is run. When using "emacs -f server-start" the `terminal-parameter' call returns non-ni, so `normal-erase-is-backspace' is not run. It seems that terminal-parameters are copied from the first frame created... Not sure how normal-erase-is-backspace is supposed to work...