bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#40697: 25.3; sort-lines not accepting reverse parameter


From: Roland Hughes
Subject: bug#40697: 25.3; sort-lines not accepting reverse parameter
Date: Sat, 18 Apr 2020 13:45:17 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0

Okay, I was not descriptive enough.

In interactive mode you cannot enter the argument but according to the documentation I should be able to. To enter an argument I would have to be able to use the space bar after entering sort-lines. When I try using the spacebar I get [SoleCompletion] and no space. Cannot enter argument.

On 4/18/20 11:15 AM, Štěpán Němec wrote:
On Sat, 18 Apr 2020 06:34:58 -0500
Roland Hughes wrote:

--text follows this line--

I created a named buffer and pasted a few hundred lines of numbers in
it. When I
tried to enter the command "sort-lines reverse" as soon as I hit the
spacebar I
was greeted with [SoleCompletion] and could not enter the parameter.
The documentation string of `sort-line' reads:

---8<---
Sort lines in region alphabetically; argument means descending order.
Called from a program, there are three arguments:
REVERSE (non-nil means reverse order), BEG and END (region to sort).
The variable ‘sort-fold-case’ determines whether alphabetic case affects
the sort order.
--->8---

Note the "called from a program" before description of the arguments.

"argument" in the first sentence means the prefix argument during
interactive calls, as described in (info "(emacs) Arguments")

Maybe we should improve the wording? Would just saying "When called
interactively, prefix argument means sort in descending order" be
enough?

--
Roland Hughes, President
Logikal Solutions
(630)-205-1593

http://www.theminimumyouneedtoknow.com
http://www.infiniteexposure.net
http://www.johnsmith-book.com
http://www.logikalblog.com
http://www.interestingauthors.com/blog






reply via email to

[Prev in Thread] Current Thread [Next in Thread]