From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.bugs Subject: bug#1960: 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__24160.9482480728$1232606713$gmane$org@rodan.ics.uci.edu> References: <87iqoa7igp.fsf@cyd.mit.edu> <200901201618.n0KGIxNl015357@mothra.ics.uci.edu> <87mydk7ikx.fsf@cyd.mit.edu> Reply-To: Dan Nicolaescu , 1960@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1232606634 24514 80.91.229.12 (22 Jan 2009 06:43:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 Jan 2009 06:43:54 +0000 (UTC) Cc: pent , rfrancoise@debian.org, 1960@emacsbugs.donarmstrong.com, emacs-devel@gnu.org To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 22 07:45:05 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LPtJI-0006QL-Bz for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Jan 2009 07:45:04 +0100 Original-Received: from localhost ([127.0.0.1]:57434 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LPtI1-0008Sx-1y for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Jan 2009 01:43:45 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LPtHt-0008Q8-C8 for bug-gnu-emacs@gnu.org; Thu, 22 Jan 2009 01:43:37 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LPtHo-0008M8-Cv for bug-gnu-emacs@gnu.org; Thu, 22 Jan 2009 01:43:34 -0500 Original-Received: from [199.232.76.173] (port=50647 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LPtHo-0008Lp-1A for bug-gnu-emacs@gnu.org; Thu, 22 Jan 2009 01:43:32 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:40133) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LPtHn-0005bH-Dm for bug-gnu-emacs@gnu.org; Thu, 22 Jan 2009 01:43:31 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0M6hSIQ015896; Wed, 21 Jan 2009 22:43:28 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n0M6U3be012412; Wed, 21 Jan 2009 22:30:03 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Dan Nicolaescu Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 22 Jan 2009 06:30:02 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 1960 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 1960-submit@emacsbugs.donarmstrong.com id=B1960.123260532411143 (code B ref 1960); Thu, 22 Jan 2009 06:30:02 +0000 Original-Received: (at 1960) by emacsbugs.donarmstrong.com; 22 Jan 2009 06:22:04 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from barrelv2.ics.uci.edu (barrelv2.ics.uci.edu [128.195.1.114]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0M6Lw2Y011137 for <1960@emacsbugs.donarmstrong.com>; Wed, 21 Jan 2009 22:21:59 -0800 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) 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: GNU/Linux 2.6 (newer, 3) Resent-Date: Thu, 22 Jan 2009 01:43:33 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:24377 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...