diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-emacs/css-mode/files | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'app-emacs/css-mode/files')
-rw-r--r-- | app-emacs/css-mode/files/50css-mode-gentoo.el | 3 | ||||
-rw-r--r-- | app-emacs/css-mode/files/css-mode-0.11-no-compat-kbd.patch | 24 |
2 files changed, 27 insertions, 0 deletions
diff --git a/app-emacs/css-mode/files/50css-mode-gentoo.el b/app-emacs/css-mode/files/50css-mode-gentoo.el new file mode 100644 index 000000000000..8559be036db5 --- /dev/null +++ b/app-emacs/css-mode/files/50css-mode-gentoo.el @@ -0,0 +1,3 @@ +(add-to-list 'load-path "@SITELISP@") +(add-to-list 'auto-mode-alist '("\\.css\\'" . css-mode)) +(autoload 'css-mode "css-mode" "Mode for editing Cascading Style Sheets" t) diff --git a/app-emacs/css-mode/files/css-mode-0.11-no-compat-kbd.patch b/app-emacs/css-mode/files/css-mode-0.11-no-compat-kbd.patch new file mode 100644 index 000000000000..858cb238bf3c --- /dev/null +++ b/app-emacs/css-mode/files/css-mode-0.11-no-compat-kbd.patch @@ -0,0 +1,24 @@ +Function "apropos-macrop" apparently no longer exists in Emacs 24.4. +Simply remove the code using it, since it was only needed for backwards +compatibility with Emacs 19 (the "kbd" macro appeared in Emacs 20.1). +https://bugs.gentoo.org/532358 + +--- css-mode-0.11-orig/css-mode.el ++++ css-mode-0.11/css-mode.el +@@ -166,16 +166,6 @@ + (define-key cssm-mode-map (read-kbd-macro "}") 'cssm-insert-right-brace-and-indent) + (define-key cssm-mode-map (read-kbd-macro "M-TAB") 'cssm-complete-property)) + +-;;; Cross-version compatibility layer +- +-(when (not (or (apropos-macrop 'kbd) +- (fboundp 'kbd))) +- (defmacro kbd (keys) +- "Convert KEYS to the internal Emacs key representation. +-KEYS should be a string constant in the format used for +-saving keyboard macros (see `insert-kbd-macro')." +- (read-kbd-macro keys))) +- + ;;; Auto-indentation support + + ; internal |