all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Basil L. Contovounesios" <contovob@tcd.ie>
To: <30048@debbugs.gnu.org>
Subject: bug#30048: 27.0.50; bibtex-reference-keys is in reverse order
Date: Tue, 09 Jan 2018 18:03:36 +0000	[thread overview]
Message-ID: <87mv1mhptz.fsf@gmail.com> (raw)
In-Reply-To: <87zi5n2al6.fsf@gmail.com> (Basil L. Contovounesios's message of "Tue, 09 Jan 2018 17:41:57 +0000")

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: 0001-Keep-BibTeX-keys-in-natural-order-bug-30048.patch --]
[-- Type: text/x-diff, Size: 1012 bytes --]

From 109ff5794e29c96b77647837ec3add558143d745 Mon Sep 17 00:00:00 2001
From: "Basil L. Contovounesios" <contovob@tcd.ie>
Date: Tue, 9 Jan 2018 17:20:55 +0000
Subject: [PATCH] Keep BibTeX keys in natural order (bug#30048)

* lisp/textmodes/bibtex.el (bibtex-parse-keys):
Reverse bibtex-reference-keys.
---
 lisp/textmodes/bibtex.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/textmodes/bibtex.el b/lisp/textmodes/bibtex.el
index a30e146892..f6cc98241c 100644
--- a/lisp/textmodes/bibtex.el
+++ b/lisp/textmodes/bibtex.el
@@ -2932,7 +2932,7 @@ bibtex-parse-keys
               (if verbose
                   (bibtex-progress-message 'done))
               ;; successful operation --> return `bibtex-reference-keys'
-              (setq bibtex-reference-keys ref-keys)))))))
+              (setq bibtex-reference-keys (nreverse ref-keys))))))))
 
 (defun bibtex-parse-strings (&optional add abortable)
   "Set `bibtex-strings' to the string definitions in the whole buffer.
-- 
2.15.1


[-- Attachment #2: Type: text/plain, Size: 62 bytes --]


Kindly find attached the promised patch.

Thanks,

-- 
Basil

  reply	other threads:[~2018-01-09 18:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-09 17:41 bug#30048: 27.0.50; bibtex-reference-keys is in reverse order Basil L. Contovounesios
2018-01-09 18:03 ` Basil L. Contovounesios [this message]
2018-01-20 12:13   ` 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=87mv1mhptz.fsf@gmail.com \
    --to=contovob@tcd.ie \
    --cc=30048@debbugs.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.