From: Drew Adams <drew.adams@oracle.com>
To: Eli Zaretskii <eliz@gnu.org>, Drew Adams <drew.adams@oracle.com>
Cc: 20419-done@debbugs.gnu.org
Subject: bug#20419: 25.0.50; doc string of `recenter-last-op`
Date: Sat, 25 Apr 2015 09:12:07 -0700 (PDT) [thread overview]
Message-ID: <45b241f3-fe0d-4147-8726-0c06361f2199@default> (raw)
In-Reply-To: <<83iockxnog.fsf@gnu.org>>
> > > > The doc string says that these are the possible values:
> > > > "`top', `middle', `bottom', integer or float numbers."
> > > > It should also mention `nil', say what `nil' means, and
> > > > perhaps even say that `nil' is the default value.
> > >
> > > How do you see that nil has any meaning whatsoever?
> >
> > `nil' means that the next `recenter-top-bottom' starts with
> > the first element of `recenter-positions'.
>
> Yuck! Why not set it to the first member of recenter-positions to
> begin with?
>
> FWIW, I consider this, including the exposure of this variable as
> some kind of knob for other Lisp packages, bad style. You should be
> demanding cleaning this up instead of documenting it.
>
> Fixed under protest.
Point taken. A better design (for its use in `perform-replace')
might bind `recenter-last-op' to the car of `recenter-positions'.
(The code also resets it later in `perform-replace'. That setq
would also need to be changed, the same way.)
Or get rid of `recenter-last-op' and just have code bind and
set option `recenter-positions'... But Emacs dev generally
doesn't like to do that, even locally.
As long as we have something like `recenter-last-op', it is
like `kill-ring-yank-pointer': it will be used by other code
and needs to be documented.
Please consider filing that bug report/enhancement request (or
consider fixing it in the context of this one), if you like.
But the behavior of nil remains unchanged. It still needs to
be mentioned in the doc string, as long as it has the effect
it has. Thanks for having fixed that.
next parent reply other threads:[~2015-04-25 16:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <<162fcb99-b1ac-4afa-8c95-e8d171f07153@default>
[not found] ` <<83iockxnog.fsf@gnu.org>
2015-04-25 16:12 ` Drew Adams [this message]
2015-04-25 16:14 ` bug#20419: 25.0.50; doc string of `recenter-last-op` Eli Zaretskii
[not found] <<45b241f3-fe0d-4147-8726-0c06361f2199@default>
[not found] ` <<83fv7oxk0q.fsf@gnu.org>
2015-04-25 16:33 ` Drew Adams
[not found] <<3c528679-060f-45ce-994c-fdbaada6de9d@default>
[not found] ` <<83tww4y81l.fsf@gnu.org>
2015-04-25 14:29 ` Drew Adams
2015-04-25 14:55 ` Eli Zaretskii
2015-04-24 17:16 Drew Adams
2015-04-25 7:35 ` 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=45b241f3-fe0d-4147-8726-0c06361f2199@default \
--to=drew.adams@oracle.com \
--cc=20419-done@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.