From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andrew Kurn Newsgroups: gmane.emacs.bugs Subject: bug#9936: kill-line problem Date: Wed, 2 Nov 2011 15:12:50 -0700 Message-ID: <20111102221250.GA20214@sfu.ca> References: <20111101204642.GC20741@sfu.ca> <5bbosvl3rn.fsf@fencepost.gnu.org> <20111102165024.GD26922@sfu.ca> <20145.41970.282049.500375@fencepost.gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1320272027 18804 80.91.229.12 (2 Nov 2011 22:13:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 2 Nov 2011 22:13:47 +0000 (UTC) Cc: kurn@sfu.ca, 9936@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 02 23:13:42 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RLj42-0008SG-IN for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Nov 2011 23:13:42 +0100 Original-Received: from localhost ([::1]:48595 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLj41-0002Xf-GS for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Nov 2011 18:13:41 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:48863) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLj3y-0002XY-Ux for bug-gnu-emacs@gnu.org; Wed, 02 Nov 2011 18:13:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RLj3x-00022w-Tf for bug-gnu-emacs@gnu.org; Wed, 02 Nov 2011 18:13:38 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38544) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLj3x-00022q-S7 for bug-gnu-emacs@gnu.org; Wed, 02 Nov 2011 18:13:37 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RLj6I-0004Ax-F7 for bug-gnu-emacs@gnu.org; Wed, 02 Nov 2011 18:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrew Kurn Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 02 Nov 2011 22:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9936 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9936-submit@debbugs.gnu.org id=B9936.132027212116004 (code B ref 9936); Wed, 02 Nov 2011 22:16:02 +0000 Original-Received: (at 9936) by debbugs.gnu.org; 2 Nov 2011 22:15:21 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RLj5d-0004A4-7j for submit@debbugs.gnu.org; Wed, 02 Nov 2011 18:15:21 -0400 Original-Received: from pobox.sfu.ca ([142.58.101.28]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RLj5Z-00049u-Rq for 9936@debbugs.gnu.org; Wed, 02 Nov 2011 18:15:19 -0400 Original-Received: from fraser.sfu.ca (fraser.sfu.ca [142.58.101.25]) by pobox.sfu.ca (8.13.6/8.13.5/SFU-6.0G) with ESMTP id pA2MCoAp003137 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 2 Nov 2011 15:12:51 -0700 (PDT) Original-Received: (from kurn@localhost) by fraser.sfu.ca (8.13.8+Sun/8.14.3/SFU-6.0C) id pA2MCoNh028166; Wed, 2 Nov 2011 15:12:50 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20145.41970.282049.500375@fencepost.gnu.org> User-Agent: Mutt/1.5.20 (2009-06-14) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 02 Nov 2011 18:16:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:53457 Archived-At: On Wed 2 Nov 2011 16:11 -0400, Glenn Morris wrote: > > > (Please keep 9936@debbugs cc'd) > > Andrew Kurn wrote (on Wed, 2 Nov 2011 at 09:50 -0700): > > > > It sounds like the intended behaviour. With kill-whole-line non-nil, > > > kill-line kills up to wherever forward-visible-line ends up. Ie, > > > invisible newlines are ignored. > > > > No, sorry, but there are several visible newlines in the way. It eats > > them all up. > > Can you give a recipe showing how to reproduce the problem, starting > from emacs -q --no-site-file? This seems to work: emacs -nw -q --no-site-file (setq ss (concat (make-string 10 ?X) "," )) (put-text-property 0 10 'invisible t ss) (insert ss ss ss "\n" ss ss ss "\n" ss ss ss "\n" ss ss ss "\n" ) (setq kill-whole-line t) --- Then use ^K to kill the first line. They all disappear. (let ((kill-whole-line t)) (kill-line)) This seems to have the value "kill-region" . . . if that makes any sense. Andrew