diff options
| author | Stefan Monnier | 2014-04-04 16:16:24 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2014-04-04 16:16:24 -0400 |
| commit | 6b31e6b1ec3bc8b69c522dcabe0bf1e2eab03710 (patch) | |
| tree | babaf4787be10409fd7e003552deada349aad4d5 | |
| parent | 1f0e1785ee2235ec04042a2ac86d5248a615d706 (diff) | |
| download | emacs-6b31e6b1ec3bc8b69c522dcabe0bf1e2eab03710.tar.gz emacs-6b31e6b1ec3bc8b69c522dcabe0bf1e2eab03710.zip | |
* lisp/textmodes/reftex-parse.el (reftex--index-tags): Rename `index-tags'.
Move declaration before first use.
(reftex-move-to-next-arg): Silence compiler warning.
| -rw-r--r-- | lisp/ChangeLog | 22 | ||||
| -rw-r--r-- | lisp/textmodes/reftex-parse.el | 21 |
2 files changed, 25 insertions, 18 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e428019139b..418a586b220 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,7 +1,13 @@ | |||
| 1 | 2014-04-04 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * textmodes/reftex-parse.el (reftex--index-tags): Rename `index-tags'. | ||
| 4 | Move declaration before first use. | ||
| 5 | (reftex-move-to-next-arg): Silence compiler warning. | ||
| 6 | |||
| 1 | 2014-04-04 Joost Kremers <joostkremers@fastmail.fm> (tiny change) | 7 | 2014-04-04 Joost Kremers <joostkremers@fastmail.fm> (tiny change) |
| 2 | 8 | ||
| 3 | * textmodes/reftex-toc.el (reftex-toc, reftex-re-enlarge): Use | 9 | * textmodes/reftex-toc.el (reftex-toc, reftex-re-enlarge): |
| 4 | `window-total-width' instead of `window-width'. | 10 | Use `window-total-width' instead of `window-width'. |
| 5 | 11 | ||
| 6 | 2014-04-03 Daniel Colascione <dancol@dancol.org> | 12 | 2014-04-03 Daniel Colascione <dancol@dancol.org> |
| 7 | 13 | ||
| @@ -38,8 +44,8 @@ | |||
| 38 | 44 | ||
| 39 | 2014-04-02 João Távora <joaotavora@gmail.com> | 45 | 2014-04-02 João Távora <joaotavora@gmail.com> |
| 40 | 46 | ||
| 41 | * elec-pair.el (electric-pair-inhibit-if-helps-balance): Inhibit | 47 | * elec-pair.el (electric-pair-inhibit-if-helps-balance): |
| 42 | quote pairing if point-max is inside an unterminated string. | 48 | Inhibit quote pairing if point-max is inside an unterminated string. |
| 43 | (electric-pair--looking-at-unterminated-string-p): | 49 | (electric-pair--looking-at-unterminated-string-p): |
| 44 | Delete. | 50 | Delete. |
| 45 | (electric-pair--in-unterminated-string-p): New function. | 51 | (electric-pair--in-unterminated-string-p): New function. |
| @@ -51,8 +57,8 @@ | |||
| 51 | 57 | ||
| 52 | 2014-03-31 Leo Liu <sdl.web@gmail.com> | 58 | 2014-03-31 Leo Liu <sdl.web@gmail.com> |
| 53 | 59 | ||
| 54 | * emacs-lisp/eldoc.el (eldoc-print-current-symbol-info): Refactor | 60 | * emacs-lisp/eldoc.el (eldoc-print-current-symbol-info): |
| 55 | out eldoc-documentation-function-default. | 61 | Refactor out eldoc-documentation-function-default. |
| 56 | (eldoc-documentation-function-default): New function. | 62 | (eldoc-documentation-function-default): New function. |
| 57 | (eldoc-documentation-function): Change value. | 63 | (eldoc-documentation-function): Change value. |
| 58 | 64 | ||
| @@ -87,8 +93,8 @@ | |||
| 87 | 93 | ||
| 88 | 2014-03-30 Daniel Colascione <dancol@dancol.org> | 94 | 2014-03-30 Daniel Colascione <dancol@dancol.org> |
| 89 | 95 | ||
| 90 | * comint.el (comint-send-input): Deactivate | 96 | * comint.el (comint-send-input): |
| 91 | completion-in-region-mode before we send comint input. | 97 | Deactivate completion-in-region-mode before we send comint input. |
| 92 | (Bug#17139). | 98 | (Bug#17139). |
| 93 | 99 | ||
| 94 | * simple.el (keyboard-quit): Deactivate completion-in-region-mode | 100 | * simple.el (keyboard-quit): Deactivate completion-in-region-mode |
diff --git a/lisp/textmodes/reftex-parse.el b/lisp/textmodes/reftex-parse.el index b5508f4b8d0..25bce076cbc 100644 --- a/lisp/textmodes/reftex-parse.el +++ b/lisp/textmodes/reftex-parse.el | |||
| @@ -50,6 +50,8 @@ | |||
| 50 | (interactive) | 50 | (interactive) |
| 51 | (reftex-access-scan-info '(16))) | 51 | (reftex-access-scan-info '(16))) |
| 52 | 52 | ||
| 53 | (defvar reftex--index-tags) | ||
| 54 | |||
| 53 | ;;;###autoload | 55 | ;;;###autoload |
| 54 | (defun reftex-do-parse (rescan &optional file) | 56 | (defun reftex-do-parse (rescan &optional file) |
| 55 | "Do a document rescan. | 57 | "Do a document rescan. |
| @@ -75,7 +77,7 @@ When allowed, do only a partial scan from FILE." | |||
| 75 | (file (or file (buffer-file-name))) | 77 | (file (or file (buffer-file-name))) |
| 76 | (true-file (file-truename file)) | 78 | (true-file (file-truename file)) |
| 77 | (bibview-cache (assq 'bibview-cache old-list)) | 79 | (bibview-cache (assq 'bibview-cache old-list)) |
| 78 | (index-tags (cdr (assq 'index-tags old-list))) | 80 | (reftex--index-tags (cdr (assq 'index-tags old-list))) |
| 79 | from-file appendix docstruct tmp) | 81 | from-file appendix docstruct tmp) |
| 80 | 82 | ||
| 81 | ;; Make sure replacement is really an option here | 83 | ;; Make sure replacement is really an option here |
| @@ -95,7 +97,7 @@ When allowed, do only a partial scan from FILE." | |||
| 95 | (t (error "This should not happen (reftex-do-parse)")))) | 97 | (t (error "This should not happen (reftex-do-parse)")))) |
| 96 | 98 | ||
| 97 | ;; Reset index-tags if we scan everything | 99 | ;; Reset index-tags if we scan everything |
| 98 | (if (equal rescan 1) (setq index-tags nil)) | 100 | (if (equal rescan 1) (setq reftex--index-tags nil)) |
| 99 | 101 | ||
| 100 | ;; Find active toc entry and initialize section-numbers | 102 | ;; Find active toc entry and initialize section-numbers |
| 101 | (setq reftex-active-toc (reftex-last-assoc-before-elt | 103 | (setq reftex-active-toc (reftex-last-assoc-before-elt |
| @@ -140,11 +142,12 @@ When allowed, do only a partial scan from FILE." | |||
| 140 | (entry (or (assq 'is-multi docstruct) | 142 | (entry (or (assq 'is-multi docstruct) |
| 141 | (car (push (list 'is-multi is-multi) docstruct))))) | 143 | (car (push (list 'is-multi is-multi) docstruct))))) |
| 142 | (setcdr entry (cons is-multi nil))) | 144 | (setcdr entry (cons is-multi nil))) |
| 143 | (and index-tags (setq index-tags (sort index-tags 'string<))) | 145 | (and reftex--index-tags |
| 146 | (setq reftex--index-tags (sort reftex--index-tags 'string<))) | ||
| 144 | (let ((index-tag-cell (assq 'index-tags docstruct))) | 147 | (let ((index-tag-cell (assq 'index-tags docstruct))) |
| 145 | (if index-tag-cell | 148 | (if index-tag-cell |
| 146 | (setcdr index-tag-cell index-tags) | 149 | (setcdr index-tag-cell reftex--index-tags) |
| 147 | (push (cons 'index-tags index-tags) docstruct))) | 150 | (push (cons 'index-tags reftex--index-tags) docstruct))) |
| 148 | (unless (assq 'xr docstruct) | 151 | (unless (assq 'xr docstruct) |
| 149 | (let* ((allxr (reftex-all-assq 'xr-doc docstruct)) | 152 | (let* ((allxr (reftex-all-assq 'xr-doc docstruct)) |
| 150 | (alist (mapcar | 153 | (alist (mapcar |
| @@ -194,8 +197,6 @@ of master file." | |||
| 194 | (nreverse file-list))) | 197 | (nreverse file-list))) |
| 195 | 198 | ||
| 196 | ;; Bound in the caller, reftex-do-parse. | 199 | ;; Bound in the caller, reftex-do-parse. |
| 197 | (defvar index-tags) | ||
| 198 | |||
| 199 | (defun reftex-parse-from-file (file docstruct master-dir) | 200 | (defun reftex-parse-from-file (file docstruct master-dir) |
| 200 | "Scan the buffer for labels and save them in a list." | 201 | "Scan the buffer for labels and save them in a list." |
| 201 | (let ((regexp (reftex-everything-regexp)) | 202 | (let ((regexp (reftex-everything-regexp)) |
| @@ -305,7 +306,7 @@ of master file." | |||
| 305 | (when reftex-support-index | 306 | (when reftex-support-index |
| 306 | (setq index-entry (reftex-index-info file)) | 307 | (setq index-entry (reftex-index-info file)) |
| 307 | (when index-entry | 308 | (when index-entry |
| 308 | (add-to-list 'index-tags (nth 1 index-entry)) | 309 | (add-to-list 'reftex--index-tags (nth 1 index-entry)) |
| 309 | (push index-entry docstruct)))) | 310 | (push index-entry docstruct)))) |
| 310 | 311 | ||
| 311 | ((match-end 11) | 312 | ((match-end 11) |
| @@ -772,7 +773,7 @@ if the information is exact (t) or approximate (nil)." | |||
| 772 | ;; Index entry | 773 | ;; Index entry |
| 773 | (and reftex-support-index | 774 | (and reftex-support-index |
| 774 | (setq entry (reftex-index-info-safe buffer-file-name)) | 775 | (setq entry (reftex-index-info-safe buffer-file-name)) |
| 775 | ;; FIXME: (add-to-list 'index-tags (nth 1 index-entry)) | 776 | ;; FIXME: (add-to-list 'reftex--index-tags (nth 1 index-entry)) |
| 776 | (push entry (cdr tail)))))))))) | 777 | (push entry (cdr tail)))))))))) |
| 777 | 778 | ||
| 778 | (error nil)) | 779 | (error nil)) |
| @@ -942,7 +943,7 @@ If WHICH is a list of environments, look only for those environments and | |||
| 942 | specials | 943 | specials |
| 943 | (car specials)))))) | 944 | (car specials)))))) |
| 944 | 945 | ||
| 945 | (defsubst reftex-move-to-next-arg (&optional ignore) | 946 | (defsubst reftex-move-to-next-arg (&optional _ignore) |
| 946 | "Assuming that we are at the end of a macro name or a macro argument, | 947 | "Assuming that we are at the end of a macro name or a macro argument, |
| 947 | move forward to the opening parenthesis of the next argument. | 948 | move forward to the opening parenthesis of the next argument. |
| 948 | This function understands the splitting of macros over several lines | 949 | This function understands the splitting of macros over several lines |