GNU bug report logs - #44597
26.3; bibtex should allow reverse sorting

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Francesco Potortì <pot@HIDDEN>; dated Thu, 12 Nov 2020 18:31:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 44597 <at> debbugs.gnu.org:


Received: (at 44597) by debbugs.gnu.org; 16 Nov 2020 21:31:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Nov 16 16:31:29 2020
Received: from localhost ([127.0.0.1]:57538 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kem5x-0004Se-Eq
	for submit <at> debbugs.gnu.org; Mon, 16 Nov 2020 16:31:29 -0500
Received: from quimby.gnus.org ([95.216.78.240]:39066)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1kem5u-0004SO-Px
 for 44597 <at> debbugs.gnu.org; Mon, 16 Nov 2020 16:31:27 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID
 :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID:
 Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
 :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe:
 List-Post:List-Owner:List-Archive;
 bh=obcTu2/5gIdzYCj6J2WFdrDhV4+wkRQhu1QS8pwy65s=; b=PuMwH5T0RSGiAvn+9XZUfM4qZQ
 jWVqu6bNilmFUUBsRAEw+DCODeMlmF3JZhnp/K9rafHckyv03sP3e3bKiA+oAW9Ws2HzbAZEJMHFq
 e5o1SFkuVvLqKZK9KsRkFlaVIEfF48CcHIwr6wImfNoL0sS8LclkNjeRqe6JHx/HRbxU=;
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1kem5m-0005ZB-25; Mon, 16 Nov 2020 22:31:20 +0100
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Francesco =?utf-8?Q?Potort=C3=AC?= <pot@HIDDEN>
Subject: Re: bug#44597: 26.3; bibtex should allow reverse sorting
References: <E1kdHMM-00C53c-B6@HIDDEN> <87ima7yjp7.fsf@HIDDEN>
 <E1kdzOQ-00G9cu-G7@HIDDEN>
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj
 SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAFVBMVEUtKSgeHR1GQjhi
 WlGSg3LXyrn///+uCZ/EAAAAAWJLR0QGYWa4fQAAAAd0SU1FB+QLEBUTN6V3ELwAAAGnSURBVDjL
 pZRBk9sgDIUF3t5xm94JpHcb4Xti4N6J0f//Kysg8ZLJ+tCpDplxvkjvGb0A8M+lQBtppJbvxBht
 uN57NMj6+Sh0iFifuim6+4V6myAbfANYZh34PKjBme87DEgD/1P6CKxPM+P4YkvEI5d+nyVeJZbr
 gXaavj+AXzS/SO6KF7pi18POKhrBxtVn9TwK8RilvI6T9ATSti45jRV4umf4GWkSenAFfFwrGBLR
 XUFIN6mhTBNWFA3hiegvMJif2x/H2hErkFuad/HqStYOY7c/s5W6B5bBHUOcwPKT3gHYIu5j3JQt
 VnV9sQIkA/IxZYXFfJfiIkKU6FwBR1NDGWVaC9fUYmP31cj2fT6zOFx0t/+lEUKn0fbBGGgrnmlt
 +R+e2xC4bHKhFLCpDPu+lkQWU1ijs6aY2Uf94PE3H1yMAdHPX+A3UQhpM56ui/PTFzixV5a2EcAp
 25b1yEip7RLLg1Pdv6CBlEsOjFJ7rkQ9k0yZ1RnUA26AXz1jLJVubPe8J/FUVsVOA/q76SOqiMqF
 gGjC9nKriI+VrxquE2bu4FGfuFNXAOaabmkAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjAtMTEtMTZU
 MjE6MTk6NTUrMDA6MDBxlbeqAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIwLTExLTE2VDIxOjE5OjU1
 KzAwOjAwAMgPFgAAAABJRU5ErkJggg==
X-Now-Playing: Various's _Amchitka (1)_: "Phil Ochs - No More Songs"
Date: Mon, 16 Nov 2020 22:31:16 +0100
In-Reply-To: <E1kdzOQ-00G9cu-G7@HIDDEN> ("Francesco
 =?utf-8?Q?Potort=C3=AC=22's?=
 message of "Sat, 14 Nov 2020 18:31:18 +0100")
Message-ID: <87sg99vviz.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 
 Content preview:  Francesco Potortì <pot@HIDDEN> writes: > Ideally, bibtex.el
    should provide a hook where one can install any > function for sorting. The
    hook should get some arguments (the type of > entry, the name of entry, the
    date, a bibtex custom field [...] 
 
 Content analysis details:   (-2.9 points, 5.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
                             [score: 0.0000]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 44597
Cc: 44597 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Francesco Potort=C3=AC <pot@HIDDEN> writes:

> Ideally, bibtex.el should provide a hook where one can install any
> function for sorting.  The hook should get some arguments (the type of
> entry, the name of entry, the date, a bibtex custom field and maybe
> others).  That would make bibtex.el more generally flexible.

Yes, I think introducing a variable to control the sorting would be a
good idea.  It'd default to `bibtex-lessp' (or rather, something that
does the same), but (as you say) have an input that makes implementing
other sorting functions easier.

Patches welcome.  :-)

--=20
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#44597; Package emacs. Full text available.

Message received at 44597 <at> debbugs.gnu.org:


Received: (at 44597) by debbugs.gnu.org; 14 Nov 2020 17:31:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Nov 14 12:31:22 2020
Received: from localhost ([127.0.0.1]:51922 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kdzOU-0004rI-3r
	for submit <at> debbugs.gnu.org; Sat, 14 Nov 2020 12:31:22 -0500
Received: from smtp-clients1.isti.cnr.it ([146.48.28.36]:34046)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <pot@HIDDEN>) id 1kdzOS-0004rA-IR
 for 44597 <at> debbugs.gnu.org; Sat, 14 Nov 2020 12:31:21 -0500
Received: from tucano.isti.cnr.it (tucano.isti.cnr.it [146.48.81.102])
 (Authenticated sender: pot)
 by smtp-clients1.isti.cnr.it (Postfix) with ESMTPSA id C9909B0833;
 Sat, 14 Nov 2020 18:31:18 +0100 (CET)
X-Virus-Status: Clean
X-Virus-Scanned: clamav-milter 0.102.4 at smtp-out.isti.cnr.it
Received: from pot by tucano.isti.cnr.it with local (Exim 4.94)
 (envelope-from <pot@HIDDEN>)
 id 1kdzOQ-00G9cu-G7; Sat, 14 Nov 2020 18:31:18 +0100
From: =?utf-8?Q?Francesco_Potort=C3=AC?= <pot@HIDDEN>
Date: Sat, 14 Nov 2020 18:31:18 +0100
To: Lars Ingebrigtsen <larsi@HIDDEN>
In-reply-to: <87ima7yjp7.fsf@HIDDEN> (larsi@HIDDEN)
Subject: Re: bug#44597: 26.3; bibtex should allow reverse sorting
References: <E1kdHMM-00C53c-B6@HIDDEN> <87ima7yjp7.fsf@HIDDEN>
Organization: 
X-fingerprint: 4B02 6187 5C03 D6B1 2E31  7666 09DF 2DC9 BE21 6115
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Message-Id: <E1kdzOQ-00G9cu-G7@HIDDEN>
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 44597
Cc: 44597 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

>> I wish bibtex mode would allow for reverse sorting of entries.
>>
>> Some years ago I used to obtain that behaviour by advising the sort-subr
>> functions when called inside a bibtex-mode buffer.  No more.
>>
>> The modern bibtex.el sorts an entry when bibtex-clean-entry is called
>> when bibtex-maintain-sorted-entries is t without calling sort-subr, but
>> relying only on bibtex-lessp, which is not easy to advice.
>
>I haven't looked at the code closely, but wouldn't advising bibtex-lessp
>to just swap the parameters work?

Yes.  In fact, after writing my bug report I looked at the code again
and I did just that :)

However, I think that reversing the sorting order is just the most
common of various criteria that one would like to use for sorting.
Recently I had a reason for getting one hundred bibtex entries sorted by
date in reverse order, a task that would take a long time by hand,
especially in front of frequent modifications of the list of entries to
be sorted.

Fortunately I was able to use bibtex2html to do the job, but the most
natural thing would have been to use bibtex.el with a proper sorting
function.  Ideally, bibtex.el should provide a hook where one can
install any function for sorting.  The hook should get some arguments
(the type of entry, the name of entry, the date, a bibtex custom field
and maybe others).  That would make bibtex.el more generally flexible.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#44597; Package emacs. Full text available.

Message received at 44597 <at> debbugs.gnu.org:


Received: (at 44597) by debbugs.gnu.org; 14 Nov 2020 16:41:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Nov 14 11:41:51 2020
Received: from localhost ([127.0.0.1]:51776 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kdycY-0001Q0-Sz
	for submit <at> debbugs.gnu.org; Sat, 14 Nov 2020 11:41:51 -0500
Received: from quimby.gnus.org ([95.216.78.240]:44918)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1kdycX-0001Pq-QJ
 for 44597 <at> debbugs.gnu.org; Sat, 14 Nov 2020 11:41:50 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID
 :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID:
 Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
 :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe:
 List-Post:List-Owner:List-Archive;
 bh=dyhWrYGNOdMjNFT25T2kcXOcGdTPIMihZymmCSTDQVs=; b=FtJULkVDehgEPomuEMtYZ4cubr
 iZgfc87PUF8+5ok2d7WM9FwDvapX1TrhnKvvvEB8oWapYNQI8apwAFgUeplaLKnUlyGkVMAa10P/M
 LFkuOpY5zuIqOphezZvdNwDUju2g8SKZhWzYeKSMynPH/WBrag66wQxbPJjIj40SPZzY=;
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1kdycP-0000pk-AX; Sat, 14 Nov 2020 17:41:43 +0100
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Francesco =?utf-8?Q?Potort=C3=AC?= <pot@HIDDEN>
Subject: Re: bug#44597: 26.3; bibtex should allow reverse sorting
References: <E1kdHMM-00C53c-B6@HIDDEN>
X-Now-Playing: Moor Mother's _Circuit City_: "Act 1 - Working Machine"
Date: Sat, 14 Nov 2020 17:41:40 +0100
In-Reply-To: <E1kdHMM-00C53c-B6@HIDDEN> ("Francesco
 =?utf-8?Q?Potort=C3=AC=22's?=
 message of "Thu, 12 Nov 2020 19:30:14 +0100")
Message-ID: <87ima7yjp7.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 
 Content preview:  Francesco Potortì <pot@HIDDEN> writes: > I wish bibtex mode
    would allow for reverse sorting of entries. > > Some years ago I used to
   obtain that behaviour by advising the sort-subr > functions when called inside
    a bibtex-mode buffer. No mo [...] 
 
 Content analysis details:   (-2.9 points, 5.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
                             [score: 0.0000]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 44597
Cc: 44597 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Francesco Potort=C3=AC <pot@HIDDEN> writes:

> I wish bibtex mode would allow for reverse sorting of entries.
>
> Some years ago I used to obtain that behaviour by advising the sort-subr
> functions when called inside a bibtex-mode buffer.  No more.
>
> The modern bibtex.el sorts an entry when bibtex-clean-entry is called
> when bibtex-maintain-sorted-entries is t without calling sort-subr, but
> relying only on bibtex-lessp, which is not easy to advice.

I haven't looked at the code closely, but wouldn't advising bibtex-lessp
to just swap the parameters work?

--=20
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#44597; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 12 Nov 2020 18:30:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 12 13:30:21 2020
Received: from localhost ([127.0.0.1]:45556 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kdHMT-00029E-8Q
	for submit <at> debbugs.gnu.org; Thu, 12 Nov 2020 13:30:21 -0500
Received: from lists.gnu.org ([209.51.188.17]:39754)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <pot@HIDDEN>) id 1kdHMQ-000296-Tg
 for submit <at> debbugs.gnu.org; Thu, 12 Nov 2020 13:30:19 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:45942)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <pot@HIDDEN>) id 1kdHMQ-0002ZM-NA
 for bug-gnu-emacs@HIDDEN; Thu, 12 Nov 2020 13:30:18 -0500
Received: from smtp-clients2.isti.cnr.it ([146.48.28.37]:38200)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <pot@HIDDEN>) id 1kdHMP-0003V6-2B
 for bug-gnu-emacs@HIDDEN; Thu, 12 Nov 2020 13:30:18 -0500
