[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex 6ccc3d4149 03/11: Remove Emacs 24.3 compat code
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex 6ccc3d4149 03/11: Remove Emacs 24.3 compat code |
Date: |
Tue, 31 Jan 2023 10:41:26 -0500 (EST) |
branch: externals/auctex
commit 6ccc3d41495f5d02ba17547709ece2394f4e9bde
Author: Tassilo Horn <tsdh@gnu.org>
Commit: Tassilo Horn <tsdh@gnu.org>
Remove Emacs 24.3 compat code
* preview.el.in (preview-get-dpi): Remove Emacs 24.3 compat case
introduced with bug#45596.
---
preview.el.in | 26 +++++++++-----------------
1 file changed, 9 insertions(+), 17 deletions(-)
diff --git a/preview.el.in b/preview.el.in
index 5c3279569c..e26f478c93 100644
--- a/preview.el.in
+++ b/preview.el.in
@@ -3628,23 +3628,15 @@ name(\\([^)]+\\))\\)\\|\
(preview-call-hook 'close (car open-data) close-data))))))
(defun preview-get-dpi ()
- ;; TODO: Remove false-case when required emacs version is bumped to
- ;; 24.4 or newer as this is the version where
- ;; `frame-monitor-attributes' has been introduced.
- (if (fboundp 'frame-monitor-attributes)
- (let* ((monitor-attrs (frame-monitor-attributes))
- (mm-dims (cdr (assoc 'mm-size monitor-attrs)))
- (mm-width (nth 0 mm-dims))
- (mm-height (nth 1 mm-dims))
- (pixel-dims (cl-cdddr (assoc 'geometry monitor-attrs)))
- (pixel-width (nth 0 pixel-dims))
- (pixel-height (nth 1 pixel-dims)))
- (cons (/ (* 25.4 pixel-width) mm-width)
- (/ (* 25.4 pixel-height) mm-height)))
- (cons (/ (* 25.4 (display-pixel-width))
- (display-mm-width))
- (/ (* 25.4 (display-pixel-height))
- (display-mm-height)))))
+ (let* ((monitor-attrs (frame-monitor-attributes))
+ (mm-dims (cdr (assoc 'mm-size monitor-attrs)))
+ (mm-width (nth 0 mm-dims))
+ (mm-height (nth 1 mm-dims))
+ (pixel-dims (cl-cdddr (assoc 'geometry monitor-attrs)))
+ (pixel-width (nth 0 pixel-dims))
+ (pixel-height (nth 1 pixel-dims)))
+ (cons (/ (* 25.4 pixel-width) mm-width)
+ (/ (* 25.4 pixel-height) mm-height))))
(defun preview-get-geometry ()
"Transfer display geometry parameters from current display.
- [elpa] externals/auctex updated (ebd714ef81 -> a2a6ab9f22), Tassilo Horn, 2023/01/31
- [elpa] externals/auctex 6ccc3d4149 03/11: Remove Emacs 24.3 compat code,
Tassilo Horn <=
- [elpa] externals/auctex 03885c7627 02/11: Silence compiler warning, Tassilo Horn, 2023/01/31
- [elpa] externals/auctex c2fdf896a6 04/11: * style/multibib.el: Replace `TeX-arg-eval'., Tassilo Horn, 2023/01/31
- [elpa] externals/auctex f5d40daa95 07/11: ; * style/nameref.el ("nameref"): Fix comment., Tassilo Horn, 2023/01/31
- [elpa] externals/auctex adbdce6a27 05/11: Pacify compiler warning, Tassilo Horn, 2023/01/31
- [elpa] externals/auctex edc5e2ff63 09/11: Call Texdoc coherently, Tassilo Horn, 2023/01/31
- [elpa] externals/auctex 3ceb011395 06/11: * style/multido.el ("multido"): Fix query prompt., Tassilo Horn, 2023/01/31
- [elpa] externals/auctex e7379b3fec 01/11: Simplify version and date specification, Tassilo Horn, 2023/01/31
- [elpa] externals/auctex 2bc07b78ff 08/11: Fix `TeX-documentation-texdoc' for okular, Tassilo Horn, 2023/01/31
- [elpa] externals/auctex 38d8561add 10/11: Add a paragraph to Texdoc section in the documentation, Tassilo Horn, 2023/01/31
- [elpa] externals/auctex a2a6ab9f22 11/11: Merge remote-tracking branch 'origin/master' into externals/auctex, Tassilo Horn, 2023/01/31