From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#29949: 26.0.90; doc of `picture-mode-exit' and `picture-mode' Date: Tue, 02 Jan 2018 22:10:54 +0200 Message-ID: <83y3lgaunl.fsf@gnu.org> References: <<706e6966-d849-420a-be4c-a3b70d204cd7@default>> <<831sj8caqs.fsf@gnu.org>> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1514923820 24956 195.159.176.226 (2 Jan 2018 20:10:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 2 Jan 2018 20:10:20 +0000 (UTC) Cc: 29949@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 02 21:10:15 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eWSt1-0005oR-OR for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Jan 2018 21:10:11 +0100 Original-Received: from localhost ([::1]:53924 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eWSux-0006Ch-Nc for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Jan 2018 15:12:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51278) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eWSur-0006CC-EP for bug-gnu-emacs@gnu.org; Tue, 02 Jan 2018 15:12:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eWSuo-00089N-5E for bug-gnu-emacs@gnu.org; Tue, 02 Jan 2018 15:12:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53046) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eWSuo-00089C-1l for bug-gnu-emacs@gnu.org; Tue, 02 Jan 2018 15:12:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eWSun-0006Oj-T3 for bug-gnu-emacs@gnu.org; Tue, 02 Jan 2018 15:12:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 02 Jan 2018 20:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29949 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 29949-submit@debbugs.gnu.org id=B29949.151492386824531 (code B ref 29949); Tue, 02 Jan 2018 20:12:01 +0000 Original-Received: (at 29949) by debbugs.gnu.org; 2 Jan 2018 20:11:08 +0000 Original-Received: from localhost ([127.0.0.1]:33494 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eWStw-0006Nb-2p for submit@debbugs.gnu.org; Tue, 02 Jan 2018 15:11:08 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:59783) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eWStu-0006NF-Tq for 29949@debbugs.gnu.org; Tue, 02 Jan 2018 15:11:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eWStl-0007ZB-Qc for 29949@debbugs.gnu.org; Tue, 02 Jan 2018 15:11:01 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:40330) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eWStl-0007Z1-MS; Tue, 02 Jan 2018 15:10:57 -0500 Original-Received: from [176.228.60.248] (port=1347 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eWStl-0002Wh-4w; Tue, 02 Jan 2018 15:10:57 -0500 In-reply-to: (message from Drew Adams on Tue, 2 Jan 2018 11:59:35 -0800 (PST)) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:141725 Archived-At: > Date: Tue, 2 Jan 2018 11:59:35 -0800 (PST) > From: Drew Adams > Cc: 29949@debbugs.gnu.org > > emacs -Q > > (defun foo (&optional n) > (interactive "*p") > (picture-mode) > (picture-open-line n) > (picture-move-down n) > (picture-mode-exit 'keep)) > > In *scratch*, put point on some text near the middle of the > first line. > > M-3 M-x foo > > The inserted blank lines are all empty, except the last one. > I believe this is the correct behavior. Even though a prefix > arg is used, whitespace-only lines other than the one point > is on have all of their whitespace removed. emacs -Q C-x b pic RET M-x picture-mode RET Press several times Press several times M-x picture-mode-exit RET You get a buffer with a single line, all the rest are gone emacs -Q C-x b pic RET M-x picture-mode RET Press several times Press several times C-u M-x picture-mode-exit RET You get a buffer with all the empty and whitespace characters you inserted, none are removed. > You can choose to describe this behavior differently than > I did. But I think you will admit that the current > description is inaccurate, here. Sorry, I cannot agree, given the behavior I get with the above recipe.