[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 162/287: Add object-set-name-string compatability with 24.4
From: |
Matthew Fidler |
Subject: |
[elpa] 162/287: Add object-set-name-string compatability with 24.4 |
Date: |
Wed, 02 Jul 2014 14:45:37 +0000 |
mlf176f2 pushed a commit to branch externals/ergoemacs-mode
in repository elpa.
commit a3d72fc570ad7ece0f67bfdac1a5e701b0839b2a
Author: Matthew L. Fidler <address@hidden>
Date: Thu Jun 19 07:16:41 2014 -0500
Add object-set-name-string compatability with 24.4
---
ergoemacs-macros.el | 9 +++++++++
ergoemacs-theme-engine.el | 2 +-
2 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/ergoemacs-macros.el b/ergoemacs-macros.el
index 2204fa9..9aacc49 100644
--- a/ergoemacs-macros.el
+++ b/ergoemacs-macros.el
@@ -336,6 +336,15 @@ DIFFERENCES are the differences from the layout based on
the functions. These a
(<= 4 emacs-minor-version))
'eieio-object-name-string)
(t 'object-name-string)) ,obj))
+
+(defmacro ergoemacs-object-set-name-string (obj name)
+ "Compatability fixes for `object-set-name-string' or
`eieio-object-set-name-string'.
+"
+ `(,(cond
+ ((and (<= 24 emacs-major-version)
+ (<= 4 emacs-minor-version))
+ 'eieio-object-set-name-string)
+ (t 'object-set-name-string)) ,obj ,string))
(provide 'ergoemacs-macros)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; ergoemacs-macros.el ends here
diff --git a/ergoemacs-theme-engine.el b/ergoemacs-theme-engine.el
index 16d472d..d37c85b 100644
--- a/ergoemacs-theme-engine.el
+++ b/ergoemacs-theme-engine.el
@@ -210,7 +210,7 @@ a set type."
(if (not (symbolp new-value))
(signal 'invalid-slot-type
(list obj slot-name 'symbol new-value)))
- (object-set-name-string obj (symbol-name new-value)))
+ (ergoemacs-object-set-name-string obj (symbol-name new-value)))
(t (intern (save-match-data (replace-regexp-in-string "::.*$" ""
(ergoemacs-object-name-string obj)))))))
(t
(call-next-method))))
- [elpa] 151/287: Try to make this a batch test., (continued)
- [elpa] 151/287: Try to make this a batch test., Matthew Fidler, 2014/07/02
- [elpa] 156/287: Try to make compatible with 24.4, Matthew Fidler, 2014/07/02
- [elpa] 158/287: Take out `mark-whole-buffer', Matthew Fidler, 2014/07/02
- [elpa] 155/287: Use :initialize #'custom-initialize-default, Matthew Fidler, 2014/07/02
- [elpa] 157/287: Add ergoemacs fixes for 24.4, Matthew Fidler, 2014/07/02
- [elpa] 163/287: Removed more mark-whole-buffer, Matthew Fidler, 2014/07/02
- [elpa] 159/287: Take out mark-whole-buffer, Matthew Fidler, 2014/07/02
- [elpa] 164/287: Removed saved-overriding-map variable changes., Matthew Fidler, 2014/07/02
- [elpa] 160/287: Fix eieio-object-name-string in emacs 24.4, Matthew Fidler, 2014/07/02
- [elpa] 161/287: Removed check for saved-overriding-map, Matthew Fidler, 2014/07/02
- [elpa] 162/287: Add object-set-name-string compatability with 24.4,
Matthew Fidler <=
- [elpa] 166/287: Misc cleanups, Matthew Fidler, 2014/07/02
- [elpa] 167/287: Remove minibuffer hook, Matthew Fidler, 2014/07/02
- [elpa] 168/287: Declare cl-gensym, Matthew Fidler, 2014/07/02
- [elpa] 170/287: Fix declare-function for cl-gensym, Matthew Fidler, 2014/07/02
- [elpa] 169/287: Declare ergoemacs-read-key-default, Matthew Fidler, 2014/07/02
- [elpa] 171/287: Change define-function to autoload, Matthew Fidler, 2014/07/02
- [elpa] 172/287: Make this a emacs 24.4 autoload only, Matthew Fidler, 2014/07/02
- [elpa] 173/287: Non-conditional autoload at the beginning of the file., Matthew Fidler, 2014/07/02
- [elpa] 176/287: Fix Issue #231, Matthew Fidler, 2014/07/02
- [elpa] 175/287: Change the `describe-mode` to `ergoemacs-describe-major-mode`. That way R will display the correct key to view information (C-h m), Matthew Fidler, 2014/07/02