[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex 400b002 28/80: Remove obsolete codes
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex 400b002 28/80: Remove obsolete codes |
Date: |
Wed, 16 Oct 2019 11:07:11 -0400 (EDT) |
branch: externals/auctex
commit 400b0027a5cd3bd6c01f28ff97d55d9de9225863
Author: Ikumi Keita <address@hidden>
Commit: Ikumi Keita <address@hidden>
Remove obsolete codes
* preview.el.in (preview-mouse-open-eps): Remove xemacs compatibility
code.
Don't use obsolete variable `default-major-mode'.
---
preview.el.in | 17 +++++++----------
1 file changed, 7 insertions(+), 10 deletions(-)
diff --git a/preview.el.in b/preview.el.in
index 8748c8f..3134232 100644
--- a/preview.el.in
+++ b/preview.el.in
@@ -1149,25 +1149,22 @@ for the file extension."
(defun preview-mouse-open-eps (file &optional position)
"Display eps FILE in a view buffer on click.
Place point at POSITION, else beginning of file."
- (let ((default-major-mode
+ (let ((default-mode
;; FIXME: Yuck! Just arrange for the file name to have the right
;; extension instead!
- (or
- (assoc-default "x.ps" auto-mode-alist #'string-match)
- (default-value 'major-mode)))
+ (assoc-default "x.ps" auto-mode-alist #'string-match))
(buff (get-file-buffer file)))
(save-excursion
(if buff
(pop-to-buffer buff)
(view-file-other-window file))
+ (if (and (eq major-mode (default-value 'major-mode))
+ default-mode)
+ (funcall default-mode))
(goto-char (or position (point-min)))
- (if (eq major-mode 'ps-mode) ; Bundled with GNU Emacs
- (message "%s" (substitute-command-keys "\
+ (message "%s" (substitute-command-keys "\
Try \\[ps-run-start] \\[ps-run-buffer] and \
-\\<ps-run-mode-map>\\[ps-run-mouse-goto-error] on error offset." )))
- (if (eq major-mode 'postscript-mode) ; Bundled with XEmacs, limited
- (message "%s" (substitute-command-keys "\
-Try \\[ps-shell] and \\[ps-execute-buffer]."))))))
+\\<ps-run-mode-map>\\[ps-run-mouse-goto-error] on error offset.")))))
(defun preview-gs-flag-error (ov err)
"Make an eps error flag in overlay OV for ERR string."
- [elpa] externals/auctex 1b6e513 22/80: ; Use `LaTeX-extract-key-value-label', (continued)
- [elpa] externals/auctex 1b6e513 22/80: ; Use `LaTeX-extract-key-value-label', Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 5592f7d 17/80: Reset `TeX-PDF-from-DVI' if xetex engine is in use, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex a9eb155 37/80: Fix regression, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex af15814 42/80: ; * style/babel.el: Fix typo, remove code remainder., Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 5208d91 50/80: Enhance support for file names with spaces, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 1a83f1b 09/80: ; Remove `eval-when-compile' for latex.el, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex ddd7894 20/80: ; Fix last commit, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex c92251c 36/80: Load hyperref.el in `LaTeX-beamer-class-options', Tassilo Horn, 2019/10/16
- [elpa] externals/auctex d4660dd 18/80: * style/xparse.el ("xparse"): Fix fontification of alternatives., Tassilo Horn, 2019/10/16
- [elpa] externals/auctex b62181c 29/80: ; Remove unused code fragment, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 400b002 28/80: Remove obsolete codes,
Tassilo Horn <=
- [elpa] externals/auctex 0cc2578 39/80: ; Use the correct variable `LaTeX-fontspec-font-features', Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 945ffaf 40/80: Update style/babel.el to package version 3.31, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 36d06e2 44/80: ; * tests/latex/preview-latex-test.el: Fix typo., Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 686366e 48/80: ; Add Emacs 24 compatibility to the previous commit, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 0a9407c 47/80: Conform to `delete-selection-mode' (bug#36385), Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 8530cd0 45/80: Support cleveref labels, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 4a56103 56/80: Reduce unnecessary local variable safety inquiry, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex b7083ee 51/80: Change color adjustment method (bug#35571, bug#35696, bug#36039), Tassilo Horn, 2019/10/16
- [elpa] externals/auctex 43e98f1 55/80: Update style/titlesec.el to package version 2.11, Tassilo Horn, 2019/10/16
- [elpa] externals/auctex f477383 54/80: Update style/thmtools.el to package version 67, Tassilo Horn, 2019/10/16