[gnus git] branch master updated: m0-13-121-ge8d10e2 =1= gmm-utils.el (defcustom): Ignore :risky keyword under XEmacs
Katsumi Yamaoka <[email protected]> Mon, 01 Feb 2016 02:39:58 +0100
| Newsgroups | gmane.emacs.gnus.cvs |
|---|---|
| Message-ID | <[email protected]> |
via e8d10e280d164ea43acc4a1254b2fba9ef99033d (commit)
from 0ddd465ebf3af16091533771f836a3208a9f1f74 (commit)
- Log -----------------------------------------------------------------
commit e8d10e280d164ea43acc4a1254b2fba9ef99033d
Author: Katsumi Yamaoka <[email protected]>
Date: Mon Feb 1 01:39:29 2016 +0000
gmm-utils.el (defcustom): Ignore :risky keyword under XEmacs
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 6969181..e6e0b49 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
+2016-02-01 Katsumi Yamaoka <[email protected]>
+
+ * gmm-utils.el (defcustom): Ignore :risky keyword under XEmacs.
+
2016-01-30 Glenn Morris <[email protected]>
* message.el (message-deletable-headers, message-signature):
diff --git a/lisp/gmm-utils.el b/lisp/gmm-utils.el
index fd9dcbd..1d7c920 100644
--- a/lisp/gmm-utils.el
+++ b/lisp/gmm-utils.el
@@ -34,6 +34,23 @@
:version "22.1" ;; Gnus 5.10.9
:group 'lisp)
+(eval-and-compile
+ (condition-case nil
+ (progn
+ (custom-declare-variable 'gnustest-risky-var nil "" :risky t)
+ (makunbound 'gnustest-risky-var))
+ (error
+ (defadvice custom-declare-variable (before
+ ignore-risky-keyword
+ (symbol default doc &rest args)
+ activate)
+ "Ignore :risky keyword."
+ (let ((risk (memq :risky args)))
+ (if (eq risk args)
+ (setq args (cddr args))
+ (setcdr (nthcdr (- (length args) (length risk) 1) args)
+ (cddr risk))))))))
+
;; Helper functions from `gnus-utils.el': gmm-verbose, gmm-message, gmm-error
(defcustom gmm-verbose 7
-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.
Summary of changes:
lisp/ChangeLog | 4 ++++
lisp/gmm-utils.el | 17 +++++++++++++++++
2 files changed, 21 insertions(+)
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".
The branch, master has been updated
hooks/post-receive
--
Gnus Project