[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/pdf-tools ce5ed3412d 05/16: Remove macro / function re-def
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/pdf-tools ce5ed3412d 05/16: Remove macro / function re-definitions |
Date: |
Tue, 29 Nov 2022 01:59:29 -0500 (EST) |
branch: elpa/pdf-tools
commit ce5ed3412d016641e1bfce72a1304fd2c303fc1d
Author: Vedang Manerikar <ved.manerikar@gmail.com>
Commit: Vedang Manerikar <ved.manerikar@gmail.com>
Remove macro / function re-definitions
Rely on the functions that come built into Emacs.
Relates to: #26
---
lisp/pdf-util.el | 31 -------------------------------
1 file changed, 31 deletions(-)
diff --git a/lisp/pdf-util.el b/lisp/pdf-util.el
index cfc77d3954..ebf7ccfba5 100644
--- a/lisp/pdf-util.el
+++ b/lisp/pdf-util.el
@@ -43,37 +43,6 @@
;; * Compatibility with older Emacssen (< 25.1)
;; * ================================================================== *
-;; The with-file-modes macro is only available in recent Emacs
-;; versions.
-(eval-when-compile
- (unless (fboundp 'with-file-modes)
- (defmacro with-file-modes (modes &rest body)
- "Execute BODY with default file permissions temporarily set to MODES.
-MODES is as for `set-default-file-modes'."
- (declare (indent 1) (debug t))
- (let ((umask (make-symbol "umask")))
- `(let ((,umask (default-file-modes)))
- (unwind-protect
- (progn
- (set-default-file-modes ,modes)
- ,@body)
- (set-default-file-modes ,umask)))))))
-
-(unless (fboundp 'alist-get) ;;25.1
- (defun alist-get (key alist &optional default remove)
- "Get the value associated to KEY in ALIST.
-DEFAULT is the value to return if KEY is not found in ALIST.
-REMOVE, if non-nil, means that when setting this element, we should
-remove the entry if the new value is `eql' to DEFAULT."
- (ignore remove) ;;Silence byte-compiler.
- (let ((x (assq key alist)))
- (if x (cdr x) default))))
-
-(require 'register)
-(unless (fboundp 'register-read-with-preview)
- (defalias 'register-read-with-preview #'read-char
- "Compatibility alias for pdf-tools."))
-
;; In Emacs 24.3 window-width does not have a PIXELWISE argument.
(defmacro pdf-util-window-pixel-width (&optional window)
"Return the width of WINDOW in pixel."
- [nongnu] elpa/pdf-tools updated (d6980bc327 -> 1885cefc24), ELPA Syncer, 2022/11/29
- [nongnu] elpa/pdf-tools 37b4c4fcec 01/16: Add a byteclean target in the Makefile, ELPA Syncer, 2022/11/29
- [nongnu] elpa/pdf-tools 710fe66dc4 02/16: Explicitly declare documentation files as Org files, ELPA Syncer, 2022/11/29
- [nongnu] elpa/pdf-tools 997467ad3b 15/16: autobuild: Recognize NetBSD and install packages via pkgin, ELPA Syncer, 2022/11/29
- [nongnu] elpa/pdf-tools 5563ac9114 04/16: Remove bugfix for imenu in Emacs 24.3 and below, ELPA Syncer, 2022/11/29
- [nongnu] elpa/pdf-tools 1f91ba8894 09/16: Render crisp images for HiDPI screens by default, ELPA Syncer, 2022/11/29
- [nongnu] elpa/pdf-tools 365d2d8e8e 03/16: Remove guards in `pdf-virtual` tests and code., ELPA Syncer, 2022/11/29
- [nongnu] elpa/pdf-tools 19801defb8 10/16: Add support for Alpine Linux to autobuild, ELPA Syncer, 2022/11/29
- [nongnu] elpa/pdf-tools 1885cefc24 16/16: Merge branch 'feature/emacs-26.3', ELPA Syncer, 2022/11/29
- [nongnu] elpa/pdf-tools 96703b2bb5 14/16: Bump the minimum Emacs version to 26.3! 🎉🤞, ELPA Syncer, 2022/11/29
- [nongnu] elpa/pdf-tools ce5ed3412d 05/16: Remove macro / function re-definitions,
ELPA Syncer <=
- [nongnu] elpa/pdf-tools 05c42596a2 07/16: Remove compatibility function for image-mode-winprops, ELPA Syncer, 2022/11/29
- [nongnu] elpa/pdf-tools 7a51b38310 13/16: Extend docker testing framework to test against Emacs versions, ELPA Syncer, 2022/11/29
- [nongnu] elpa/pdf-tools bc7c159c48 11/16: Make sure pkg-config is correctly set in autobuild, ELPA Syncer, 2022/11/29
- [nongnu] elpa/pdf-tools 3af6141926 06/16: Remove pdf-util-window-pixel-width, fallback to window-body-width, ELPA Syncer, 2022/11/29
- [nongnu] elpa/pdf-tools 321e19ed59 08/16: Remove Emacs 24.4 guards for cua-mode, ELPA Syncer, 2022/11/29
- [nongnu] elpa/pdf-tools e10d9cedad 12/16: Update and cleanup the Install section, ELPA Syncer, 2022/11/29