[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 752288f 113/433: Added `mmm-no-matching-submode' error sig
From: |
Dmitry Gutov |
Subject: |
[elpa] master 752288f 113/433: Added `mmm-no-matching-submode' error signal. |
Date: |
Thu, 15 Mar 2018 19:43:46 -0400 (EDT) |
branch: master
commit 752288f768590e97249c50105be45780962d2c77
Author: mas <mas>
Commit: mas <mas>
Added `mmm-no-matching-submode' error signal.
---
mmm-vars.el | 18 +++++++++++++++---
1 file changed, 15 insertions(+), 3 deletions(-)
diff --git a/mmm-vars.el b/mmm-vars.el
index e9d49d1..be893ef 100644
--- a/mmm-vars.el
+++ b/mmm-vars.el
@@ -3,7 +3,7 @@
;; Copyright (C) 2000 by Michael Abraham Shulman
;; Author: Michael Abraham Shulman <address@hidden>
-;; Version: $Id: mmm-vars.el,v 1.19 2000/07/13 23:48:04 mas Exp $
+;; Version: $Id: mmm-vars.el,v 1.20 2000/07/21 00:50:36 mas Exp $
;;{{{ GPL
@@ -67,6 +67,16 @@
'error-message
"Invalid or undefined submode class")
+;; Signalled by :match-submode functions when they are unable to
+;; resolve a submode. Should always be caught and never seen by the
+;; user.
+(put 'mmm-no-matching-submode
+ 'error-conditions
+ '(mmm-no-matching-submode mmm-error error))
+(put 'mmm-no-matching-submode
+ 'error-message
+ "Internal error: no matching submode.")
+
;;}}}
;; USER VARIABLES
@@ -395,7 +405,7 @@ Do not set this variable directly; use the function
`mmm-mode'.")
;; :parent could be an all-class argument. Same with :keymap.
(defvar mmm-classes-alist nil
- "*Alist containing all defined mmm submode classes.
+ "Alist containing all defined mmm submode classes.
Each element looks like \(CLASS . ARGS) where CLASS is a symbol
representing the submode class and ARGS is a list of keyword
arguments, called a \"class specifier\". There are a large number of
@@ -421,7 +431,9 @@ submode regions, a symbol such as `cperl-mode' or
`emacs-lisp-mode',
while MATCH-SUBMODE must be a function to be called immediately after
a match is found for FRONT, which is passed one argument, the form of
the front delimiter \(found from FRONT-FORM, below), and return a
-symbol such as SUBMODE would be set to.
+symbol such as SUBMODE would be set to. If MATCH-SUBMODE detects an
+invalid match--for example a specified mode which is not `fboundp'--it
+should \(signal 'mmm-no-matching-submode nil).
FRONT and BACK are the means to find the submode regions, and can be
either buffer positions \(number-or-markers), regular expressions, or
- [elpa] master d640498 096/433: Released 0.4.3., (continued)
- [elpa] master d640498 096/433: Released 0.4.3., Dmitry Gutov, 2018/03/15
- [elpa] master 63e6748 116/433: (mmm-here-doc-get-mode): Signaled non-fboundp here-document names., Dmitry Gutov, 2018/03/15
- [elpa] master bf3b29e 100/433: # Updated, Dmitry Gutov, 2018/03/15
- [elpa] master c76f5a3 099/433: Added to CVS., Dmitry Gutov, 2018/03/15
- [elpa] master 89daaab 103/433: # Added comment about universal mode., Dmitry Gutov, 2018/03/15
- [elpa] master a0e97ea 108/433: (mmm-save-local-variables): Changed `defcustom' to `defvar'., Dmitry Gutov, 2018/03/15
- [elpa] master 70a94da 109/433: (mmm-run-major-mode-hook): Added `ignore-errors' around each call., Dmitry Gutov, 2018/03/15
- [elpa] master 7a12efa 111/433: Added MASON_VERSION variable to keep track of that., Dmitry Gutov, 2018/03/15
- [elpa] master e7da5c1 117/433: # Updated., Dmitry Gutov, 2018/03/15
- [elpa] master 88d1d46 115/433: (mmm-univ-get-mode): Signaled error on non-fboundp modes., Dmitry Gutov, 2018/03/15
- [elpa] master 752288f 113/433: Added `mmm-no-matching-submode' error signal.,
Dmitry Gutov <=
- [elpa] master 3ee92f7 091/433: Moved commentary code to README.Mason., Dmitry Gutov, 2018/03/15
- [elpa] master efe3dbf 092/433: Wrote more about Mason., Dmitry Gutov, 2018/03/15
- [elpa] master e632aec 105/433: Limited matches to letter/dash strings that are fboundp., Dmitry Gutov, 2018/03/15
- [elpa] master b73a727 018/433: Added to CVS (formerly not under RCS)., Dmitry Gutov, 2018/03/15
- [elpa] master 28e978c 118/433: (mmm-ify-by-class): Added completion on all defined classes., Dmitry Gutov, 2018/03/15
- [elpa] master 34fbbd5 120/433: # Updated docstring., Dmitry Gutov, 2018/03/15
- [elpa] master d856bc2 106/433: Wrote about global classes, highlight, mode line, and hooks., Dmitry Gutov, 2018/03/15
- [elpa] master 3cd5dcb 123/433: Changed output name from `mmm' to `mmm-mode'., Dmitry Gutov, 2018/03/15
- [elpa] master a8a9d33 122/433: Updated file-variables class to handle prefixes., Dmitry Gutov, 2018/03/15
- [elpa] master 8fd343b 119/433: # Updated folding marks., Dmitry Gutov, 2018/03/15