From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bastien Newsgroups: gmane.emacs.bugs Subject: bug#16497: 24.3.50; `move-to-column' ignores invisible text at the beginning of the line, which create problems when using string-rectangle Date: Mon, 20 Jan 2014 10:11:28 +0100 Message-ID: <87wqhv2f27.fsf@bzg.ath.cx> References: <87ob38gcp1.fsf@bzg.ath.cx> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1390209134 739 80.91.229.3 (20 Jan 2014 09:12:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Jan 2014 09:12:14 +0000 (UTC) Cc: 16497@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 20 10:12:19 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W5Au2-0002MA-Mk for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Jan 2014 10:12:18 +0100 Original-Received: from localhost ([::1]:49429 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5Au2-0001Xe-8H for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Jan 2014 04:12:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50502) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5Ats-0001WR-Vv for bug-gnu-emacs@gnu.org; Mon, 20 Jan 2014 04:12:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W5Atn-0006V0-4D for bug-gnu-emacs@gnu.org; Mon, 20 Jan 2014 04:12:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43550) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5Atm-0006Uu-VJ for bug-gnu-emacs@gnu.org; Mon, 20 Jan 2014 04:12:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1W5Atm-0001Zt-8I for bug-gnu-emacs@gnu.org; Mon, 20 Jan 2014 04:12:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Bastien Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Jan 2014 09:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16497 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16497-submit@debbugs.gnu.org id=B16497.13902090956027 (code B ref 16497); Mon, 20 Jan 2014 09:12:02 +0000 Original-Received: (at 16497) by debbugs.gnu.org; 20 Jan 2014 09:11:35 +0000 Original-Received: from localhost ([127.0.0.1]:57569 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W5AtK-0001Z9-S1 for submit@debbugs.gnu.org; Mon, 20 Jan 2014 04:11:35 -0500 Original-Received: from mail-we0-f172.google.com ([74.125.82.172]:48594) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W5AtI-0001Z0-I7 for 16497@debbugs.gnu.org; Mon, 20 Jan 2014 04:11:33 -0500 Original-Received: by mail-we0-f172.google.com with SMTP id q58so6741062wes.31 for <16497@debbugs.gnu.org>; Mon, 20 Jan 2014 01:11:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type; bh=/8JitSfrXP3pZqvHvhVBQzSZB/OKFbPAnI7+/LIRdmc=; b=sn6wDFjjxs4HSHHL0bz+mjHn/wZ5PRH93UOxOUoQjXCNURck2vfpxVmSUK4vuSntI3 dfqsgUt3hpUi1OV9/yUGg8kuPTBV5SRhM4cmbR96ZwwCBhlE8L8jBqSNnh1kqGR+aWGI CWM2q5375vAyWLV95N9Q4jZAhP8fuW64XBjsnQnS34vfhUyO4KSQdmEy9BbvWoAbeXAI YzKIL5ZrvO4DrEdbZO5ToXz0mXUwBUmqrVNrVobDMS5WJgfPPyWExPm3QIKQkA1qgTxM q8Ha+RzrMCNs/luNEZK7OQUaHlD05vDEjdMDMH08+OYZ3UZDRTmi1wXBmnUxeUJcjaPj fHLA== X-Received: by 10.180.19.35 with SMTP id b3mr9095241wie.20.1390209091594; Mon, 20 Jan 2014 01:11:31 -0800 (PST) Original-Received: from bzg.localdomain ([78.250.185.209]) by mx.google.com with ESMTPSA id j1sm1168755wic.9.2014.01.20.01.11.30 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Jan 2014 01:11:30 -0800 (PST) Original-Received: by bzg.localdomain (Postfix, from userid 1000) id 1A54C1C2062B; Mon, 20 Jan 2014 10:11:28 +0100 (CET) In-Reply-To: (Stefan Monnier's message of "Sun, 19 Jan 2014 15:48:47 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:83757 Archived-At: Stefan Monnier writes: > Indeed. And it's not the right choice in your case. But I'm pretty > sure it is the right choice in other cases. I agree. > Maybe we should make move-to-column pay attention to stickiness so that > you con control where it stops by playing with text-properties's > stickiness (or overlay's insertion types). Another way is to have a parameter to possibly ignore invisibility specs altogether. If we rely on stickiness, then the fact that front-sticky is nil by default suggests that (move-to-column 0) should ignore invisible text while going back to the beginning of the line, because you don't want to leave the point in a position where it will inherit from the previous invisible property. But this interpretation seems fragile. > But just changing the behavior from one side to the other will just fix > it in some cases and break it in others. Yes, agreed too. -- Bastien