]> git.eshelyaron.com Git - emacs.git/commitdiff
Tweak how bibtex-mark-entry places point
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 7 Mar 2022 02:51:55 +0000 (03:51 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 7 Mar 2022 02:51:55 +0000 (03:51 +0100)
* lisp/textmodes/bibtex.el (bibtex-mark-entry): Make `C-M-h'
behave like in other modes (with point at the beginning of the
region) (bug#4717).

lisp/textmodes/bibtex.el

index ab471db3ddcc78decfb0b21cbbc84e367b18612c..ab6a907c52d132223561a4d18ca3c425ea910cb2 100644 (file)
@@ -4119,11 +4119,11 @@ Optional arg POS is the position of the BibTeX entry to use."
         (goto-char pnt)))))
 
 (defun bibtex-mark-entry ()
-  "Put mark at beginning, point at end of current BibTeX entry.
+  "Put mark at end, point at beginning of current BibTeX entry.
 Activate mark in Transient Mark mode."
   (interactive)
-  (push-mark (bibtex-beginning-of-entry) t t)
-  (bibtex-end-of-entry))
+  (push-mark (bibtex-end-of-entry) t t)
+  (bibtex-beginning-of-entry))
 
 (defun bibtex-count-entries (&optional count-string-entries)
   "Count number of entries in current buffer or region.