(setq dlist (reftex-uniquify-by-car dlist))
(if (null dlist) (error "No duplicate labels in document"))
(switch-to-buffer-other-window "*Duplicate Labels*")
- (set (make-local-variable 'TeX-master) master)
+ (setq-local TeX-master master)
(erase-buffer)
(insert " MULTIPLE LABELS IN CURRENT DOCUMENT:\n")
(insert
(with-current-buffer crt-buf
(when reftex-mode
(if (boundp 'multi-isearch-next-buffer-function)
- (set (make-local-variable
- 'multi-isearch-next-buffer-function)
- #'reftex-isearch-switch-to-next-file)
- (set (make-local-variable 'isearch-wrap-function)
- #'reftex-isearch-wrap-function)
- (set (make-local-variable 'isearch-search-fun-function)
- (lambda () #'reftex-isearch-isearch-search))
- (set (make-local-variable 'isearch-push-state-function)
- #'reftex-isearch-push-state-function)
- (set (make-local-variable 'isearch-next-buffer-function)
- #'reftex-isearch-switch-to-next-file))
+ (setq-local multi-isearch-next-buffer-function
+ #'reftex-isearch-switch-to-next-file)
+ (setq-local isearch-wrap-function
+ #'reftex-isearch-wrap-function)
+ (setq-local isearch-search-fun-function
+ (lambda () #'reftex-isearch-isearch-search))
+ (setq-local isearch-push-state-function
+ #'reftex-isearch-push-state-function)
+ (setq-local isearch-next-buffer-function
+ #'reftex-isearch-switch-to-next-file))
(setq reftex-isearch-minor-mode t))))
(add-hook 'reftex-mode-hook #'reftex-isearch-minor-mode))
(dolist (crt-buf (buffer-list))
Here are all local bindings.
\\{reftex-index-mode-map}"
- (set (make-local-variable 'revert-buffer-function) #'reftex-index-revert)
- (set (make-local-variable 'reftex-index-restriction-data) nil)
- (set (make-local-variable 'reftex-index-restriction-indicator) nil)
+ (setq-local revert-buffer-function #'reftex-index-revert)
+ (setq-local reftex-index-restriction-data nil)
+ (setq-local reftex-index-restriction-indicator nil)
(setq mode-line-format
(list "---- " 'mode-line-buffer-identification
" " 'global-mode-string
;; If the buffer is currently restricted, empty it to force update.
(when reftex-index-restriction-data
(reftex-erase-buffer))
- (set (make-local-variable 'reftex-last-index-file) calling-file)
- (set (make-local-variable 'reftex-index-tag) index-tag)
- (set (make-local-variable 'reftex-docstruct-symbol) docstruct-symbol)
+ (setq-local reftex-last-index-file calling-file)
+ (setq-local reftex-index-tag index-tag)
+ (setq-local reftex-docstruct-symbol docstruct-symbol)
(if restriction
(setq reftex-index-restriction-indicator (car restriction)
reftex-index-restriction-data (cdr restriction))
(lambda (a _b) (equal (car a) default-macro))))
macro entry key repeat)
- (if master (set (make-local-variable 'TeX-master)
- (file-name-nondirectory master)))
+ (when master (setq-local TeX-master (file-name-nondirectory master)))
(when (> (buffer-size) 0)
(goto-char 1)
\\{reftex-index-phrases-mode-map}"
:syntax-table reftex-index-phrases-syntax-table
- (set (make-local-variable 'font-lock-defaults)
- reftex-index-phrases-font-lock-defaults)
- (set (make-local-variable 'reftex-index-phrases-marker) (make-marker)))
+ (setq-local font-lock-defaults
+ reftex-index-phrases-font-lock-defaults)
+ (setq-local reftex-index-phrases-marker (make-marker)))
;; (add-hook 'reftex-index-phrases-mode-hook #'turn-on-font-lock)
(defun reftex-index-next-phrase (&optional arg)
During a selection process, these are the local bindings.
\\{reftex-select-label-mode-map}"
- (set (make-local-variable 'reftex-select-marked) nil)
+ (setq-local reftex-select-marked nil)
(when (syntax-table-p reftex-latex-syntax-table)
(set-syntax-table reftex-latex-syntax-table))
;; We do not set a local map - reftex-select-item does this.
During a selection process, these are the local bindings.
\\{reftex-select-label-mode-map}"
- (set (make-local-variable 'reftex-select-marked) nil)
+ (setq-local reftex-select-marked nil)
;; We do not set a local map - reftex-select-item does this.
)
(concat "\\`" (regexp-quote
(file-name-directory (reftex-TeX-master-file))))))
- (set (make-local-variable 'reftex-docstruct-symbol) docstruct-symbol)
- (set (make-local-variable 'reftex-prefix)
- (cdr (assoc labels reftex-typekey-to-prefix-alist)))
+ (setq-local reftex-docstruct-symbol docstruct-symbol)
+ (setq-local reftex-prefix
+ (cdr (assoc labels reftex-typekey-to-prefix-alist)))
(if (equal reftex-prefix " ") (setq reftex-prefix nil))
;; Walk the docstruct and insert the appropriate stuff
(reftex-find-start-point
(point-min) offset reftex-last-data reftex-last-line)
(beginning-of-line 1)
- (set (make-local-variable 'reftex-last-follow-point) (point))
+ (setq-local reftex-last-follow-point (point))
(unwind-protect
(progn
(mapc (lambda (c) (delete-overlay (nth 1 c)))
reftex-select-marked)))))
- (set (make-local-variable 'reftex-last-line)
- (+ (count-lines (point-min) (point)) (if (bolp) 1 0)))
- (set (make-local-variable 'reftex-last-data) reftex--last-data)
+ (setq-local reftex-last-line
+ (+ (count-lines (point-min) (point)) (if (bolp) 1 0)))
+ (setq-local reftex-last-data reftex--last-data)
(reftex-kill-buffer "*RefTeX Help*")
(setq reftex-callback-fwd (not reftex-callback-fwd)) ;; ;-)))
(message "")
;;; reftex-toc.el --- RefTeX's table of contents mode -*- lexical-binding: t; -*-
-;; Copyright (C) 1997-2000, 2003-2024 Free Software Foundation, Inc.
+;; Copyright (C) 1997-2024 Free Software Foundation, Inc.
;; Author: Carsten Dominik <dominik@science.uva.nl>
;; Maintainer: auctex-devel@gnu.org
Here are all local bindings.
\\{reftex-toc-mode-map}"
- (set (make-local-variable 'transient-mark-mode) t)
- (set (make-local-variable 'revert-buffer-function) #'reftex-toc-revert)
- (set (make-local-variable 'reftex-toc-include-labels-indicator) "")
- (set (make-local-variable 'reftex-toc-max-level-indicator)
- (if (= reftex-toc-max-level 100)
- "ALL"
- (int-to-string reftex-toc-max-level)))
+ (setq-local transient-mark-mode t)
+ (setq-local revert-buffer-function #'reftex-toc-revert)
+ (setq-local reftex-toc-include-labels-indicator "")
+ (setq-local reftex-toc-max-level-indicator
+ (if (= reftex-toc-max-level 100)
+ "ALL"
+ (int-to-string reftex-toc-max-level)))
(setq mode-line-format
(list "---- " 'mode-line-buffer-identification
" " 'global-mode-string " (" mode-name ")"
(switch-to-buffer "*toc*"))
(or (eq major-mode 'reftex-toc-mode) (reftex-toc-mode))
- (set (make-local-variable 'reftex-docstruct-symbol) docstruct-symbol)
+ (setq-local reftex-docstruct-symbol docstruct-symbol)
(setq reftex-toc-include-labels-indicator
(if (eq reftex-toc-include-labels t)
"ALL"
;;; reftex.el --- minor mode for doing \label, \ref, \cite, \index in LaTeX -*- lexical-binding: t; -*-
-;; Copyright (C) 1997-2000, 2003-2024 Free Software Foundation, Inc.
+;; Copyright (C) 1997-2024 Free Software Foundation, Inc.
;; Author: Carsten Dominik <dominik@science.uva.nl>
;; Maintainer: auctex-devel@gnu.org
;; of font-lock)
(rename-buffer newname t)
;; Good: we have the indirection functions
- (set (make-local-variable 'font-lock-fontify-region-function)
- #'reftex-select-font-lock-fontify-region)
+ (setq-local font-lock-fontify-region-function
+ #'reftex-select-font-lock-fontify-region)
(let ((major-mode 'latex-mode))
(font-lock-mode 1)))
(rename-buffer oldname))))