all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Eli Zaretskii <eliz@gnu.org>, Drew Adams <drew.adams@oracle.com>
Cc: 29949@debbugs.gnu.org
Subject: bug#29949: 26.0.90; doc of `picture-mode-exit' and `picture-mode'
Date: Tue, 2 Jan 2018 11:59:35 -0800 (PST)	[thread overview]
Message-ID: <d4f7e369-cf82-4fd1-96b0-77dc97a56456@default> (raw)
In-Reply-To: <<831sj8caqs.fsf@gnu.org>>

> > 2. Both doc strings incorrectly give the impression that a line that
> > has only whitespace (e.g. space chars) is NOT stripped of its whitespace
> > chars if you provide an argument.
> >
> > The command functions correctly, which is to strip all such lines
> > except the one with point.  The whitespace preceding point on its
> > line is not stripped when you use a prefix arg.  This is the only
> > whitespace that is not stripped when you use a prefix arg.
> 
> I see nothing like what you describe.  The behavior I see is exactly
> what the doc strings say: trailing whitespace is removed, unless the
> exit command is invoked with C-u.  Empty lines are treated as any
> other trailing whitespace, i.e. removed in their entirety.

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.

You can choose to describe this behavior differently than
I did.  But I think you will admit that the current
description is inaccurate, here.






       reply	other threads:[~2018-01-02 19:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <<706e6966-d849-420a-be4c-a3b70d204cd7@default>
     [not found] ` <<831sj8caqs.fsf@gnu.org>
2018-01-02 19:59   ` Drew Adams [this message]
2018-01-02 20:10     ` bug#29949: 26.0.90; doc of `picture-mode-exit' and `picture-mode' Eli Zaretskii
     [not found] <<<706e6966-d849-420a-be4c-a3b70d204cd7@default>
     [not found] ` <<<831sj8caqs.fsf@gnu.org>
     [not found]   ` <<d4f7e369-cf82-4fd1-96b0-77dc97a56456@default>
     [not found]     ` <<83y3lgaunl.fsf@gnu.org>
2018-01-03  0:39       ` Drew Adams
2018-01-02 17:34 Drew Adams
2018-01-02 19:38 ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d4f7e369-cf82-4fd1-96b0-77dc97a56456@default \
    --to=drew.adams@oracle.com \
    --cc=29949@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.