]> git.eshelyaron.com Git - emacs.git/commitdiff
Updated to reftex 4.17
authorCarsten Dominik <dominik@science.uva.nl>
Mon, 22 Jul 2002 10:38:32 +0000 (10:38 +0000)
committerCarsten Dominik <dominik@science.uva.nl>
Mon, 22 Jul 2002 10:38:32 +0000 (10:38 +0000)
12 files changed:
lisp/ChangeLog
lisp/textmodes/reftex-auc.el
lisp/textmodes/reftex-cite.el
lisp/textmodes/reftex-dcr.el
lisp/textmodes/reftex-global.el
lisp/textmodes/reftex-index.el
lisp/textmodes/reftex-parse.el
lisp/textmodes/reftex-ref.el
lisp/textmodes/reftex-sel.el
lisp/textmodes/reftex-toc.el
lisp/textmodes/reftex-vars.el
lisp/textmodes/reftex.el

index b67c3d795fe4ed7d5d4de8026bd15b3afa13f857..c5fce8ea262deb6ddec77c9f56ca6b0bc7eb76a8 100644 (file)
@@ -1,3 +1,51 @@
+2002-07-22  Carsten Dominik  <dominik@astro.uva.nl>
+
+       * textmodes/reftex-vars.el (reftex-index-verify-function): New
+       option.
+       (reftex-bibliography-commands): New option.
+       (reftex-toc-split-windows-horizontally): New option
+       (reftex-toc-split-windows-horizontally-fraction): New option
+       (reftex-include-file-commands): New option.
+       (reftex-cite-format-builtin): Added ?n for nocite.
+
+       * textmodes/reftex-index.el (reftex-query-index-phrase): Use
+       `reftex-index-verify-function'. 
+
+       * textmodes/reftex-toc.el (reftex-re-enlarge): Handle horizontal
+       splitting.
+       (reftex-toc): Handle horizontal splitting
+       (reftex-last-window-width): New variable.
+
+       * textmodes/reftex-parse.el (reftex-locate-bibliography-files):
+       Use `reftex-bibliography-commands'.
+       (reftex-locate-bibliography-files): Regexp relaxed to allow for
+       cases where \bibliography is not the first thing on the line.
+
+       * textmodes/reftex.el (reftex-compile-variables): Use
+       `reftex-include-file-commands'.
+       (reftex-type-query-prompt): Changed defconst to defvar.
+       (reftex-type-query-help): likewise
+       (reftex-typekey-to-format-alist): likewise
+       (reftex-typekey-to-prefix-alist): likewise
+       (reftex-env-or-mac-alist):
+       (reftex-special-env-parsers): likewise
+       (reftex-label-mac-list): likewise
+       (reftex-label-env-list): likewise
+       (reftex-typekey-list): likewise
+       (reftex-words-to-typekey-alist): likewise
+       (reftex-key-to-index-macro-alist): likewise
+       (reftex-query-index-macro-prompt): likewise
+       (reftex-query-index-macro-help): likewise
+       (reftex-no-follow-message): likewise
+       (reftex-no-info-message): likewise
+       (reftex-mode): Define systax table for bibtex parsing.
+       (reftex-syntax-table-for-bib): Syntax table for bibtex parsing.
+       
+       * textmodes/reftex-cite.el (reftex-format-names): %a as name
+       format lists all names.
+       (reftex-parse-bibtex-entry): Use `reftex-syntax-table-for-bib'.
+       (reftex-with-special-syntax-for-bib): new macro.
+
 2002-07-21  Kai Gro\e,b_\e(Bjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
 
        * net/tramp.el: Bump version to 2.0.2.
        * calendar/timeclock.el (timeclock-in): Handle the case where no
        log file exists (ie the very first call).
 
-2002-07-13  Kai Gro\e,A_\e(Bjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
+2002-07-13  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
 
        * net/ange-ftp.el: Do not hook into file-name-handler-alist, this
        is done by Tramp.
        (Macedoninan), "ru" (Russian), and "sp" (Serbian with Cyrillic
        alphabet) to "Cyrillic-ISO".
 
-2002-07-11  Kai Gro\e,A_\e(Bjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
+2002-07-11  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
 
        * net/tramp.el (tramp-default-method): New default method "sm"
        which I guess to be good for most people.
        (uniquify-delayed-rationalize-file-buffer-names):
        Rename from delayed-uniquify-rationalize-file-buffer-names.
 
-2002-06-27  Kai Gro\e,A_\e(Bjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
+2002-06-27  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
 
        * net/tramp.el (tramp-file-name-structure)
        (tramp-multi-file-name-hop-structure): Split for easier readability.
 
        * dired.el (dired-find-alternate-file): Mark as disabled.
 
-2002-06-25  Kai Gro\e,A_\e(Bjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
+2002-06-25  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
 
        * net/tramp.el (tramp-ftp-method): New user option.
        (tramp-invoke-ange-ftp): New function to forward calls to Ange-FTP.
        * progmodes/f90.el (f90-do-auto-fill): Respect the value of
        comment-auto-fill-only-comments.
 
-2002-06-21  Kai Gro\e,A_\e(Bjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
+2002-06-21  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
 
        * net/ange-ftp.el (backup-buffer): Delete `ange-ftp' property.
        This is not a handled operation.
        * select.el (xselect-convert-to-string): If VALUE is a string,
        return a cons of TYPE and the string.
 
-2002-06-05  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2002-06-05  Pavel Janík  <Pavel@Janik.cz>
 
        * language/cyrillic.el (cyrillic-alternativnyj-decode-table):
        Fix the table to contain correct characters.
        (mail-default-directory): New user option.
        (mail, mail-recover):  Use that option.
 
-2002-05-20  Kai Gro\e,A_\e(Bjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
+2002-05-20  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
 
        * international/mule.el (auto-coding-alist): Use emacs-mule
        for auto-save files.
        (dabbrev-upcase-means-case-search): Doc fix.
        (dabbrev-case-replace): Fix custom tags and docs.
 
-2002-05-14  Jochen K\e,A|\e(Bpper  <jochen@jochen-kuepper.de>
+2002-05-14  Jochen Küpper  <jochen@jochen-kuepper.de>
 
        * calc/calc-units.el (math-standard-units): Update from CODATA.
 
        (occur-engine): If there are no more matches, then finish
        searching the current buffer.
 
-2002-05-12  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2002-05-12  Pavel Janík  <Pavel@Janik.cz>
 
        * net/ange-ftp.el (ange-ftp-try-passive-mode)
        (ange-ftp-passive-host-alist): Change :version attributes to be
 
        * subr.el (functionp): Catch errors in indirect-function.
 
-2002-05-12  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2002-05-12  Pavel Janík  <Pavel@Janik.cz>
 
        * net/ldap.el (ldap-search-internal): Unfold folded lines before
        parsing.
 
        * wid-edit.el (checkbox): New check-mark image.
 
-2002-05-08  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2002-05-08  Pavel Janík  <Pavel@Janik.cz>
 
        * filesets.el (filesets-running-xemacs): Fix last change.
 
        (filesets-menu-path, filesets-menu-before, filesets-menu-in-menu):
        Defvar them to nil if running in Emacs.
 
-2002-05-08  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2002-05-08  Pavel Janík  <Pavel@Janik.cz>
 
        * textmodes/flyspell.el (make-flyspell-overlay): Add help text
        to flyspell overlays.
        Only interpret delete-selection property if mark-active.
        (cua-mode): Fixed require in defcustom.
 
-2002-05-01  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2002-05-01  Pavel Janík  <Pavel@Janik.cz>
 
        * calendar/cal-menu.el (cal-menu-x-popup-menu): Fix argument of
        error call.
 
        * language/viet-util.el: Update Commentary section.
 
-2002-04-29  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2002-04-29  Pavel Janík  <Pavel@Janik.cz>
 
        * filesets.el (filesets-data): Doc fix.
        (filesets-running-xemacs): Define even when compiling.
        * replace.el (occur-revert-arguments):
        Renamed from occur-revert-properties.  All uses changed.
 
-2002-04-28  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2002-04-28  Pavel Janík  <Pavel@Janik.cz>
 
        * recentf.el (recentf-menu-before): Use string to specify path in
        the menu.
        when finding the end.  Take more care in analyzing the results
        of intangibility after line-move-to-column.
 
-2002-04-22  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2002-04-22  Pavel Janík  <Pavel@Janik.cz>
 
        * international/mule-diag.el (list-input-methods-1): Doc fix
        (LEIM is now part of the standard distribution).
 
        * term.el (term-emulate-terminal): Fix last change.
 
-2002-04-16  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2002-04-16  Pavel Janík  <Pavel@Janik.cz>
 
        * bindings.el (mode-line-mode-menu): Update names to reflect
        latest changes.
        (exchange-point-and-mark): Temporarily enable transient-mark-mode
        if prefix arg.
 
-2002-04-14  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2002-04-14  Pavel Janík  <Pavel@Janik.cz>
 
        * speedbar.el (speedbar-tag-hierarchy-method)
        (speedbar-toggle-updates, speedbar-toggle-images): Doc fixes.
        * textmodes/sgml-mode.el (sgml-parse-tag-backward): Fix to work at
        beginning of buffer.
 
-2002-04-14  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2002-04-14  Pavel Janík  <Pavel@Janik.cz>
 
        * speedbar.el (speedbar-generic-item-info)
        (speedbar-sort-tags): Doc fix.
        (gamegrid-add-score): Just dispatch on `system-type' to one of the
        previous two functions.
 
-2002-04-13  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2002-04-13  Pavel Janík  <Pavel@Janik.cz>
 
        * iswitchb.el: Update commentary to include new function
        iswitchb-exclude-nonmatching.
        (fill-region-as-paragraph): Compare to `to' rather than eobp.
        (fill-paragraph): Don't rebind fill-paragraph-function.
 
-2002-04-11  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2002-04-11  Pavel Janík  <Pavel@Janik.cz>
 
        * menu-bar.el (menu-bar-adv-search-menu): Add incremental search.
 
        Use sgml-parse-tag-backward to find start point.
        (sgml-looking-back-at): Doc fix.
 
-2002-04-09  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2002-04-09  Pavel Janík  <Pavel@Janik.cz>
 
        * isearch.el (isearch-message-prefix): Use minibuffer-prompt face
        for prompt.
        * vc-cvs.el (vc-cvs-valid-version-number-p): New function.
        (vc-cvs-checkin): Use it.
 
-2002-04-08  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2002-04-08  Pavel Janík  <Pavel@Janik.cz>
 
        * files.el (display-time-string): Fix last change.
 
        default-process-coding-system.
        (coding-system-change-text-conversion): Fix case where CODING is nil.
 
-2002-04-07  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2002-04-07  Pavel Janík  <Pavel@Janik.cz>
 
        * subr.el (play-sound): Move here from simple.el.
 
 
        * textmodes/xml-lite.el: Remove.
 
-2002-04-05  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2002-04-05  Pavel Janík  <Pavel@Janik.cz>
 
        * simple.el (play-sound): New function (uses play-sound-internal).
 
        * textmodes/sgml-mode.el: Add missing require.
        (sgml-lexical-context): Fix up CDATA detection for boundary cases.
 
-2002-04-03  Kai Gro\e,A_\e(Bjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
+2002-04-03  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
 
        * pcvs.el (cvs-mode-previous-line, cvs-mode-next-line): Move to
        spot indicated by text property `cvs-goal-column', if present.
        (sgml-parse-tag-backward): Extend support for CDATA to include
        conditional sections.
 
-2002-04-03  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2002-04-03  Pavel Janík  <Pavel@Janik.cz>
 
        * cus-start.el: Rename `autoselect-window' to
        `mouse-autoselect-window'.
        (xml-lite-parse-tag-backward): Simplify parsing by assuming we
        always start within text. Make use of sgml-unclosed-tag-p.
 
-2002-04-01  Ville Skytt\e,Ad\e(B  <ville.skytta@xemacs.org>
+2002-04-01  Ville Skyttä  <ville.skytta@xemacs.org>
 
        * tcl.el (tcl-imenu-generic-expression): New value.
        (tcl-imenu-create-index-function): Function deleted.
        (inferior-tcl-mode): Doc fix.
        Change not legally significant.
 
-2002-04-01  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2002-04-01  Pavel Janík  <Pavel@Janik.cz>
 
        * cus-start.el: Rename `x-autoselect-window' to `autoselect-window'.
 
        for comments.
        (xml-lite-in-string-p): Simplify.
 
-2002-03-27  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2002-03-27  Pavel Janík  <Pavel@Janik.cz>
 
        * allout.el (outline-layout): Doc fix.
 
 
        * subr.el (substring-no-properties): Function deleted (now in C).
 
-2002-03-25  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2002-03-25  Pavel Janík  <Pavel@Janik.cz>
 
        * mwheel.el (mouse-wheel-mode): Use global-set-key and
        global-unset-key.
        fore- and background colors of the faces we create, since facemenu
        doesn't.
 
-2002-03-24  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2002-03-24  Pavel Janík  <Pavel@Janik.cz>
 
        * mwheel.el (mouse-wheel-mode): Use the result of
        current-global-map instead of the variable `global-map'.
        * mail/emacsbug.el (report-emacs-bug-hook): Remove submitter
        directions as the last action.
 
-2002-03-21  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2002-03-21  Pavel Janík  <Pavel@Janik.cz>
 
        * startup.el (fancy-splash-tail, normal-splash-screen):
        Update copyright.
        <top-level>: Remove the setup for all known codepages: it seems
        to cause crashes in the CCL driver.
 
-2002-03-16  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2002-03-16  Pavel Janík  <Pavel@Janik.cz>
 
        * textmodes/bibtex.el (bibtex-sort-ignore-string-entries)
        (bibtex-entry-field-alist): Doc fix.
        * files.el (load-completion): New function.
        (load-library): Use it.
 
-2002-03-15  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2002-03-15  Pavel Janík  <Pavel@Janik.cz>
 
        * calendar/cal-french.el (calendar-goto-french-date): Fix prompt
        to match the actual code.
 
        * comint.el: Remove documentation on setting up pcomplete.
 
-2002-03-11  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2002-03-11  Pavel Janík  <Pavel@Janik.cz>
 
        * font-lock.el (java-font-lock-extra-types): Add "URL" as separate
        item.  Doc fix.
        (hif-conditional): New function to evaluate a conditional
        expression.
 
-2002-03-06  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2002-03-06  Pavel Janík  <Pavel@Janik.cz>
 
        * language/czech.el ("Czech"): Fix the documentation.
 
        (mode-line-inactive, header-line): Move the `t' section to the
        beginning so the `:inherit' setting can be shared.
 
-2002-03-04  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2002-03-04  Pavel Janík  <Pavel@Janik.cz>
 
        * net/snmp-mode.el: Require tempo when compiling to prevent
        warnings.  Update copyright notice.
        * font-lock.el (java-font-lock-extra-types):
        Match java.net.URL, etc.
 
-2002-02-28  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2002-02-28  Pavel Janík  <Pavel@Janik.cz>
 
        * hexl.el (hexl-options): Doc fix.
        Update Commentary section.
        * progmodes/tcl.el (tcl-do-fill-paragraph): Find and fill on more
        natural paragraph boundaries.  Don't fail at beginning of buffer.
 
-2002-02-20  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2002-02-20  Pavel Janík  <Pavel@Janik.cz>
 
        * tar-mode.el (tar-next-line, tar-previous-line): Add doc string,
        call the argument "arg" to match plain next-line and
        * mail/uce.el (uce-reply-to-uce): Fix incorrect behavior when
        invoked from Rmail with full headers displayed.
 
-2002-02-17  Kai Gro\e,A_\e(Bjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
+2002-02-17  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
 
        * emacs-lisp/lisp.el (mark-defun): Don't leave multiple marks
        when repeated.
 
        * textmodes/flyspell.el (flyspell): Add to ispell group.
 
-2002-02-17  Kai Gro\e,A_\e(Bjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
+2002-02-17  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
 
        * emacs-lisp/lisp.el (mark-sexp): Don't leave multiple marks when
        repeated.
        * cus-start.el: Add automatic-hscroll-margin and
        automatic-hscroll-step.
 
-2002-02-16  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2002-02-16  Pavel Janík  <Pavel@Janik.cz>
 
        * cus-start.el (x-autoselect-window): Allow customization.
 
 
        * menu-bar.el (menu-bar-tools-menu): Add an item for Calculator.
 
-2002-02-15  Kai Gro\e,A_\e(Bjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
+2002-02-15  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
 
        * simple.el (mark-word): Mark more if repeated.
        * textmodes/paragraphs.el (mark-paragraph): Ditto.
        * cus-start.el: Don't warn about "x-*" symbols when building a
        non-GUI version.
 
-2002-02-11  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2002-02-11  Pavel Janík  <Pavel@Janik.cz>
 
        * strokes.el (strokes-do-stroke, strokes-do-complex-stroke):
        Doc fix.
        (dump-charsets, dump-codings): Deleted (obsolete).
        From Dave Love <fx@gnu.org>.
 
-2002-02-10  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2002-02-10  Pavel Janík  <Pavel@Janik.cz>
 
        * menu-bar.el (menu-bar-showhide-menu): Rename functions for toggling.
 
 
        * ediff.el: Typo in comment.
 
-2002-02-09  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2002-02-09  Pavel Janík  <Pavel@Janik.cz>
 
        * menu-bar.el (menu-bar-options-save): Take care of
        line-number-mode and column-number-mode variables.
        * subr.el (global-set-key, local-set-key): Accept a symbol for the
        KEY argument (like define-key).
 
-2002-02-06  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2002-02-06  Pavel Janík  <Pavel@Janik.cz>
 
        * textmodes/flyspell.el (flyspell-insert-function): Doc fix.
 
        * cus-edit.el (customize-mark-to-save): New function.
        * menu-bar.el (menu-bar-options-save): Rewrote.
 
-2002-02-05  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2002-02-05  Pavel Janík  <Pavel@Janik.cz>
 
        * cus-start.el (x-use-underline-position-properties):
        Allow customization.
        * window.el (save-selected-window): Move macro before first use.
        (balance-windows): Fix misplaced parenthesis.
 
-2002-02-03  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2002-02-03  Pavel Janík  <Pavel@Janik.cz>
 
        * calculator.el (calculator-displayers): Doc fixes.
 
-2002-02-03  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2002-02-03  Pavel Janík  <Pavel@Janik.cz>
 
        * menu-bar.el (menu-bar-help-menu): Use different text for tool-tip.
        (menu-bar-options-save): Save also the value of `display-time-mode'.
        looking for X-Coding-System header, and restore the pruned state
        before returning.
 
-2002-02-02  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2002-02-02  Pavel Janík  <Pavel@Janik.cz>
 
        * cus-edit.el (customize-save-variable): Fix typo in prompt.
 
        * emulation/pc-select.el (pc-select-save-and-set-mode):
        Properly use MODE-VAR.
 
-2002-01-29  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2002-01-29  Pavel Janík  <Pavel@Janik.cz>
 
        * menu-bar.el (menu-bar-help-menu): Change menu-item "Show Emacs
        Version" to "About Emacs".
 
        * calendar/calendar.el (generate-calendar-month): Doc fix.
 
-2002-01-27  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2002-01-27  Pavel Janík  <Pavel@Janik.cz>
 
        * time.el (display-time-mail-directory): New option.
        (display-time-mail-function): Update doc-string.
        with `byte-compile-dynamic'.
        (ibuffer-default-directory, toplevel): Doc files.
 
-2002-01-20  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2002-01-20  Pavel Janík  <Pavel@Janik.cz>
 
        * tempo.el (tempo-define-template): Doc fix.
 
 
        * term/w32-win.el (mouse-set-font): Use w32-list-proportional-fonts.
 
-2002-01-19  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2002-01-19  Pavel Janík  <Pavel@Janik.cz>
 
        * language/tibet-util.el (tibetan-decompose-region)
        (tibetan-decompose-string): Fix typo in docstring.
 
        * mail/feedmail.el (feedmail): Fix :link spec.
 
-2002-01-16  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2002-01-16  Pavel Janík  <Pavel@Janik.cz>
 
        * net/ldap.el (ldap-ldapsearch-prog): Default to OpenLDAP version
        2 ldapsearch.
        (comint-send-input): New arg NO-NEWLINE.
        (comint-send-eof): Call comint-send-eof with NO-NEWLINE.
 
-2002-01-12  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2002-01-12  Pavel Janík  <Pavel@Janik.cz>
 
        * textmodes/flyspell.el (flyspell-check-pre-word-p):
        Prevent delaying when executing keyboard macros.
 
        * textmodes/flyspell.el (flyspell-mode-line-string): Fix custom type.
 
-2002-01-08  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2002-01-08  Pavel Janík  <Pavel@Janik.cz>
 
        * progmodes/ada-mode.el (ada-initialize-properties, ada-mode):
        Do not use make-local-hook.
 
        * ediff-hook.el: Add an autoload cookie.
 
-2002-01-08  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2002-01-08  Pavel Janík  <Pavel@Janik.cz>
 
        * net/eudcb-ph.el, net/ldap.el: New maintainer.  New e-mail
        address of the author.
        * help-fns.el (describe-variable, describe-function):
        Do save-excursion.
 
-2002-01-06  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2002-01-06  Pavel Janík  <Pavel@Janik.cz>
 
        * net/ldap.el (ldap-search-internal): Skip error message from
        ldapsearch.  Allow listing attribute names only.  Do not open
        * net/eudcb-ldap.el (eudc-attribute-display-method-alist):
        Use proper attribute name labeledUri instead of deprecated labeledUrl.
 
-2002-01-05  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2002-01-05  Pavel Janík  <Pavel@Janik.cz>
 
        * net/eudc-hotlist.el (eudc-edit-hotlist): Avoid error when
        editing an empty hotlist.
 
        * mail/sendmail.el (mail-recover-1, mail-recover): Doc fix.
 
-2002-01-04  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2002-01-04  Pavel Janík  <Pavel@Janik.cz>
 
        * net/ldap.el (ldap-host-parameters-alist): Remove duplicated entry.
        (ldap-ignore-attribute-codings): Change the default value to allow
        does not exist, call mail-recover-1 to allow recovery from past
        auto-saved drafts.
 
-2002-01-03  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2002-01-03  Pavel Janík  <Pavel@Janik.cz>
 
        * time.el (display-time-load-average-threshold): Fix defcustom
        (add type and group).
        * bindings.el (function-key-map): Don't bind shifted keypad
        numeric keys.
 
-2002-01-02  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2002-01-02  Pavel Janík  <Pavel@Janik.cz>
 
        * enriched.el (enriched-handle-display-prop): Remove unused variables.
        (enriched-mode): Doc fix.
        * cus-edit.el (custom-face-edit-fix-value): New function.
        (custom-face-edit): Use it, to convert :italic and :bold to new forms.
 
-2001-12-30  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2001-12-30  Pavel Janík  <Pavel@Janik.cz>
 
        * progmodes/octave-mod.el (octave-abbrev-table):
        * progmodes/idlwave.el (idlwave-mode-abbrev-table):
 
        * international/fontset.el: Don't require ind-util when compiling.
 
-2001-12-25  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2001-12-25  Pavel Janík  <Pavel@Janik.cz>
 
        * emulation/tpu-edt.el (tpu-reset-screen-size):
        Use set-frame-height and set-frame-width instead of set-screen-height
        * play/yow.el (yow): Use an arg to distinguish interactive calls,
        not interactive-p.
 
-2001-12-22  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2001-12-22  Pavel Janík  <Pavel@Janik.cz>
 
        * emacs-lisp/elint.el (elint-unknown-builtin-args):
        Remove mocklisp entries.
        * textmodes/refill.el (refill-mode): Don't barf when redundantly
        turning refill-mode off.
 
-2001-12-22  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2001-12-22  Pavel Janík  <Pavel@Janik.cz>
 
        * time.el (display-time-load-average-threshold): New variable.
        (display-time-update): Use it.
        (print-coding-system-briefly): Make printed output have a similar
        format as describe-character-set.
 
-2001-12-20  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2001-12-20  Pavel Janík  <Pavel@Janik.cz>
 
        * play/blackbox.el (bb-member): Remove, use member instead.
        (bb-delete): Remove, use delete instead.
 
        * international/fontset.el: Require `ind-util' when compiling.
 
-2001-12-18  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2001-12-18  Pavel Janík  <Pavel@Janik.cz>
 
        * language/ethio-util.el (ethio-modify-vowel): Use char-to-string
        instead of decompose-composite-char.
 
        * newcomment.el (comment-indent): Jump to the middle of empty comments.
 
-2001-12-14  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2001-12-14  Pavel Janík  <Pavel@Janik.cz>
 
        * select.el (xselect-convert-to-class, xselect-convert-to-name):
        Document.
        * international/mule.el (set-auto-coding): Don't search for
        "unibyte:" or "coding:" if set-auto-mode-1 returns nil.
 
-2001-12-13  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2001-12-13  Pavel Janík  <Pavel@Janik.cz>
 
        * mail/mailabbrev.el (mail-abbrevs-setup): Do not use make-local-hook.
 
        * language/european.el: Remove autoload cookies.  Fix registration
        of diacritic composition function.
 
-2001-12-11  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2001-12-11  Pavel Janík  <Pavel@Janik.cz>
 
        * calendar/todo-mode.el: Require time-stamp.
 
        Use `select-frame-set-input-focus'--needed when window manager
        uses "click to focus" policy.
 
-2001-12-09  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2001-12-09  Pavel Janík  <Pavel@Janik.cz>
 
        * COPYING: Moved back.
 
        * textmodes/picture.el (picture-mode-map): Don't use defconst
        for a variable.
 
-2001-12-02  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2001-12-02  Pavel Janík  <Pavel@Janik.cz>
 
        * textmodes/reftex-index.el (reftex-index-mode):
        Remove make-local-hook.
 
        * man.el (Man-build-section-alist): Remove last Man-match-substring.
 
-2001-11-30  Kai Gro\e,A_\e(Bjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
+2001-11-30  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
 
        * textmodes/paragraphs.el (mark-paragraph): Clarify doc.
        Clarify error message.
 
-2001-11-29  Kai Gro\e,A_\e(Bjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
+2001-11-29  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
 
        * textmodes/paragraphs.el (mark-paragraph): Allow prefix arg.
 
        (Info-index): Use it.  Add completion to the interactive spec.
        (Info-menu-update): Simplify call to `Info-complete-menu-item'.
 
-2001-11-29  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2001-11-29  Pavel Janík  <Pavel@Janik.cz>
 
        * COPYING: Removed.
 
        (register-char-codings): Use it to cope with generic chars in
        safe-chars.
 
-2001-11-29  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2001-11-29  Pavel Janík  <Pavel@Janik.cz>
 
        * play/blackbox.el (blackbox-mode, blackbox): Doc fix.
 
        * frame.el (show-trailing-whitespace): Remove :set argument (the
        value was essentially identical to the defalt).
 
-2001-11-26  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2001-11-26  Pavel Janík  <Pavel@Janik.cz>
 
        * hexl.el (hexl-mode, hexl-follow-ascii): Remove make-local-hook.
 
 
        * help-funs.el (describe-syntax): Put (interactive) after doc string.
 
-2001-11-26  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2001-11-26  Pavel Janík  <Pavel@Janik.cz>
 
        * international/quail.el (quail-help): Require help-mode in
        top-level instead.
        * language/devan-util.el: Comment out parts of the file
        which apparently are garbled.
 
-2001-11-25  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2001-11-25  Pavel Janík  <Pavel@Janik.cz>
 
        * mail/smtpmail.el (smtpmail-deduce-address-list): Don't use
        insert-string.
 
-2001-11-25  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2001-11-25  Pavel Janík  <Pavel@Janik.cz>
 
        * play/snake.el (snake-mode): Remove make-local-hook.
 
 
        * international/encoded-kb.el: Don't alter minor-map-alist.
 
-2001-11-20  Kai Gro\e,A_\e(Bjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
+2001-11-20  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
 
        * files.el (auto-save-file-name-transforms): Put remote files in
        temporary-file-directory rather than /tmp.
        Don't recognize a "telephone number" at the beginning of the name.
        (mail-extr-leading-garbage): Match non-word characters only.
 
-2001-11-16  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2001-11-16  Pavel Janík  <Pavel@Janik.cz>
 
        * startup.el (command-line-processed): Doc fix.
 
        (multiple-value-apply, nth-value): Use defsubst rather than defalias
        to get better doc strings.
 
-2001-11-15  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2001-11-15  Pavel Janík  <Pavel@Janik.cz>
 
        * derived.el: Fix autoload cookie.
 
        (log-view-current-tag): Take an optional `where' arg.
        (log-view-diff): New user command.
 
-2001-11-12  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2001-11-12  Pavel Janík  <Pavel@Janik.cz>
 
        * progmodes/cpp.el (cpp-choose-face): Fix typo.
 
        * calc/calc-ext.el (calc-init-extensions): Update autoload names
        to match files renamed on initial calc import.
 
-2001-11-12  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2001-11-12  Pavel Janík  <Pavel@Janik.cz>
 
        * textmodes/flyspell.el (flyspell-default-dictionary):
        Fix previous change.
 2001-11-11  Colin Walters  <walters@verbum.org>
 
        The following changes are based on patches from
-       Eli Zaretskii <eliz@is.elta.co.il>, Kai Gro\e,A_\e(Bjohann
+       Eli Zaretskii <eliz@is.elta.co.il>, Kai Großjohann
        <Kai.Grossjohann@CS.Uni-Dortmund.DE>, and others.
 
        * calc/calc.el (toplevel): Require calc-macs.
        (radio-button-choice): Ditto.
        (editable-list): Ditto.
 
-2001-11-09  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2001-11-09  Pavel Janík  <Pavel@Janik.cz>
 
        * play/gomoku.el: Move definitions of constants to the beginning
        of file, before their use.
        (debugger-setup-buffer): Call it.
        (debugger-mode-map): Bind RET and mouse-2.
 
-2001-10-31  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2001-10-31  Pavel Janík  <Pavel@Janik.cz>
 
        * startup.el: Document command line option --no-window-system
        instead of --no-windows.
        Report numbers of files skipped and failed too.
        (byte-compile-file): Return 'no-byte-compile for skipped files.
 
-2001-10-29  Kai Gro\e,A_\e(Bjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
+2001-10-29  Kai Großjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
 
        * log-view.el (log-view-mode-map): Bind `M-n' and `M-p', not `M n'
        and `M p'.
        * progmodes/compile.el (compilation-set-window-height):
        Select old window only if it's still live.
 
-2001-10-22  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
+2001-10-22  Pavel Janík  <Pavel@Janik.cz>
 
        * help-mode.el (help-buffer): Remove debugging code.
        From Stefan Monnier <monnier@cs.yale.edu>.
index 840bb889781a33fb42e9a9b56170924a653465be..4546651da9129a150671c33ff37dc63cc6033f27 100644 (file)
@@ -1,8 +1,8 @@
 ;;; reftex-auc.el --- RefTeX's interface to AUC TeX
 ;; Copyright (c) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
 
-;; Author: Carsten Dominik <dominik@strw.LeidenUniv.nl>
-;; Version: 4.16
+;; Author: Carsten Dominik <dominik@science.uva.nl>
+;; Version: 4.17
 
 ;; This file is part of GNU Emacs.
 
index 37833be278c9aab49618421b90600ffc9f785e20..ebcfd99182989881c0a0c9dc5b87abc7f7cbd543 100644 (file)
@@ -1,8 +1,8 @@
 ;;; reftex-cite.el --- creating citations with RefTeX
 ;; Copyright (c) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
 
-;; Author: Carsten Dominik <dominik@strw.LeidenUniv.nl>
-;; Version: 4.16
+;; Author: Carsten Dominik <dominik@science.uva.nl>
+;; Version: 4.17
 
 ;; This file is part of GNU Emacs.
 
 
 ;; Find bibtex files
 
+
+(defmacro reftex-with-special-syntax-for-bib (&rest body)
+  `(let ((saved-syntax (syntax-table)))
+     (unwind-protect
+        (progn
+          (set-syntax-table reftex-syntax-table-for-bib)
+          ,@body)
+       (set-syntax-table saved-syntax))))
+
 (defun reftex-default-bibliography ()
   ;; Return the expanded value of `reftex-default-bibliography'.
   ;; The expanded value is cached.
             (message "Scanning bibliography database %s" buffer1))
 
           (set-buffer buffer1)
-          (save-excursion
-            (goto-char (point-min))
-            (while (re-search-forward first-re nil t)
-              (catch 'search-again
-                (setq key-point (point))
-                (unless (re-search-backward
-                         "\\(\\`\\|[\n\r]\\)[ \t]*@\\([a-zA-Z]+\\)[ \t\n\r]*[{(]" nil t)
-                  (throw 'search-again nil))
-                (setq start-point (point))
-                (goto-char (match-end 0))
-                (condition-case nil
-                    (up-list 1)
-                  (error (goto-char key-point)
+         (reftex-with-special-syntax-for-bib
+          (save-excursion
+            (goto-char (point-min))
+            (while (re-search-forward first-re nil t)
+              (catch 'search-again
+                (setq key-point (point))
+                (unless (re-search-backward
+                         "\\(\\`\\|[\n\r]\\)[ \t]*@\\([a-zA-Z]+\\)[ \t\n\r]*[{(]" nil t)
+                  (throw 'search-again nil))
+                (setq start-point (point))
+                (goto-char (match-end 0))
+                (condition-case nil
+                    (up-list 1)
+                  (error (goto-char key-point)
                           (throw 'search-again nil)))
-                (setq end-point (point))
-
-                ;; Ignore @string, @comment and @c entries or things
-                ;; outside entries
-                (when (or (string= (downcase (match-string 2)) "string")
-                          (string= (downcase (match-string 2)) "comment")
-                          (string= (downcase (match-string 2)) "c")
-                          (< (point) key-point)) ; this means match not in {}
-                  (goto-char key-point)
-                  (throw 'search-again nil))
-
-                ;; Well, we have got a match
-                (setq entry (concat
-                             (buffer-substring start-point (point)) "\n"))
-
-                ;; Check if other regexp match as well
-                (setq re-list rest-re)
-                (while re-list
-                  (unless (string-match (car re-list) entry)
-                    ;; nope - move on
-                    (throw 'search-again nil))
-                  (pop re-list))
-
-                (setq alist (reftex-parse-bibtex-entry
-                             nil start-point end-point))
-                (push (cons "&entry" entry) alist)
-
-                ;; check for crossref entries
-                (if (assoc "crossref" alist)
-                    (setq alist
-                          (append
-                           alist (reftex-get-crossref-alist alist))))
-
-                ;; format the entry
-                (push (cons "&formatted" (reftex-format-bib-entry alist))
-                      alist)
-
-               ;; make key the first element
-               (push (reftex-get-bib-field "&key" alist) alist)
-
-                ;; add it to the list
-                (push alist found-list))))
-          (reftex-kill-temporary-buffers))))
+                (setq end-point (point))
+                
+                ;; Ignore @string, @comment and @c entries or things
+                ;; outside entries
+                (when (or (string= (downcase (match-string 2)) "string")
+                          (string= (downcase (match-string 2)) "comment")
+                          (string= (downcase (match-string 2)) "c")
+                          (< (point) key-point)) ; this means match not in {}
+                  (goto-char key-point)
+                  (throw 'search-again nil))
+                
+                ;; Well, we have got a match
+                (setq entry (concat
+                             (buffer-substring start-point (point)) "\n"))
+                
+                ;; Check if other regexp match as well
+                (setq re-list rest-re)
+                (while re-list
+                  (unless (string-match (car re-list) entry)
+                    ;; nope - move on
+                    (throw 'search-again nil))
+                  (pop re-list))
+                
+                (setq alist (reftex-parse-bibtex-entry
+                             nil start-point end-point))
+                (push (cons "&entry" entry) alist)
+                
+                ;; check for crossref entries
+                (if (assoc "crossref" alist)
+                    (setq alist
+                          (append
+                           alist (reftex-get-crossref-alist alist))))
+                
+                ;; format the entry
+                (push (cons "&formatted" (reftex-format-bib-entry alist))
+                      alist)
+                
+                ;; make key the first element
+                (push (reftex-get-bib-field "&key" alist) alist)
+                
+                ;; add it to the list
+                (push alist found-list)))))
+         (reftex-kill-temporary-buffers))))
     (setq found-list (nreverse found-list))
 
     ;; Sorting
             (progn
               (set-buffer (get-buffer-create " *RefTeX-scratch*"))
               (fundamental-mode)
+             (set-syntax-table reftex-syntax-table-for-bib)
               (erase-buffer)
               (insert entry))
           (widen)
@@ -834,6 +845,7 @@ While entering the regexp, completion on knows citation keys is possible.
 
 (defun reftex-format-names (namelist n)
   (let (last (len (length namelist)))
+    (if (= n 0) (setq n len))
     (cond
      ((< len 1) "")
      ((= 1 len) (car namelist))
index 8c179ff32b1309422c9fadfcf3f20bb41684a76e..c0af53a9bc6fc07a5da9eb4d0bfc5ac0761484dc 100644 (file)
@@ -1,8 +1,8 @@
 ;;; reftex-dcr.el --- viewing cross references and citations with RefTeX
 ;; Copyright (c) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
 
-;; Author: Carsten Dominik <dominik@strw.LeidenUniv.nl>
-;; Version: 4.16
+;; Author: Carsten Dominik <dominik@science.uva.nl>
+;; Version: 4.17
 ;;
 
 ;; This file is part of GNU Emacs.
index 6810b80adfc447e2e3d9781b46cbfd30e5f14c3d..d19b45d76de71ad4641c0a831c288c7fe8fee8c8 100644 (file)
@@ -1,8 +1,8 @@
 ;;; reftex-global.el --- operations on entire documents with RefTeX
 ;; Copyright (c) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
 
-;; Author: Carsten Dominik <dominik@strw.LeidenUniv.nl>
-;; Version: 4.16
+;; Author: Carsten Dominik <dominik@science.uva.nl>
+;; Version: 4.17
 
 ;; This file is part of GNU Emacs.
 
index 660dcfaadc23e96b7eed36500d30189996a65670..5db364c371f86f1c65c136e2871a90d685df0d8d 100644 (file)
@@ -1,8 +1,8 @@
 ;;; reftex-index.el --- index support with RefTeX
 ;; Copyright (c) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
 
-;; Author: Carsten Dominik <dominik@strw.LeidenUniv.nl>
-;; Version: 4.16
+;; Author: Carsten Dominik <dominik@science.uva.nl>
+;; Version: 4.17
 
 ;; This file is part of GNU Emacs.
 
@@ -1819,6 +1819,9 @@ both ends."
     (unwind-protect
        (while (re-search-forward re nil t)
          (catch 'next-match
+           (if (and (fboundp reftex-index-verify-function)
+                    (not (funcall reftex-index-verify-function)))
+               (throw 'next-match nil))
            (setq match (match-string 0))
            (setq mathp
                  (save-match-data
index 1bb6a24bce5ef6b9b871aba9e32d7144e5fc98a8..3a42bc7d85bea19d793d6bb3e8095a6a1f503754 100644 (file)
@@ -1,8 +1,8 @@
 ;;; reftex-parse.el --- parser functions for RefTeX
 ;; Copyright (c) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
 
-;; Author: Carsten Dominik <dominik@strw.LeidenUniv.nl>
-;; Version: 4.16
+;; Author: Carsten Dominik <dominik@science.uva.nl>
+;; Version: 4.17
 ;;
 
 ;; This file is part of GNU Emacs.
@@ -198,6 +198,7 @@ of master file."
         toc-entry index-entry next-buf buf)
 
     (catch 'exit
+      (debug)
       (setq file-found (reftex-locate-file file "tex" master-dir))
       (if (and (not file-found)
               (setq buf (reftex-get-buffer-visiting file)))
@@ -334,7 +335,10 @@ of master file."
     (save-excursion
       (goto-char (point-min))
       (if (re-search-forward
-          "\\(\\`\\|[\n\r]\\)[ \t]*\\\\\\(no\\)?bibliography{[ \t]*\\([^}]+\\)" nil t)
+          (concat
+           "\\(\\`\\|[\n\r]\\)[^%]*\\\\\\("
+           (mapconcat 'identity reftex-bibliography-commands "\\|")
+           "\\){[ \t]*\\([^}]+\\)") nil t)
          (setq files 
                (split-string (reftex-match-string 3)
                              "[ \t\n\r]*,[ \t\n\r]*")))))
index 4db17b238b7aac0267df6d2b2d1bd6ede75efdfa..982062e12f99d6483f77ee6e71da817651b5402c 100644 (file)
@@ -1,8 +1,8 @@
 ;;; reftex-ref.el --- code to create labels and references with RefTeX
 ;; Copyright (c) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
 
-;; Author: Carsten Dominik <dominik@strw.LeidenUniv.nl>
-;; Version: 4.16
+;; Author: Carsten Dominik <dominik@science.uva.nl>
+;; Version: 4.17
 
 ;; This file is part of GNU Emacs.
 
index 05aadeeb03d054844963ce0df79e5de531bc4e12..f59e2a1e03fcec16d487214583df4d93118951bb 100644 (file)
@@ -1,8 +1,8 @@
 ;;; reftex-sel.el --- the selection modes for RefTeX
 ;; Copyright (c) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
 
-;; Author: Carsten Dominik <dominik@strw.LeidenUniv.nl>
-;; Version: 4.16
+;; Author: Carsten Dominik <dominik@science.uva.nl>
+;; Version: 4.17
 
 ;; This file is part of GNU Emacs.
 
index 2ec1040d190bddc9ac539a98ce1a27948f3fab32..15685939815bc98f1a6ce9386074c51ed2413bed 100644 (file)
@@ -1,8 +1,8 @@
 ;;; reftex-toc.el --- RefTeX's table of contents mode
 ;; Copyright (c) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
 
-;; Author: Carsten Dominik <dominik@strw.LeidenUniv.nl>
-;; Version: 4.16
+;; Author: Carsten Dominik <dominik@science.uva.nl>
+;; Version: 4.17
 
 ;; This file is part of GNU Emacs.
 
@@ -72,6 +72,7 @@ Here are all local bindings.
   "Stores the file name from which `reftex-toc' was called.  For redo command.")
 
 (defvar reftex-last-window-height nil)
+(defvar reftex-last-window-width nil)
 (defvar reftex-toc-include-labels-indicator nil)
 (defvar reftex-toc-include-index-indicator nil)
 (defvar reftex-toc-max-level-indicator nil)
@@ -127,7 +128,7 @@ When called with a raw C-u prefix, rescan the document first."
         (docstruct-symbol reftex-docstruct-symbol)
         (xr-data (assq 'xr (symbol-value reftex-docstruct-symbol)))
         (xr-alist (cons (cons "" (buffer-file-name)) (nth 1 xr-data)))
-        (here-I-am (if rebuild 
+        (here-I-am (if rebuild
                        (get 'reftex-toc :reftex-data)
                      (car (reftex-where-am-I))))
         offset)
@@ -137,8 +138,14 @@ When called with a raw C-u prefix, rescan the document first."
       (when (or (not reftex-toc-keep-other-windows)
                (< (window-height) (* 2 window-min-height)))
        (delete-other-windows))
-      (setq reftex-last-window-height (window-height))  ; remember
-      (split-window)
+
+      (setq reftex-last-window-width (window-width)
+           reftex-last-window-height (window-height))  ; remember
+      (if reftex-toc-split-windows-horizontally
+         (split-window-horizontally
+          (floor (* (frame-width) reftex-toc-split-windows-horizontally-fraction)))
+       (split-window))
+
       (let ((default-major-mode 'reftex-toc-mode))
        (switch-to-buffer "*toc*")))
 
@@ -237,9 +244,13 @@ SPC=view TAB=goto RET=goto+hide [q]uit [r]escan [l]abels [f]ollow [x]r [?]Help
 
 (defun reftex-re-enlarge ()
   ;; Enlarge windiw to a remembered size
-  (enlarge-window
-   (max 0 (- (or reftex-last-window-height (window-height))
-            (window-height)))))
+  (if reftex-toc-split-windows-horizontally
+      (enlarge-window-horizontally
+       (max 0 (- (or reftex-last-window-width (window-width))
+                (window-width))))
+    (enlarge-window
+     (max 0 (- (or reftex-last-window-height (window-height))
+              (window-height))))))
 
 (defun reftex-toc-show-help ()
   "Show a summary of special key bindings."
index eac9d644d6f141f06901a6fcbf6b92e759de2754..05588d712e6cca52853d2234eb5b6f0eab5b0378 100644 (file)
@@ -1,8 +1,8 @@
 ;;; reftex-vars.el --- configuration variables for RefTeX
 ;; Copyright (c) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
 
-;; Author: Carsten Dominik <dominik@strw.LeidenUniv.nl>
-;; Version: 4.16
+;; Author: Carsten Dominik <dominik@science.uva.nl>
+;; Version: 4.17
 
 ;; This file is part of GNU Emacs.
 
@@ -136,7 +136,8 @@ distribution.  Mixed-case symbols are convenience aliases.")
       (?s    . "\\citep[see][]{%l}")
       (?a    . "\\citeauthor{%l}")
       (?A    . "\\citeauthor*{%l}")
-      (?y    . "\\citeyear{%l}")))
+      (?y    . "\\citeyear{%l}")
+      (?n    . "\\nocite{%l}")))
     (bibentry "The Bibentry package"
       "\\bibentry{%l}")
     (harvard "The Harvard package"
@@ -205,12 +206,57 @@ distribution.  Mixed-case symbols are convenience aliases.")
   :prefix "reftex-"
   :group 'tex)
 
+
 ;; Table of contents configuration --------------------------------------
 
 (defgroup reftex-table-of-contents-browser nil
   "A multifile table of contents browser."
   :group 'reftex)
 
+(defcustom reftex-include-file-commands '("include" "input")
+  "LaTeX commands which input another file.
+The file name is expected after the command, either in braces or separated
+by whitespace."
+  :group 'reftex-table-of-contents-browser
+  :type '(repeat string))
+
+(defcustom reftex-max-section-depth 12
+  "Maximum depth of section levels in document structure.
+Standard LaTeX needs default is 7, but there are packages for which this
+needs to be larger."
+  :group 'reftex-table-of-contents-browser
+  :type 'integer)
+
+;; LaTeX section commands and level numbers
+(defcustom reftex-section-levels
+  '(
+    ("part"            .  0)
+    ("chapter"         .  1)
+    ("section"         .  2)
+    ("subsection"      .  3)
+    ("subsubsection"   .  4)
+    ("paragraph"       .  5)
+    ("subparagraph"    .  6)
+    ("subsubparagraph" .  7)
+    ("addchap"         . -1) ; KOMA-Script
+    ("addsec"          . -2) ; KOMA-Script
+;;; ("minisec"         . -7) ; KOMA-Script
+    )
+  "Commands and levels used for defining sections in the document.
+This is an alist with each element like (COMMAND-NAME . LEVEL).
+The car of each cons cell is the name of the section macro (without
+the backslash).  The cdr is a number indicating its level.  A negative
+level means the same level as the positive value, but the section will
+never get a number.  The cdr may also be a function which will be called
+to after the section-re matched to determine the level."
+  :group 'reftex-table-of-contents-browser
+  :set 'reftex-set-dirty
+  :type '(repeat
+          (cons (string :tag "sectioning macro" "")
+               (choice
+                (number :tag "level           " 0)
+                (symbol :tag "function        " my-level-func)))))
+
 (defcustom reftex-toc-max-level 100
   "*The maximum level of toc entries which will be included in the TOC.
 Section headings with a bigger level will be ignored.  In RefTeX, chapters
@@ -219,6 +265,17 @@ This variable can be changed from within the *toc* buffer with the `t' key."
   :group 'reftex-table-of-contents-browser
   :type 'integer)
 
+(defcustom reftex-toc-split-windows-horizontally nil
+  "*Non-nil means, create TOC window by splitting window horizontally."
+  :group 'reftex-table-of-contents-browser
+  :type 'boolean)
+
+(defcustom reftex-toc-split-windows-horizontally-fraction .5
+  "*Fraction of the horizontal width of the frame to be used for TOC window.
+Only relevant when `reftex-toc-split-windows-horizontally' is non-nil."
+  :group 'reftex-table-of-contents-browser
+  :type 'number)
+
 (defcustom reftex-toc-keep-other-windows t
   "*Non-nil means, split the selected window to display the *toc* buffer.
 This helps to keep the window configuration, but makes the *toc* small.
@@ -479,43 +536,6 @@ list.  However, builtin defaults should normally be set with the variable
                 (nth 0 x)))
         reftex-label-alist-builtin)))))
 
-(defcustom reftex-max-section-depth 12
-  "Maximum depth of section levels in document structure.
-Standard LaTeX needs default is 7, but there are packages for which this
-needs to be larger."
-  :group 'reftex-defining-label-environments
-  :type 'integer)
-
-;; LaTeX section commands and level numbers
-(defcustom reftex-section-levels
-  '(
-    ("part"            .  0)
-    ("chapter"         .  1)
-    ("section"         .  2)
-    ("subsection"      .  3)
-    ("subsubsection"   .  4)
-    ("paragraph"       .  5)
-    ("subparagraph"    .  6)
-    ("subsubparagraph" .  7)
-    ("addchap"         . -1) ; KOMA-Script
-    ("addsec"          . -2) ; KOMA-Script
-;;; ("minisec"         . -7) ; KOMA-Script
-    )
-  "Commands and levels used for defining sections in the document.
-This is an alist with each element like (COMMAND-NAME . LEVEL).
-The car of each cons cell is the name of the section macro (without
-the backslash).  The cdr is a number indicating its level.  A negative
-level means the same level as the positive value, but the section will
-never get a number.  The cdr may also be a function which will be called
-to after the section-re matched to determine the level."
-  :group 'reftex-defining-label-environments
-  :set 'reftex-set-dirty
-  :type '(repeat
-          (cons (string :tag "sectioning macro" "")
-               (choice
-                (number :tag "level           " 0)
-                (symbol :tag "function        " my-level-func)))))
-
 (defcustom reftex-section-prefixes '((0 . "part:") (1 . "cha:") (t . "sec:"))
   "Prefixes for section labels.
 When the label prefix given in an entry in `reftex-label-alist' contains `%S',
@@ -855,6 +875,12 @@ string to insert into the buffer."
   "Support for referencing bibliographic data with BibTeX."
   :group 'reftex)
 
+(defcustom reftex-bibliography-commands '("bibliography" "nobibliography")
+  "LaTeX commands which specify the BibTeX databases to use with the document."
+  :group 'reftex-citation-support
+  :type '(repeat string))
+
+
 (defvar reftex-bibfile-ignore-list nil) ; compatibility
 (defcustom reftex-bibfile-ignore-regexps nil
   "*List of regular expressions to exclude files in \\bibliography{..}.
@@ -898,7 +924,7 @@ If `reftex-cite-format' is a string, it will be used as the format.
 In the format, the following percent escapes will be expanded.
 
 %l   The BibTeX label of the citation.
-%a   List of author names, see also `reftex-cite-punctuation.
+%a   List of author names, see also `reftex-cite-punctuation'.
 %2a  Like %a, but abbreviate more than 2 authors like Jones et al.
 %A   First author name only.
 %e   Works like %a, but on list of editor names. (%2e and %E work a well)
@@ -1175,6 +1201,14 @@ at one of these points, no word boundary is required there."
   :group 'reftex-index-support
   :type 'boolean)
 
+(defcustom reftex-index-verify-function nil
+  "A function which is called  at each match during global indexing.
+If the function returns nil, the current match is skipped."
+  :group 'reftex-index-support
+  :type '(choice
+         (const :tag "No verification" nil)
+         (function)))
+
 (defcustom reftex-index-phrases-skip-indexed-matches nil
   "*Non-nil means, skip matches which appear to be indexed already.
 When doing global indexing from the phrases buffer, searches for some
index 8db74a41090057b93a04638e103cc50b66e75abd..2dca200c0ec05f817c2cdbbef86dc5e061b5f7bd 100644 (file)
@@ -1,8 +1,8 @@
 ;;; reftex.el --- minor mode for doing \label, \ref, \cite, \index in LaTeX
 ;; Copyright (c) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
 
-;; Author: Carsten Dominik <dominik@strw.LeidenUniv.nl>
-;; Version: 4.16
+;; Author: Carsten Dominik <dominik@science.uva.nl>
+;; Version: 4.17
 ;; Keywords: tex
 
 ;; This file is part of GNU Emacs.
 ;;; Define the formal stuff for a minor mode named RefTeX.
 ;;;
 
-(defconst reftex-version "RefTeX version 4.16"
+(defconst reftex-version "RefTeX version 4.17"
   "Version string for RefTeX.")
 
 (defvar reftex-mode nil
 
 (defvar reftex-mode-menu nil)
 (defvar reftex-syntax-table nil)
+(defvar reftex-syntax-table-for-bib nil)
 
 (defvar reftex-auto-view-crossref-timer nil
   "The timer used for auto-view-crossref.")
@@ -371,6 +372,12 @@ on the menu bar.
          (setq reftex-syntax-table (copy-syntax-table (syntax-table)))
          (modify-syntax-entry ?\( "." reftex-syntax-table)
          (modify-syntax-entry ?\) "." reftex-syntax-table))
+       (unless reftex-syntax-table-for-bib
+         (setq reftex-syntax-table-for-bib (copy-syntax-table reftex-syntax-table))
+         (modify-syntax-entry ?\' "." reftex-syntax-table-for-bib)
+         (modify-syntax-entry ?\" "." reftex-syntax-table-for-bib)
+         (modify-syntax-entry ?\[ "." reftex-syntax-table-for-bib)
+         (modify-syntax-entry ?\] "." reftex-syntax-table-for-bib))
         (run-hooks 'reftex-mode-hook))
     ;; Mode was turned off
     (easy-menu-remove reftex-mode-menu)))
@@ -610,49 +617,49 @@ the label information is recompiled on next use."
 ;; The following constants are derived from `reftex-label-alist'.
 
 ;; Prompt used for label type queries directed to the user.
-(defconst reftex-type-query-prompt nil)
+(defvar reftex-type-query-prompt nil)
 
 ;; Help string for label type queries.
-(defconst reftex-type-query-help nil)
+(defvar reftex-type-query-help nil)
 
 ;; Alist relating label type to reference format.
-(defconst reftex-typekey-to-format-alist nil)
+(defvar reftex-typekey-to-format-alist nil)
 
 ;; Alist relating label type to label prefix.
-(defconst reftex-typekey-to-prefix-alist nil)
+(defvar reftex-typekey-to-prefix-alist nil)
 
 ;; Alist relating environments or macros to label type and context regexp.
-(defconst reftex-env-or-mac-alist nil)
+(defvar reftex-env-or-mac-alist nil)
 
 ;; List of special environment parser functions
-(defconst reftex-special-env-parsers nil)
+(defvar reftex-special-env-parsers nil)
 
 ;; List of macros carrying a label.
-(defconst reftex-label-mac-list nil)
+(defvar reftex-label-mac-list nil)
 
 ;; List of environments carrying a label.
-(defconst reftex-label-env-list nil)
+(defvar reftex-label-env-list nil)
 
 ;; List of all typekey letters in use.
-(defconst reftex-typekey-list nil)
+(defvar reftex-typekey-list nil)
 
 ;; Alist relating magic words to a label type.
-(defconst reftex-words-to-typekey-alist nil)
+(defvar reftex-words-to-typekey-alist nil)
 
 ;; The last list-of-labels entry used in a reference.
 (defvar reftex-last-used-reference (list nil nil nil nil))
 
 ;; Alist relating index macros to other info.
-(defconst reftex-key-to-index-macro-alist nil)
+(defvar reftex-key-to-index-macro-alist nil)
 ;; Prompt for index macro queries
-(defconst reftex-query-index-macro-prompt nil)
+(defvar reftex-query-index-macro-prompt nil)
 ;; Help string for index macro queries
-(defconst reftex-query-index-macro-help nil)
+(defvar reftex-query-index-macro-help nil)
 
 ;; The message when follow-mode is suspended
-(defconst reftex-no-follow-message
+(defvar reftex-no-follow-message
   "No follow-mode into unvisited file.  Press SPC to visit it.")
-(defconst reftex-no-info-message
+(defvar reftex-no-info-message
   "%s: info not available, use `\\[reftex-view-crossref]' to get it.")
 
 ;; Global variables used for communication between functions.
@@ -1092,9 +1099,15 @@ This enforces rescanning the buffer on next use."
                  reftex-section-levels))
 
     ;; Calculate the regular expressions
-    (let* ((wbol "\\(\\`\\|[\n\r]\\)[ \t]*")
+    (let* (
+;         (wbol "\\(\\`\\|[\n\r]\\)[ \t]*")
+          (wbol "\\(\\`\\|[\n\r]\\)[ \t]*")
           (label-re "\\\\label{\\([^}]*\\)}")
-          (include-re (concat wbol "\\\\\\(include\\|input\\)[{ \t]+\\([^} \t\n\r]+\\)"))
+          (include-re (concat wbol 
+                              "\\\\\\("
+                              (mapconcat 'identity 
+                                         reftex-include-file-commands "\\|")
+                              "\\)[{ \t]+\\([^} \t\n\r]+\\)"))
           (section-re
            (concat wbol "\\\\\\("
                    (mapconcat (lambda (x) (regexp-quote (car x)))