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 17:50:25 +0100 Message-ID: <87fvoilhri.fsf@bzg.ath.cx> References: <87ob38gcp1.fsf@bzg.ath.cx> <87wqhv2f27.fsf@bzg.ath.cx> <83d2jmirt1.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1390236671 12806 80.91.229.3 (20 Jan 2014 16:51:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Jan 2014 16:51:11 +0000 (UTC) Cc: 16497@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 20 17:51:17 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 1W5I4C-000248-TF for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Jan 2014 17:51:17 +0100 Original-Received: from localhost ([::1]:53439 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5I4C-0003x1-JB for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Jan 2014 11:51:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34778) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5I44-0003wu-R4 for bug-gnu-emacs@gnu.org; Mon, 20 Jan 2014 11:51:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W5I3y-0004nn-Us for bug-gnu-emacs@gnu.org; Mon, 20 Jan 2014 11:51:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44539) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5I3y-0004nj-R8 for bug-gnu-emacs@gnu.org; Mon, 20 Jan 2014 11:51:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1W5I3y-0007PN-GN for bug-gnu-emacs@gnu.org; Mon, 20 Jan 2014 11:51: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 16:51: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.139023663128390 (code B ref 16497); Mon, 20 Jan 2014 16:51:02 +0000 Original-Received: (at 16497) by debbugs.gnu.org; 20 Jan 2014 16:50:31 +0000 Original-Received: from localhost ([127.0.0.1]:58558 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W5I3S-0007Nn-Q1 for submit@debbugs.gnu.org; Mon, 20 Jan 2014 11:50:31 -0500 Original-Received: from mail-we0-f170.google.com ([74.125.82.170]:56689) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W5I3Q-0007Na-4j for 16497@debbugs.gnu.org; Mon, 20 Jan 2014 11:50:28 -0500 Original-Received: by mail-we0-f170.google.com with SMTP id u57so7204138wes.1 for <16497@debbugs.gnu.org>; Mon, 20 Jan 2014 08:50:27 -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=5m9aKBb2a+KCd6SRX5zrOvfKM8Jc7FGm6HiiIQxhA2o=; b=j34wm6tLcPTsHS7ddukKuvN3tNv+pw0nbSXRdVG/J9eJTdXYk/c2MD3Sonl9BuI46Q hDcWOHLQ6wAI/Xnygzb+D9g/bvSS7DxNLmBgKkqykf3yJkO7QRxRUzEBroDIKuf70jqo AUensCalDDyQekjQXeOZqphPlnQZPzogtwdKiM6+3sp185aMiBuQEZ9rdIm8gbPA0fEl pqrOANN+v+kZwM7NCR98RjHXn2yDpa2eqXLLEivJwwMLMCkaJ5XsZdtTna89hD4H5Jn4 WO9mWxsWdFcQoHFfSP4Cmr6naiVJ2to+dUWziAgr5nnbvjbZKcWtRsp5qbZDiCToYnb+ lxmQ== X-Received: by 10.180.76.168 with SMTP id l8mr10912021wiw.40.1390236626926; Mon, 20 Jan 2014 08:50:26 -0800 (PST) Original-Received: from bzg.localdomain (AMontsouris-651-1-1-52.w90-46.abo.wanadoo.fr. [90.46.36.52]) by mx.google.com with ESMTPSA id co15sm2333227wjb.12.2014.01.20.08.50.25 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Jan 2014 08:50:26 -0800 (PST) Original-Received: by bzg.localdomain (Postfix, from userid 1000) id 554AF1C2074C; Mon, 20 Jan 2014 17:50:25 +0100 (CET) In-Reply-To: <83d2jmirt1.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 20 Jan 2014 17:41:46 +0200") 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:83792 Archived-At: Eli Zaretskii writes: > Before we design the interface, can we please define what is the job > to be done here? I don't know what needs to be done, but what's confusing is that both `move-to-column' and `line-move-to-column' ignore invisible characters within the line, but `line-move-to-column' goes back to real beginning of the line while `move-to-column' goes back to the visual beginning of the line. > If it's just to get to Nth character from bol, aren't there easier > ways of doing that? Sure. If `string-rectangle' can do the right thing with no change in such internals, that's good -- but I trust Stefan when he says that there may be cases where you want `string-rectangle' to behave as it does now. Another probably related quirk: emacs -Q M-: (insert "abc") RET C-a M-: (put-text-property (point) (1+ (point)) 'invisible t) RET C-a C-a C-a ... ! See the point moving from b to c and back again. Probably some heisenbug since edebug-defun'ing move-beginning-of-line and stepping through it does not have the bug. Such a contrived example does not deserve a bug report, but i thought maybe this is related to the current discussion. -- Bastien