GNU bug report logs -
#6459
24.0.50; completions-format should not have a `nil' choice
Previous Next
Reported by: "Drew Adams" <drew.adams <at> oracle.com>
Date: Fri, 18 Jun 2010 20:20:02 UTC
Severity: minor
Found in version 24.0.50
Done: Juri Linkov <juri <at> jurta.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 6459 in the body.
You can then email your comments to 6459 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#6459
; Package
emacs
.
(Fri, 18 Jun 2010 20:20:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Drew Adams" <drew.adams <at> oracle.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Fri, 18 Jun 2010 20:20:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
This is the definition:
(defcustom completions-format nil
"Define the appearance and sorting of completions.
If the value is `vertical', display completions sorted vertically
in columns in the *Completions* buffer.
If the value is `horizontal' or nil, display completions sorted
horizontally in alphabetical order, rather than down the screen."
:type '(choice (const nil) (const horizontal) (const vertical))
:group 'minibuffer
:version "23.2")
There is no reason for the `nil' choice. Please remove it and make the
default value `horizontal'. Occam's razor (KISS) and clarity for users
argue for this.
In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600)
of 2010-06-14 on 3249CTO
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.4) --no-opt --cflags -Ic:/xpm/include'
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#6459
; Package
emacs
.
(Sat, 19 Jun 2010 14:56:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 6459 <at> debbugs.gnu.org (full text, mbox):
> (defcustom completions-format nil
> "Define the appearance and sorting of completions.
> If the value is `vertical', display completions sorted vertically
> in columns in the *Completions* buffer.
> If the value is `horizontal' or nil, display completions sorted
> horizontally in alphabetical order, rather than down the screen."
> :type '(choice (const nil) (const horizontal) (const vertical))
> :group 'minibuffer
> :version "23.2")
>
> There is no reason for the `nil' choice. Please remove it and make the
> default value `horizontal'. Occam's razor (KISS) and clarity for users
> argue for this.
We could remove nil from the docstring and from :type, and change
the default value to `horizontal', but I'd still treat nil as
`horizontal' internally for compatibility.
--
Juri Linkov
http://www.jurta.org/emacs/
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#6459
; Package
emacs
.
(Sat, 19 Jun 2010 15:05:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 6459 <at> debbugs.gnu.org (full text, mbox):
On Sat, Jun 19, 2010 at 4:37 PM, Juri Linkov <juri <at> jurta.org> wrote:
>> (defcustom completions-format nil
>> "Define the appearance and sorting of completions.
>> If the value is `vertical', display completions sorted vertically
>> in columns in the *Completions* buffer.
>> If the value is `horizontal' or nil, display completions sorted
>> horizontally in alphabetical order, rather than down the screen."
>> :type '(choice (const nil) (const horizontal) (const vertical))
>> :group 'minibuffer
>> :version "23.2")
>>
>> There is no reason for the `nil' choice. Please remove it and make the
>> default value `horizontal'. Occam's razor (KISS) and clarity for users
>> argue for this.
>
> We could remove nil from the docstring and from :type, and change
> the default value to `horizontal', but I'd still treat nil as
> `horizontal' internally for compatibility.
Since this is a new defcustom woulddn't it be better to not let nil be
a valid value? That may catch some problems and the backward
compatibilities are not likely to be big.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#6459
; Package
emacs
.
(Sun, 20 Jun 2010 14:51:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 6459 <at> debbugs.gnu.org (full text, mbox):
> >> (defcustom completions-format nil
> >> "Define the appearance and sorting of completions.
> >> If the value is `vertical', display completions sorted vertically
> >> in columns in the *Completions* buffer.
> >> If the value is `horizontal' or nil, display completions sorted
> >> horizontally in alphabetical order, rather than down the screen."
> >> :type '(choice (const nil) (const horizontal) (const vertical))
> >> :group 'minibuffer
> >> :version "23.2")
> >>
> >> There is no reason for the `nil' choice. Please remove it
> >> and make the default value `horizontal'. Occam's razor
> >> (KISS) and clarity for users argue for this.
> >
> > We could remove nil from the docstring and from :type, and change
> > the default value to `horizontal', but I'd still treat nil as
> > `horizontal' internally for compatibility.
I don't have a big problem with that. But what "compatibility" is gained?
Compatibility of what with what? This is a new variable.
> Since this is a new defcustom woulddn't it be better to not let nil be
> a valid value? That may catch some problems and the backward
> compatibilities are not likely to be big.
I agree with Lennart here. KISS. I see no reason for nil. I am unaware of any
backward compatibility issue for this variable.
Reply sent
to
Juri Linkov <juri <at> jurta.org>
:
You have taken responsibility.
(Thu, 24 Jun 2010 22:02:03 GMT)
Full text and
rfc822 format available.
Notification sent
to
"Drew Adams" <drew.adams <at> oracle.com>
:
bug acknowledged by developer.
(Thu, 24 Jun 2010 22:02:03 GMT)
Full text and
rfc822 format available.
Message #19 received at 6459-done <at> debbugs.gnu.org (full text, mbox):
>> >> There is no reason for the `nil' choice. Please remove it
>> >> and make the default value `horizontal'. Occam's razor
>> >> (KISS) and clarity for users argue for this.
>> >
>> > We could remove nil from the docstring and from :type, and change
>> > the default value to `horizontal', but I'd still treat nil as
>> > `horizontal' internally for compatibility.
This is changed now.
> I don't have a big problem with that. But what "compatibility" is gained?
> Compatibility of what with what? This is a new variable.
>
>> Since this is a new defcustom woulddn't it be better to not let nil be
>> a valid value? That may catch some problems and the backward
>> compatibilities are not likely to be big.
>
> I agree with Lennart here. KISS. I see no reason for nil. I am unaware of any
> backward compatibility issue for this variable.
I don't want to completely break the *Completions* buffer with
an unadvertized value. So currently I left `horizontal' as a
catch-all case in the implementation.
--
Juri Linkov
http://www.jurta.org/emacs/
Message #20 received at 6459-done <at> debbugs.gnu.org (full text, mbox):
> This is changed now.
Thank you.
> > what "compatibility" is gained?
> > Compatibility of what with what? This is a new variable.
> >
> >> Since this is a new defcustom woulddn't it be better to
> >> not let nil be a valid value? That may catch some
> >> problems and the backward compatibilities are not
> >> likely to be big.
> >
> > I agree with Lennart here. KISS. I see no reason for nil. I
> > am unaware of any backward compatibility issue for this variable.
>
> I don't want to completely break the *Completions* buffer with
> an unadvertized value. So currently I left `horizontal' as a
> catch-all case in the implementation.
I don't understand what you are saying. What breakage of the *Completions*
buffer are you talking about?
And no one requested getting rid of `horizontal'. What was requested was to
keep only `horizontal' and get rid of nil.
Sorry, what you're saying is not clear to me. Please elaborate/clarify.
Message #21 received at 6459-done <at> debbugs.gnu.org (full text, mbox):
> What was requested was to keep only `horizontal' and get rid of nil.
This is exactly what I did ;-)
--
Juri Linkov
http://www.jurta.org/emacs/
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#6459
; Package
emacs
.
(Fri, 25 Jun 2010 21:12:01 GMT)
Full text and
rfc822 format available.
Message #24 received at 6459 <at> debbugs.gnu.org (full text, mbox):
> > What was requested was to keep only `horizontal' and get rid of nil.
>
> This is exactly what I did ;-)
Great; thanks. Sorry for misunderstanding you.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 24 Jul 2010 11:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 15 years and 29 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.