2018-06-21 Dmitry Gutov Release 0.5.7 2018-06-15 Dmitry Gutov Fix mmm-indent-line-narrowed To actually call the indent function inside the narrowing Cc @AdamNiederer 2018-03-23 Dmitry Gutov Release 0.5.6 2018-03-23 Dmitry Gutov Remove #' from all lambda forms 2018-03-23 Dmitry Gutov Fix Emacs 26+ 2018-03-23 Dmitry Gutov Replace cadddr and caddr with nth 2018-03-23 Adam Niederer Namespace the rest of the functions in mmm-region 2018-03-23 Adam Niederer Namespace unnamespaced cl- functions with mmm- Also fixup delimiters in mmm-compat 2018-03-23 Adam Niederer Revert cl namespacing and add aliases for emacs < 26 2018-03-23 Adam Niederer Namespace cl functions 2018-03-20 Dmitry Gutov Merge branch 'master' of github.com:purcell/mmm-mode 2018-03-20 Dmitry Gutov Add a couple of FIXMEs 2018-03-19 Stefan Monnier Fix various compiler warnings and other cosmetic details * .gitignore: Add ELPA-generated files. * mmm-class.el (mmm-apply-classes): Don't use add-to-list on local var. * mmm-erb.el (mmm-erb-indent-to-region-start): Remove unused var 'indent'. * mmm-mode.el: Fix ";;;" commenting style. (mmm-mode-off): Don't bother restoring syntax-begin-function. * mmm-region.el (mmm-update-mode-info): Don't bother saving syntax-begin-function. (mmm-refontify-maybe): Use font-lock-flush when available. (syntax-ppss-cache, syntax-ppss-last): Declare. * mmm-noweb.el (mmm-noweb-regions): Remove unused arg 'delim'. * mmm-vars.el: Move defvars outside of eval-when-compile. Add declare-functions to silence byte-compiler. 2018-03-18 Steve Purcell Note that ELPA is now the preferred installation source 2018-03-16 Dmitry Gutov Add copyright blurbs to the test files 2018-03-16 Dmitry Gutov And more 2018-03-16 Dmitry Gutov More text 2018-03-16 Dmitry Gutov (Mostly) remove some earlier entries 2018-03-16 Dmitry Gutov Write TODO some more 2018-03-14 Dmitry Gutov Fix copyright entry 2018-03-14 Dmitry Gutov Add a FIXME 2018-03-14 Dmitry Gutov Add to TODO 2018-03-14 Dmitry Gutov Add cl-lib package dependency 2018-03-14 Dmitry Gutov Release 0.5.5 2018-03-14 Dmitry Gutov Update copyright dates again 2018-03-14 Dmitry Gutov Use cl-lib instead of cl 2018-03-14 Dmitry Gutov Add some NEWS entries 2018-03-14 Dmitry Gutov Update the copyright notices Michal and Alan have assigned their copyright to FSF here. 2017-12-13 Dmitry Gutov Update Michael's email address to an active one 2017-09-29 Adam Reword docstring & fix indentation 2017-09-27 Adam Copy mmm-indent-line body into mmm-indent-narrowed 2017-09-27 Adam Add function for narrowed indentation Sometimes, modes rely on functions like (point-min) or overstep their region when attempting to indent a line. This can cause issues like https://github.com/AdamNiederer/vue-mode/issues/50 This function narrows the buffer before indenting, preventing any issues which might arise from reliance on having one's own buffer. This doesn't change any defaults, but I figured some other mmm-mode derivatives could make use of this function. 2017-08-07 Adam Niederer Document mode transition hooks 2017-08-03 Adam Niederer Mode transition hooks Allows the user to set hooks to run when submodes are entered and left. Also allows the user to specify hooks for specific mode-to-mode transitions. An example below: (setq mmm-js-mode-exit-hook (lambda () (message "Run when leaving js mode"))) (setq mmm-js-mode-enter-hook (lambda () (message "Run when entering js mode"))) (setq mmm-vue-mode-js-mode-hook (lambda () (message "Run when moving From vue to js"))) (setq mmm-js-mode-vue-mode-hook (lambda () (message "Run when moving From js to vue"))) 2017-02-21 Dmitry Gutov Add c-symbol-char-key to the saved variables #68 2015-08-29 Dmitry Gutov Save font-lock-syntactic-face-function per major mode Fixes #57 2015-08-10 Dmitry Gutov Fix regression from the previous commit * Fix void-function error ("another error" in https://gist.github.com/blaenk/edcd2d4280dc5fc99a83, #56) * Just skip narrowing for cc-mode submodes 2015-07-30 Dmitry Gutov Make c-mode raise fewer errors #55 2015-07-16 Dmitry Gutov Revert "mmm-match-region: Return front-pos even without front-delim; likewise for back" This reverts commit 4e218824039090af6e579dabe91ebfaaa291440d. 2015-07-16 Dmitry Gutov mmm-match-region: Return front-pos even without front-delim; likewise for back Fixes #53 2015-06-24 Steve Purcell Release 0.5.4 2015-06-23 Dmitry Gutov Update the checklist 2015-06-23 Dmitry Gutov Don't use version.texi at all Closes #46 2015-06-11 Dmitry Gutov Don't try to enable jit-lock in temp buffers Fixes #51 2015-03-25 Syohei YOSHIDA Fix invalid function call Argument count of mmm-submode-changes-in is 2. 2015-03-21 Dmitry Gutov mmm-indent-line: Use primary mode if submode ends right here 2015-03-21 Dmitry Gutov mmm-save-local-variables: Add forward-sexp-function and SMIE-related vars #49 2015-03-19 Yuta Namiki fix the problem that mmm-major-mode-preferences has no effect for css. 2015-01-17 Dmitry Gutov Released 0.5.2 2015-01-17 Dmitry Gutov Update NEWS 2015-01-17 Dmitry Gutov Update TODO 2014-12-28 Dmitry Gutov Remove version.texi from the repo Closes #41 2014-11-05 Dmitry Gutov Fix #40 2014-02-12 Dmitry Gutov Don't use syntax-begin-function http://lists.gnu.org/archive/html/emacs-devel/2014-02/msg00226.html #37 2014-02-10 Dmitry Gutov Fix #37 2013-10-28 Dmitry Gutov * Enable MMM in ERB and PHP files with just one extension (#36) * Mention php-mode installation requirement 2013-10-27 Dmitry Gutov Limit html-php to .php files 2013-10-27 Dmitry Gutov Add mmm-defaults.el (#36) 2013-09-24 Akinori MUSHA Allow omitting the close tag of the last PHP code block. It is common manners to omit the close tag to avoid the trailing newline problem. 2013-06-06 Tomoya Tanjo Add magic comment for autoload to mmm-add-classes 2013-05-04 Dmitry Gutov Fix sporadic keywords mishighlighting in sql-mode And add three tests, the third one is testing for this fix. Inspired by #30. 2013-04-03 Dmitry Gutov mmm-beginning-of-syntax: Don't consider overlays ending at point 2013-04-02 Dmitry Gutov Fix #26 2013-03-22 Steve Purcell Fix missing var declaration 2013-03-12 Dmitry Gutov Expected results depend on the Emacs version 2013-03-12 Dmitry Gutov Add two failing tests Refs #26 2013-03-12 Dmitry Gutov Primary mode spf should see the whole buffer Or it becomes mistaken about the level of nesting. Also, don't keep cached `syntax-ppss' values between subregions, they can be incompatible (#26). 2013-03-11 Dmitry Gutov Add first test ever 2013-03-03 Dmitry Gutov Fix #23 * mmm-erb-scan-erb: Only reject region of type 'open when close-re applies at the end of the region, this way we're less likely to trip over hashes. * mmm-submode-changes-in: Only add start and stop when either is not inside submode regions. This way `mmm-regions-in' doesn't split regions. 2013-03-01 Dmitry Gutov Released 0.5.1 2013-03-01 Dmitry Gutov Delete .cvsignore, move almost everything to .gitignore 2013-02-27 Dmitry Gutov * mmm-update-mode-info: bind `buffer-file-truename' to nil 2013-02-25 Dmitry Gutov Don't make the temp buffer unmodified before killing it 2013-02-22 Dmitry Gutov Fix mmm-add-to-major-mode-preferences docstring https://sourceforge.net/tracker/?func=detail&aid=904833&group_id=8658&atid=108658 2013-02-22 Dmitry Gutov Fix typo: global-mmm-mode -> mmm-global-mode 2013-02-22 Dmitry Gutov Update the FAQ 2013-02-22 Dmitry Gutov Add mmm-erb.el to lisp_LISP 2013-02-22 Dmitry Gutov Released 0.5.0 2013-02-12 Dmitry Gutov * mmm-erb.el: Update comments 2013-02-12 Dmitry Gutov Add "Maintainer" and some copyright headers 2013-02-12 Dmitry Gutov * mmm-syntax-propertize-function: Don't pass nil to mmm-set-local-variables This is too similar to 61b9cf4. 2013-02-11 Dmitry Gutov Update NEWS 2013-02-11 Dmitry Gutov Remove the useless CVS $Id tags 2013-02-11 Dmitry Gutov Move html-js and html-css classes from mmm-erb to mmm-sample * Overwrite JS and CSS classes that were already there. * Disregard type and language attributes. The latter is obsolete, the former is made optional in HTML5. If we're ever going to dispatch to appropriate submode based on attribute value, we can add them back. * No submode regions for inline code in on* attributes, the added functionality is not worth the slowdown (font-lock and indentation are largely unused), and such attributes are bad practice anyway. 2013-02-10 Dmitry Gutov Merge pull request #22 from purcell/indentation Merge branch 'indentation' 2013-02-10 Dmitry Gutov Say goodbye to Emacs 19 2013-02-10 Dmitry Gutov Remove regexp-opt's legacy stuff https://sourceforge.net/tracker/?func=detail&aid=832660&group_id=8658&atid=308658 http://list-archive.xemacs.org/pipermail/xemacs-beta/2004-January/000147.html 2013-02-10 Dmitry Gutov Define mmm-indent-line-function and its default value * Now html-erb-mode can just set mmm-indent-line-function. * Easier access to the submode's indent-line-function. No need to hack around. * mmm-indent-line indents according to the submode at the indentation, which is more consistent than previously. 2013-02-09 Dmitry Gutov Some compatibiliy tweaks * Prioritize syntax-begin-function over font-lock-beginning-of-syntax-function. * Check if syntax-propertize-function is bound. It isn't in Emacs 23. 2013-02-08 Dmitry Gutov Add URL header 2013-02-08 Dmitry Gutov Update the TODO 2013-02-08 Dmitry Gutov Remove the angle brackets 2013-02-08 Dmitry Gutov * mmm-noweb.el: Qualify the "doesn't work" statement. 2013-02-08 Dmitry Gutov Make README more up-to-date 2013-02-08 Dmitry Gutov * mmm-noweb.el: Add the FIXME note. 2013-02-04 Dmitry Gutov Rebinding syntax-propertize-chunk-size is pointless It's only used in the caller, to determine STOP. 2013-02-04 Dmitry Gutov * mmm-regions-in: Keep overlay references in the return value * mmm-fontify-region-list, mmm-syntax-propertize-function: Use them. * mmm-erb-scan-region: Same. * mmm-submode-overlay-at: Remove, not used anymore. And bump the version, this is a change in the API. Hopefuly, a relatively safe one. 2013-02-03 Dmitry Gutov Rewrite mmm-regions-alist for performance Not much improvement here, but at least we don't iterate multiple times over the same list now. 2013-02-03 Dmitry Gutov Revert c548593, for easier optimization * mmm-fontify-region-list: Don't set global and buffer vars when the submode hasn't changed. Gives us nice perfomance boost. 2013-02-03 Dmitry Gutov * mmm-apply-all: flush syntax cache 2013-02-03 Dmitry Gutov * mmm-syntax-propertize-function: Use font-lock-syntactic-keywords with less fortunate submodes. * Don't clear text properties, syntax-propertize already does that for us. 2013-02-01 Dmitry Gutov Define mmm-syntax-propertize-function This is faster, but still kinda slow. 2013-02-01 Dmitry Gutov Use syntax-propertize-function set in submodes WIP, it visibly slows down parsing. 2013-01-30 Dmitry Gutov * mmm-set-local-variables: Default to mmm-primary-mode 2013-01-30 Dmitry Gutov * mmm-make-region: Don't call mmm-save-changed-local-variables, or set the mmm-previous-* vars, the next successful call to mmm-update-submode-region will do that for us. 2013-01-30 Dmitry Gutov Don't recompute the current overlay in mmm-set-local-variables Instead pass it the current overlay as a second argument. * Rename mmm-set-current-submode to mmm-set-current-pair, take overlay as the second argument. * Use the above in mmm-update-current-submode. * mmm-get-saved-local-variables: Take overlay as the second argument, move the filtering code to a new function, mmm-submode-overlay-at, use it in mmm-fontify-region-list. * mmm-save-changed-local-variables: Reverse the arguments order, for consistency with other functions. Update callers. * mmm-fontify-region: Save the current overlay instead of its beginning position, then restore it directly. * mmm-make-region: Pass the newly created region to mmm-set-local-variables, instead of making the latter look for the former at point, like previously. 2013-01-26 Steve Purcell Merge pull request #19 from dgutov/font-lock Allow toggling whitespace-mode 2013-01-25 Dmitry Gutov Allow toggling whitespace-mode after initialization Refs #5 2013-01-25 Prakash Kailasa added more cc-mode variables to mmm-save-local-variables 2013-01-25 Dmitry Gutov Simplify mmm-update-mode-info * Use non-hidden name for the temporary buffer, for better font-lock initialization (and for minor modes that depend on it, like whitespace-mode). * Kill the temp buffer in an unwind form, error or not. * Don't check if it's XEmacs version 20, 21 came out 14 years ago. * Get rid of `mmm-font-lock-available-p' and `mmm-set-font-lock-defaults'. The former was only used with Emacs < 21, the latter is just unused now. 2013-01-25 Dmitry Gutov Don't pass nil to mmm-set-local-variables Finishes e848ef1. 2013-01-21 Dmitry Gutov * mmm-fontify-region: Save and restore submode, overlay and local vars This function is called from different positions, so just calling `mmm-update-submode-region' at the end is not enough. 2013-01-21 Dmitry Gutov Fix the timer error: "Selecting deleted buffer" 2013-01-21 Dmitry Gutov Revert "Refontify buffer when creating new region" This reverts commit 611505909722425fe0259cae393be55028d499e9. Not sure what I was fixing here, but probably a side-effect of some other bug. Buffer refontifies fine now, all by itself. 2013-01-18 Dmitry Gutov Remove duplicate entries Result of some bad merge years ago 2013-01-18 Dmitry Gutov Save values of more cc-mode variables 2012-12-24 Dmitry Gutov Improve mmm-erb usage instructions Closes #14 2012-09-21 Steve Purcell Merge pull request #13 from dgutov/master Fix problem with indentation in PHP regions (closes #12) 2012-09-21 Dmitry Gutov Fix #12 2012-09-02 Steve Purcell Revert unintended check-in of mmm-erb changes 2012-09-02 Steve Purcell Note availability of Melpa packages 2012-09-02 Steve Purcell Note that 'autogen.sh' should be run to generate 'configure' and 'Makefile.in' (see #11) 2012-08-03 Dmitry Gutov Document nxml-mode based setup 2012-08-03 Dmitry Gutov Don't confuse script tags with EJS tags 2012-08-02 Dmitry Gutov Update instructions and docstrings 2012-08-02 Dmitry Gutov Fix #8 2012-06-11 Steve Purcell Require 'mmm-region from 'mmm-erb, avoiding compilation warnings about free variable references 2012-06-11 Steve Purcell Add a few docstrings to make checkdoc happier. 2012-06-11 Steve Purcell Switch mmm-erb.el to unix line endings, and add closing comment line 2012-06-11 Steve Purcell Merge remote-tracking branch 'refs/remotes/dgutov/erb' 2012-06-11 Dmitry Gutov Reparse mmm-mode buffer when Emacs is idle 2012-06-11 Dmitry Gutov Add header comment, provide description 2012-06-11 Dmitry Gutov Correctly restore pre-indent position 2012-06-11 Dmitry Gutov Check for EJS "blocks" 2012-06-11 Dmitry Gutov Adjust indentation in primary mode for ERB blocks 2012-06-11 Dmitry Gutov Do syntax highlighting and indentation in ERB buffers 2012-06-05 Steve Purcell Merge pull request #4 from dgutov/js-fix Make js-mode subregion fontification work 2012-06-05 Dmitry Gutov Add js-mode vars to `mmm-save-local-variables` * Deals with "Error during redisplay: (wrong-type-argument stringp nil)", see http://web.archiveorange.com/archive/v/N57rDoqGacBSFpqrlDyt 2012-06-05 Dmitry Gutov Fix `mmm-insert-region' to not abort loop too soon 2012-05-29 Steve Purcell Fix further compilation warnings in recent Emacsen 2012-05-29 Steve Purcell Fix references to free variables 2012-05-29 Dmitry Gutov Fix fontification of the first subregion line 2012-05-29 Dmitry Gutov Refontify buffer when creating new region 2012-05-29 Dmitry Gutov After fontifying the region, restore local vars 2012-05-29 Dmitry Gutov Compatibility fix for mode line format of Emacs 23 Patch from https://bugs.gentoo.org/311259?id=311259 2012-05-29 Steve Purcell Fix compilation warnings 2012-05-11 Alexander Zangerl Provide more sensible face defaults for dark and light backgrounds 2012-01-14 Steve Purcell Ignore .elc files 2011-06-23 Steve Purcell Fix obsolete backquotes 2010-12-17 Steve Purcell Make reference to var font-lock-defaults-alist conditional; var is obsolete in Emacs 24. 2010-10-05 Steve Purcell Don't use obsolete 'make-local-hook function in GNU Emacs 2010-05-07 Steve Purcell Fix error in mmm-mode when Emacs 23 immediately evaporates zero-width submode regions 2004-11-19 alanshutko (lisp_LISP): Added mmm-myghty.el. 2004-11-19 alanshutko * mmm-myghty.el: New mode from Ben Bangert. * mmm-vars.el (mmm-major-mode-preferences): Added Python prefs, also from Ben. * mmm-auto.el (mmm-autoloaded-classes): Merged Ben Bangert's Myghty class. 2004-06-16 alanshutko * version.texi: Release 0.4.8. * mmm-vars.el: Release 0.4.8. * mmm-mode.el: Release 0.4.8. 2004-06-16 alanshutko * mmm-noweb.el (mmm-syntax-region-list) (mmm-syntax-other-regions, mmm-word-other-regions) (mmm-space-other-regions, mmm-undo-syntax-other-regions): Added from Joe's email. They're here right now, until a better place can be found. * configure.in: Incr version for release. 2004-06-11 alanshutko (mmm-ify): Change defaults for front-delim and back-delim to nil. 0 was breaking the no-delimiter case in mmm-match-region. 2004-06-03 alanshutko (html-js): Support JS version in language attribute. 2004-06-01 alanshutko * mmm-vars.el (mmm-save-local-variables): Updated cc-mode local variables. * Makefile.am (lisp_LISP): Removed mmm-php.el, since it doesn't appear to be in CVS. * missing: Updated for automake 1.7.9. 2003-10-19 alanshutko (mmm-save-local-variables): Add semantic stuff and c-syntactic-eol. 2003-06-19 viritrilbia *** empty log message *** 2003-04-28 viritrilbia Fixed back recognition of output regions. 2003-03-25 viritrilbia Added html-php submode class. 2003-03-25 viritrilbia Collapsed undo of insertion into one command. 2003-03-25 viritrilbia Added file for building SRPMs, thanks to bishop 2003-03-25 viritrilbia Added script and documentation for installing from CVS 2003-03-19 viritrilbia Added instructions for installing CVS version. 2003-03-19 viritrilbia Prevent bounds from going outside buffer (XEmacs complains) 2003-03-09 viritrilbia Added delimiter regions and region name matching. 2003-03-03 viritrilbia Implemented a 'local to submode class' keymap binding, using a dummy overlay. 2003-03-03 viritrilbia (mmm-define-key): Added optional keymap argument 2003-03-03 viritrilbia Fixed stupid bug, so autoloading will actually work 2003-03-03 viritrilbia *** empty log message *** 2003-03-03 viritrilbia Use correct variable name... 2003-03-02 viritrilbia Updated. 2003-03-02 viritrilbia Added Noweb documentation (Joe Kelsey) Added add-to-group docs (Joe Kelsey) Improved decoration level documentation. 2003-03-02 viritrilbia Added narrow to submode region (Joe Kelsey) Fixed validity of placement algorithm Run region entry hooks Added parameters to submode-changes-in (Joe Kelsey) Misc. 2003-03-02 viritrilbia Used match-string-no-properties (Joe Kelsey) Fixed spelling, moved mmm-make-marker to this file. 2003-03-02 viritrilbia Tested for only javascript