[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master f0e34d0 185/433: (mmm-apply-class): Rearranged parameters
From: |
Dmitry Gutov |
Subject: |
[elpa] master f0e34d0 185/433: (mmm-apply-class): Rearranged parameters so faces actually work. |
Date: |
Thu, 15 Mar 2018 19:43:59 -0400 (EDT) |
branch: master
commit f0e34d00be01e5e046d68b5c2be02a9214ff6030
Author: mas <mas>
Commit: mas <mas>
(mmm-apply-class): Rearranged parameters so faces actually work.
---
mmm-class.el | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/mmm-class.el b/mmm-class.el
index 51bf1f7..2fcdaa9 100644
--- a/mmm-class.el
+++ b/mmm-class.el
@@ -3,7 +3,7 @@
;; Copyright (C) 2000 by Michael Abraham Shulman
;; Author: Michael Abraham Shulman <address@hidden>
-;; Version: $Id: mmm-class.el,v 1.11 2000/08/24 22:59:38 mas Exp $
+;; Version: $Id: mmm-class.el,v 1.12 2000/09/29 20:43:10 mas Exp $
;;{{{ GPL
@@ -73,12 +73,15 @@ Creates a new parameter if one is not present."
(defun* mmm-apply-class
(class &optional (start (point-min)) (stop (point-max)) face)
- "Apply the submode class CLASS from START to STOP in FACE."
+ "Apply the submode class CLASS from START to STOP in FACE.
+If FACE is nil, the face for CLASS is used, or the default face if
+none is specified by CLASS."
;; The "special" class t means do nothing. It is used to turn on
;; MMM Mode without applying any classes.
(unless (eq class t)
- (apply #'mmm-ify :start start :stop stop :face face
- (mmm-get-class-spec class))))
+ (apply #'mmm-ify :start start :stop stop
+ (append (mmm-get-class-spec class)
+ (list :face face)))))
(defun* mmm-apply-classes
(classes &key (start (point-min)) (stop (point-max)) face)
- [elpa] master e31cf25 170/433: (mmm-update-mode-info): Tested against `mmm-set-file-name-for-modes'., (continued)
- [elpa] master e31cf25 170/433: (mmm-update-mode-info): Tested against `mmm-set-file-name-for-modes'., Dmitry Gutov, 2018/03/15
- [elpa] master 2defd28 188/433: (mmm-save-local-variables): Added `parse-sexp-ignore-comments', which, Dmitry Gutov, 2018/03/15
- [elpa] master e4084f8 186/433: Added set-background example for XEmacs., Dmitry Gutov, 2018/03/15
- [elpa] master cbbb3cc 162/433: Added comments on RPM Spec, File Variables, and Here-documents., Dmitry Gutov, 2018/03/15
- [elpa] master 7374d58 193/433: Added ePerl submode class., Dmitry Gutov, 2018/03/15
- [elpa] master 2802d0b 182/433: # Updated., Dmitry Gutov, 2018/03/15
- [elpa] master 2d7d17f 195/433: (mmm-major-mode-preferences): Added check for `jde-mode' for Java code., Dmitry Gutov, 2018/03/15
- [elpa] master 33baef7 179/433: Added file, Dmitry Gutov, 2018/03/15
- [elpa] master ad6a934 199/433: # Updated docstring, Dmitry Gutov, 2018/03/15
- [elpa] master 1c8d387 201/433: Allowed language names for preference lookup as "mode names"., Dmitry Gutov, 2018/03/15
- [elpa] master f0e34d0 185/433: (mmm-apply-class): Rearranged parameters so faces actually work.,
Dmitry Gutov <=
- [elpa] master 86803d6 200/433: (mmm-set-major-mode-preferences): Added function., Dmitry Gutov, 2018/03/15
- [elpa] master 4bdcb2f 224/433: Fixed inline JavaScript regexp ( \w ==> \\w )., Dmitry Gutov, 2018/03/15
- [elpa] master 62b7c8c 233/433: # Updated for recent changes in configuration., Dmitry Gutov, 2018/03/15
- [elpa] master 068f332 226/433: # Fixed a couple comments, Dmitry Gutov, 2018/03/15
- [elpa] master d94c8be 240/433: * FAQ: Added question about end delimiter., Dmitry Gutov, 2018/03/15
- [elpa] master 0faf52e 256/433: Updated., Dmitry Gutov, 2018/03/15
- [elpa] master d5a1a43 223/433: Empty regions no longer prevent parsing of later regions., Dmitry Gutov, 2018/03/15
- [elpa] master b2dac24 253/433: Used match-string-no-properties (Joe Kelsey), Dmitry Gutov, 2018/03/15
- [elpa] master 2524d7a 208/433: Added `require's and `defvar's to eliminate compliation warnings., Dmitry Gutov, 2018/03/15
- [elpa] master c712ad4 190/433: Added flags telling which faces to use for which regions., Dmitry Gutov, 2018/03/15