[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master cc00f17 16/23: Fix keymap bug. Fix Bruce-Connor/smart-mode
From: |
Artur Malabarba |
Subject: |
[elpa] master cc00f17 16/23: Fix keymap bug. Fix Bruce-Connor/smart-mode-line#105 |
Date: |
Wed, 30 Sep 2015 12:16:02 +0000 |
branch: master
commit cc00f170c52c4db12976f9ef1c46c187b64f6638
Author: Artur Malabarba <address@hidden>
Commit: Artur Malabarba <address@hidden>
Fix keymap bug. Fix Bruce-Connor/smart-mode-line#105
---
rich-minority.el | 57 ++++++++++++++++++------------------------------------
1 files changed, 19 insertions(+), 38 deletions(-)
diff --git a/rich-minority.el b/rich-minority.el
index 6affeaf..1a3ae64 100644
--- a/rich-minority.el
+++ b/rich-minority.el
@@ -5,7 +5,7 @@
;; Author: Artur Malabarba <address@hidden>
;; URL: http://github.com/Bruce-Connor/rich-minority
;; Package-Requires: ((cl-lib "0.5"))
-;; Version: 0.1.1
+;; Version: 0.2
;; Keywords: mode-line faces
;; Prefix: rm
;; Separator: -
@@ -57,10 +57,13 @@
;; ╭────
;; │ (require 'rich-minority)
;; ╰────
-
+;;; Change Log:
+;; 0.2 - 2014/12/25 - Fix keymap bug.
+
+;;; Code:
(require 'cl-lib)
-(defconst rich-minority-version "0.1.1")
+(defconst rich-minority-version "0.2")
(defun rm-bug-report ()
"Opens github issues page in a web browser. Please send any bugs you find.
@@ -158,14 +161,13 @@ These properties take priority over those defined in
;;;###autoload
(defun rm--mode-list-as-string-list ()
"Return `minor-mode-list' as a simple list of strings."
- (let ((full-list (remove "" (mapcar #'format-mode-line minor-mode-alist))))
+ (let ((full-list (delete "" (mapcar #'format-mode-line minor-mode-alist))))
(setq rm--help-echo
(format "Full list:\n %s\n\n%s"
- (mapconcat 'identity full-list "\n ")
- rm--help-echo-bottom))
+ (mapconcat 'identity full-list "\n ")
+ rm--help-echo-bottom))
(mapcar #'rm--propertize
- (rm--remove-hidden-modes
- full-list))))
+ (rm--remove-hidden-modes full-list))))
(defvar-local rm--help-echo nil
"Used to set the help-echo string dynamically.")
@@ -173,7 +175,7 @@ These properties take priority over those defined in
(defcustom rm-base-text-properties
'('help-echo 'rm--help-echo
'mouse-face 'mode-line-highlight
- 'local-map 'mode-line-minor-mode-keymap)
+ 'local-map mode-line-minor-mode-keymap)
"List of text propeties to apply to every minor mode."
:type '(repeat sexp)
:group 'rich-minority
@@ -200,19 +202,19 @@ These properties take priority over those defined in
(setq out
(remove nil
(mapcar
- (lambda (x) (unless (and (stringp x)
- (funcall pred x rm-excluded-modes))
- x))
- out))))
+ (lambda (x) (unless (and (stringp x)
+ (funcall pred x rm-excluded-modes))
+ x))
+ out))))
(when rm-included-modes
(setq pred (if (listp rm-included-modes) #'member #'rm--string-match))
(setq out
(remove nil
(mapcar
- (lambda (x) (unless (and (stringp x)
- (null (funcall pred x
rm-included-modes)))
- x))
- out))))
+ (lambda (x) (unless (and (stringp x)
+ (null (funcall pred x
rm-included-modes)))
+ x))
+ out))))
out))
(defun rm--string-match (string regexp)
@@ -259,24 +261,3 @@ These properties take priority over those defined in
(provide 'rich-minority)
;;; rich-minority.el ends here
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- [elpa] master updated (a727eab -> 38cb49d), Artur Malabarba, 2015/10/08
- [elpa] master 983d5fa 02/23: File created and working, Artur Malabarba, 2015/10/08
- [elpa] master 10f8aaf 19/23: Stop using obsolete variables. Fix #8, Artur Malabarba, 2015/10/08
- [elpa] master 7b07cce 18/23: Readme improvements, Artur Malabarba, 2015/10/08
- [elpa] master cc00f17 16/23: Fix keymap bug. Fix Bruce-Connor/smart-mode-line#105,
Artur Malabarba <=
- [elpa] master 87c40ea 06/23: In-file doc, Artur Malabarba, 2015/10/08
- [elpa] master 2c8e195 05/23: Implemented the actual minor mode, Artur Malabarba, 2015/10/08
- [elpa] master 4614c55 14/23: Define rich-minority-version, Artur Malabarba, 2015/10/08
- [elpa] master 3b2ead3 12/23: Add comparison to Diminish., Artur Malabarba, 2015/10/08
- [elpa] master bde4f6f 20/23: Fix a bytecomp warning, Artur Malabarba, 2015/10/08
- [elpa] master d2c5a18 03/23: Better documentation and simplified logic, Artur Malabarba, 2015/10/08
- [elpa] master ac66dbd 10/23: Fix bug with rm-included-modes not working., Artur Malabarba, 2015/10/08
- [elpa] master e02f1f2 08/23: Add cl-lib dependency, Artur Malabarba, 2015/10/08
- [elpa] master 49083a0 09/23: No error if using sml., Artur Malabarba, 2015/10/08
- [elpa] master a3611ad 13/23: Expand on the comparison to Diminish., Artur Malabarba, 2015/10/08