comparison lisp/textmodes/reftex-sel.el @ 59534:9bad65481674

2005-01-14 Carsten Dominik <dominik@science.uva.nl> * reftex-cite.el (reftex-bib-sort-year): Catch the case if the year is not given. * reftex-ref.el (reftex-replace-prefix-escapes): Added new escapes %m and %M, fixed bug with %F by adding save-match-data. (reftex-reference): Removed ?. from list of spaces. (reftex-label-info): Added automatic label prefix recognition * reftex-index.el (reftex-index-next-phrase): Added slave parameter to call of `reftex-index-this-phrase' (reftex-index-this-phrase): New optional argument (reftex-index-region-phrases): Added slave parameter to call of `reftex-index-this-phrase' (reftex-display-index): New argument redo (reftex-index-rescan): Added 'redo to arguments of `reftex-display-index' (reftex-index-Rescan, reftex-index-revert) (reftex-index-switch-index-tag): Added 'redo to arguments of `reftex-display-index' (reftex-index-make-phrase-regexp): Fixed bug with case-sensitive indexing. Fixed bug with matching is there is a quote before or after the word. * reftex-cite.el (reftex-all-used-citation-keys): Fix bug when collecting citation keys in lines with comments. (reftex-citation): Prefix argument no longer rescans the document, but forces prompting for optional arguments of cite macros. (reftex-do-citation): Prompting for optional arguments implemented. * reftex-vars.el (reftex-cite-format-builtin): Added optional arguments to most cite commands. (reftex-cite-cleanup-optional-args): New option (reftex-cite-prompt-optional-args): New option. (reftex-trust-label-prefix): New option * reftex-toc.el (reftex-toc-find-section): Added push-mark before changing the position in the buffer. * reftex.el (reftex-prefix-to-typekey-alist): New variable (reftex-compile-variables): Compute reftex-prefix-to-typekey-alist
author Carsten Dominik <dominik@science.uva.nl>
date Fri, 14 Jan 2005 10:12:03 +0000
parents 695cf19ef79e
children 35f6599373fc cb67264d6096
comparison
equal deleted inserted replaced
59533:2a346f1b2a9f 59534:9bad65481674
1 ;;; reftex-sel.el --- the selection modes for RefTeX 1 ;;; reftex-sel.el --- the selection modes for RefTeX
2 ;; Copyright (c) 1997, 1998, 1999, 2000, 2003 Free Software Foundation, Inc. 2 ;; Copyright (c) 1997, 1998, 1999, 2000, 2003, 2004 Free Software Foundation, Inc.
3 3
4 ;; Author: Carsten Dominik <dominik@science.uva.nl> 4 ;; Author: Carsten Dominik <dominik@science.uva.nl>
5 ;; Version: 4.21 5 ;; Version: 4.26
6 6
7 ;; This file is part of GNU Emacs. 7 ;; This file is part of GNU Emacs.
8 8
9 ;; GNU Emacs is free software; you can redistribute it and/or modify 9 ;; GNU Emacs is free software; you can redistribute it and/or modify
10 ;; it under the terms of the GNU General Public License as published by 10 ;; it under the terms of the GNU General Public License as published by
605 (point-min)) 605 (point-min))
606 eoe (or (next-single-property-change (point) :data) (point-max))) 606 eoe (or (next-single-property-change (point) :data) (point-max)))
607 (setq ovl (make-overlay boe eoe)) 607 (setq ovl (make-overlay boe eoe))
608 (push (list data ovl separator) reftex-select-marked) 608 (push (list data ovl separator) reftex-select-marked)
609 (overlay-put ovl 'face reftex-select-mark-face) 609 (overlay-put ovl 'face reftex-select-mark-face)
610 (if (featurep 'xemacs) 610 (overlay-put ovl 'before-string
611 ;; before-string property is broken in Emacs 611 (if separator
612 (overlay-put ovl 'before-string 612 (format "*%c%d* " separator
613 (if separator 613 (length reftex-select-marked))
614 (format "*%c%d* " separator 614 (format "*%d* " (length reftex-select-marked))))
615 (length reftex-select-marked))
616 (format "*%d* " (length reftex-select-marked)))))
617 (message "Entry has mark no. %d" (length reftex-select-marked)))) 615 (message "Entry has mark no. %d" (length reftex-select-marked))))
618 616
619 (defun reftex-select-mark-comma () 617 (defun reftex-select-mark-comma ()
620 "Mark the entry and store the `comma' separator." 618 "Mark the entry and store the `comma' separator."
621 (interactive) 619 (interactive)
723 ("\C-c\C-p" . reftex-select-previous-heading)) 721 ("\C-c\C-p" . reftex-select-previous-heading))
724 do 722 do
725 (define-key reftex-select-label-map (car x) (cdr x))) 723 (define-key reftex-select-label-map (car x) (cdr x)))
726 724
727 ;; Specific bindings in reftex-select-bib-map 725 ;; Specific bindings in reftex-select-bib-map
728 (loop for key across "grRaA" do 726 (loop for key across "grRaAeE" do
729 (define-key reftex-select-bib-map (vector (list key)) 727 (define-key reftex-select-bib-map (vector (list key))
730 (list 'lambda '() 728 (list 'lambda '()
731 "Press `?' during selection to find out about this key." 729 "Press `?' during selection to find out about this key."
732 '(interactive) (list 'throw '(quote myexit) key)))) 730 '(interactive) (list 'throw '(quote myexit) key))))
733 731