Received: from tucano.isti.cnr.it (tucano.isti.cnr.it [146.48.81.102])
 (Authenticated sender: pot)
 by smtp-clients2.isti.cnr.it (Postfix) with ESMTPSA id AF718AE6E4
 for <bug-gnu-emacs@HIDDEN>; Thu, 12 Nov 2020 19:30:14 +0100 (CET)
X-Virus-Status: Clean
X-Virus-Scanned: clamav-milter 0.102.4 at smtp-out.isti.cnr.it
Received: from pot by tucano.isti.cnr.it with local (Exim 4.94)
 (envelope-from <pot@HIDDEN>) id 1kdHMM-00C53c-B6
 for bug-gnu-emacs@HIDDEN; Thu, 12 Nov 2020 19:30:14 +0100
From: =?utf-8?Q?Francesco_Potort=C3=AC?= <pot@HIDDEN>
Date: Thu, 12 Nov 2020 19:30:14 +0100
To: bug-gnu-emacs@HIDDEN
Subject: 26.3; bibtex should allow reverse sorting
Organization: 
X-fingerprint: 4B02 6187 5C03 D6B1 2E31  7666 09DF 2DC9 BE21 6115
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Message-Id: <E1kdHMM-00C53c-B6@HIDDEN>
Received-SPF: softfail client-ip=146.48.28.37; envelope-from=pot@HIDDEN;
 helo=smtp-clients2.isti.cnr.it
X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/12 13:30:15
X-ACL-Warn: Detected OS   = Linux 3.11 and newer [fuzzy]
X-Spam_score_int: -11
X-Spam_score: -1.2
X-Spam_bar: -
X-Spam_report: (-1.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_MSPIKE_H4=0.001,
 RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001,
 SPF_SOFTFAIL=0.665 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

I wish bibtex mode would allow for reverse sorting of entries.

Some years ago I used to obtain that behaviour by advising the sort-subr
functions when called inside a bibtex-mode buffer.  No more.

The modern bibtex.el sorts an entry when bibtex-clean-entry is called
when bibtex-maintain-sorted-entries is t without calling sort-subr, but
relying only on bibtex-lessp, which is not easy to advice.

I have numbered labels, and I want them to stay in reverse order as they
are, but now I can get that behaviour only by setting
bibtex-maintain-sorted-entries to nil

Please add some way to reverse the order of entries

--
fp




Acknowledgement sent to Francesco Potortì <pot@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#44597; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 16 Nov 2020 21:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.