From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Francesco =?UTF-8?Q?Potort=C3=AC?= Newsgroups: gmane.emacs.bugs Subject: bug#44597: 26.3; bibtex should allow reverse sorting Date: Sat, 19 Dec 2020 11:37:12 +0100 Message-ID: References: <87ima7yjp7.fsf@gnus.org> <87sg99vviz.fsf@gnus.org> <87pn3lkay5.fsf@gnus.org> <60225.35392.490825.24532@gargle.gargle.HOWL> <12739.87657.242919.24541@gargle.gargle.HOWL> <35357.99757.393374.24541@gargle.gargle.HOWL> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19586"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 44597@debbugs.gnu.org, Lars Ingebrigtsen To: "Roland Winkler" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 19 11:38:10 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kqZcn-0004zP-GO for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 19 Dec 2020 11:38:09 +0100 Original-Received: from localhost ([::1]:43232 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kqZcm-00033X-IF for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 19 Dec 2020 05:38:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48232) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kqZcg-00033P-5i for bug-gnu-emacs@gnu.org; Sat, 19 Dec 2020 05:38:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57549) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kqZcf-0001SK-Un for bug-gnu-emacs@gnu.org; Sat, 19 Dec 2020 05:38:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kqZcf-0001jq-S0 for bug-gnu-emacs@gnu.org; Sat, 19 Dec 2020 05:38:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Francesco =?UTF-8?Q?Potort=C3=AC?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Dec 2020 10:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44597 X-GNU-PR-Package: emacs Original-Received: via spool by 44597-submit@debbugs.gnu.org id=B44597.16083742376623 (code B ref 44597); Sat, 19 Dec 2020 10:38:01 +0000 Original-Received: (at 44597) by debbugs.gnu.org; 19 Dec 2020 10:37:17 +0000 Original-Received: from localhost ([127.0.0.1]:40861 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kqZbw-0001il-M5 for submit@debbugs.gnu.org; Sat, 19 Dec 2020 05:37:17 -0500 Original-Received: from smtp-clients2.isti.cnr.it ([146.48.28.37]:37270) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kqZbu-0001ic-Uj for 44597@debbugs.gnu.org; Sat, 19 Dec 2020 05:37:15 -0500 Original-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 6151CB0820; Sat, 19 Dec 2020 11:37:13 +0100 (CET) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.0 at smtp-out.isti.cnr.it Original-Received: from pot by tucano.isti.cnr.it with local (Exim 4.94) (envelope-from ) id 1kqZbt-00BTMu-10; Sat, 19 Dec 2020 11:37:13 +0100 In-Reply-To: <35357.99757.393374.24541@gargle.gargle.HOWL> (winkler@gnu.org) X-fingerprint: 4B02 6187 5C03 D6B1 2E31 7666 09DF 2DC9 BE21 6115 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:196374 Archived-At: >> In my use case, I needed to sort about 100 bibtex entries in >> reversed date order, without any more criterion, and I had to >> resort to an external tool. The reason was that i had to >> participate to a career selection where people was asked to >> provide a list of their own papers listed in reverse chronological >> order. >> >> I had no need for a secondary sort key, so if I could just do that >> with bibtex.el it would have saved my day. > >I believe in the usual world of BibTeX, this is a rather unique >situation. In the end I managed to use bibtex2html, which only sorting options other than the default are --sort-by-date and --reverse-sort. I think that sorting by date should not be thought of as unique, on the opposite I'd see it as quite natural. Whether I want to create an academic CV or the list of papers I read in the past and found interesting, sorting by date would be one of the few obvious generic choices, most of the rest being a matter of personal requirements. Even when you look up bibliographic databases, sorting by date is always a possible option, usually the default one (in reverse mode). >Actually, I just thought of a pretty cheap very different solution >for your problem, which is to regenerate the keys for your entries >such that the existing standard "sort by keys" approach gives you >whatever you need. That would not have worked for me. I want to keep my key as they are, as I reference them elsewhere in many documents. I think this is the normal approach. >The autokey algorithm for generating the keys is >pretty powerful and easy to customize beyond the default. That's good if you often add lots of new documents. My case is that of long-term, slowly-growing bibliographies which occasionally may be need to be sorted differently and whose keys need to be persistent. I think this is the usual case for a personal bibliography. >> Again, that depends on the use case. I am sure my patch can be useful >> even without a secondary sorting key and without a day being >> specified. > >I believe we try here to predict and comment on rare scenarios which >is rather difficult. I don't know why you think that sorting by date would be so unusual. Unless you have a personal reason to generate and sort keys in some specific way, date is the most obvious sorting key you can think of. > https://www.emacswiki.org/emacs/BibTeX > >because I thought people might like to use it to collect code >snippets beyond the default. It was last updated in 2014. >So it seems to me this is not an urgent matter. Sure. Also I think that bibtex is not much used, in fact.