[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/compat f4c0979 92/99: Prevent shadowing declarations in
From: |
ELPA Syncer |
Subject: |
[elpa] externals/compat f4c0979 92/99: Prevent shadowing declarations in functional compatibility code |
Date: |
Sun, 17 Oct 2021 05:58:03 -0400 (EDT) |
branch: externals/compat
commit f4c0979e411bf572fab9b071fc7584bb98a1feec
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>
Prevent shadowing declarations in functional compatibility code
Previously the advice check inserted a redundant nil at the beginning
of every function or macro definition. This prevented defun/defmacro
from parsing any declare hints.
---
compat-macs.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/compat-macs.el b/compat-macs.el
index 41dc3da..f8d0c65 100644
--- a/compat-macs.el
+++ b/compat-macs.el
@@ -145,9 +145,9 @@ attributes (see `compat-generate-common')."
;; Advice may use the implicit variable `oldfun', but
;; to avoid triggering the byte compiler, we make
;; sure the argument is used at least once.
- ,(and (eq type 'advice) '(ignore oldfun))
- ;; Insert the actual body now.
- ,@body))
+ ,@(if (eq type 'advice)
+ (cons '(ignore oldfun) body)
+ body)))
(lambda (realname version)
(cond
((memq type '(func macro))
- [elpa] externals/compat 5cd751b 68/99: Mention GitHub issue tracker in README, (continued)
- [elpa] externals/compat 5cd751b 68/99: Mention GitHub issue tracker in README, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 598a040 69/99: Add :cond check to lookup-key, ELPA Syncer, 2021/10/17
- [elpa] externals/compat b16122b 71/99: Use explicit symbol names instead of alii, ELPA Syncer, 2021/10/17
- [elpa] externals/compat a7d9649 72/99: Manually advise functions when nadvice is not available, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 904d660 74/99: Add documentation to manual advice wrapper, ELPA Syncer, 2021/10/17
- [elpa] externals/compat e689153 76/99: Merge compile and run into one GitHub Action job, ELPA Syncer, 2021/10/17
- [elpa] externals/compat c37e1d1 80/99: Fix quoting in compat-macs' legacy advice installation, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 18c2bf9 83/99: Autoload advised functions is necessary, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 50767a8 90/99: Load deferred code even if file doesn't exist, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 2bb6c10 91/99: Check if function is bound before extracting documentation, ELPA Syncer, 2021/10/17
- [elpa] externals/compat f4c0979 92/99: Prevent shadowing declarations in functional compatibility code,
ELPA Syncer <=
- [elpa] externals/compat 3257cf6 93/99: Implement TCO for named-let, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 347f5a8 94/99: Change version suffix to -rc, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 25879c7 95/99: Require instead of loading compat-*.el files, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 5506770 99/99: Update .elpaignore, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 084f18c 73/99: Declare compat functions used in file-name-with-extension, ELPA Syncer, 2021/10/17
- [elpa] externals/compat db218d0 79/99: Handle top-level JSON objects in Emacs 27.x, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 8981d4b 85/99: Handle multiple signals in string-replace test case, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 8ea6272 86/99: Add define-error compatibility function, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 5d5b215 87/99: Factor out issue with should-error in Emacs 24.3, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 93cee71 88/99: Generate a docstring for manual compatibility advice, ELPA Syncer, 2021/10/17