[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master c42fcb2 286/433: Compatibility fix for mode line format of
From: |
Dmitry Gutov |
Subject: |
[elpa] master c42fcb2 286/433: Compatibility fix for mode line format of Emacs 23 |
Date: |
Thu, 15 Mar 2018 19:44:21 -0400 (EDT) |
branch: master
commit c42fcb2b46d2d80de3351b7e4f39be85289cde9f
Author: Dmitry Gutov <address@hidden>
Commit: Steve Purcell <address@hidden>
Compatibility fix for mode line format of Emacs 23
Patch from https://bugs.gentoo.org/311259?id=311259
---
mmm-utils.el | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/mmm-utils.el b/mmm-utils.el
index 04ef1f4..98abdb8 100644
--- a/mmm-utils.el
+++ b/mmm-utils.el
@@ -78,7 +78,11 @@ substituted for the corresponding REGEXP wherever it
matches."
(save-match-data
(dolist (pair arg-pairs)
(while (string-match (car pair) string)
- (setq string (replace-match (cdr pair) t t string))))))
+ (setq string (replace-match
+ (if (fboundp 'format-mode-line)
+ (format-mode-line (cdr pair))
+ (cdr pair))
+ t t string))))))
string)
(defun mmm-format-matches (string &optional on-string)
- [elpa] master 80134a4 237/433: * mmm-sample.el (jsp): Added jsp-comment submode type., (continued)
- [elpa] master 80134a4 237/433: * mmm-sample.el (jsp): Added jsp-comment submode type., Dmitry Gutov, 2018/03/15
- [elpa] master b571d27 236/433: * FAQ: Don't quote argument to `setq'. :-), Dmitry Gutov, 2018/03/15
- [elpa] master cb27602 221/433: Corrected reference to `javascript' class to `html-js'., Dmitry Gutov, 2018/03/15
- [elpa] master 3c2f878 243/433: # Updated, Dmitry Gutov, 2018/03/15
- [elpa] master d6dc934 203/433: (mmm-here-doc-get-mode): Try each word individually first., Dmitry Gutov, 2018/03/15
- [elpa] master 9b857f5 255/433: Added Noweb documentation (Joe Kelsey), Dmitry Gutov, 2018/03/15
- [elpa] master 6485ce3 259/433: Fixed stupid bug, so autoloading will actually work, Dmitry Gutov, 2018/03/15
- [elpa] master d242111 258/433: *** empty log message ***, Dmitry Gutov, 2018/03/15
- [elpa] master c75f330 317/433: Merge pull request #15 from dgutov/master, Dmitry Gutov, 2018/03/15
- [elpa] master c1997e1 313/433: Revert unintended check-in of mmm-erb changes, Dmitry Gutov, 2018/03/15
- [elpa] master c42fcb2 286/433: Compatibility fix for mode line format of Emacs 23,
Dmitry Gutov <=
- [elpa] master b171ba0 324/433: Merge pull request #17 from dgutov/retro, Dmitry Gutov, 2018/03/15
- [elpa] master 53bd8b4 319/433: Remove duplicate entries, Dmitry Gutov, 2018/03/15
- [elpa] master 5f276a1 307/433: Update instructions and docstrings, Dmitry Gutov, 2018/03/15
- [elpa] master a0b1ecc 320/433: Merge pull request #16 from dgutov/c++-mode, Dmitry Gutov, 2018/03/15
- [elpa] master a5a24df 322/433: Fix the timer error: "Selecting deleted buffer", Dmitry Gutov, 2018/03/15
- [elpa] master 0b30852 244/433: * mmm-vars.el (mmm-c-derived-modes): Added php-mode., Dmitry Gutov, 2018/03/15
- [elpa] master 34c3a19 212/433: Updated mode preferences to check fboundp when regions are created., Dmitry Gutov, 2018/03/15
- [elpa] master 46185e0 232/433: Made C indentation style variables buffer-local., Dmitry Gutov, 2018/03/15
- [elpa] master fee1b52 211/433: Added file with Emacs-related macros from Alan Shutko., Dmitry Gutov, 2018/03/15
- [elpa] master 3c68c28 235/433: * mmm-sample.el (httpd-conf-perl): Added submode class from Rob, Dmitry Gutov, 2018/03/15