Commit graph

8 commits

Author SHA1 Message Date
Juanma Barranquero
01a439012b Revert 2013-06-20T00:39:59Z!lekktu@gmail.com. 2013-06-20 12:28:23 +02:00
Juanma Barranquero
5fc0acc0f5 lisp/progmodes/prog-mode.el: Remove autoload cookies. 2013-06-20 02:39:59 +02:00
Juanma Barranquero
14dd22d2ce Convert symbol prettification into minor mode and global minor mode.
* etc/NEWS: Document new Prettify Symbols mode.

* lisp/progmodes/prog-mode.el (prettify-symbols-alist): Rename from
  `prog-prettify-symbols', and make a local defvar instead of defcustom.
  (prettify-symbols--keywords): Rename from `prog-prettify-symbols-alist'
  and make a local defvar.
  (prettify-symbols--compose-symbol): Rename from
  `prog--prettify-font-lock-compose-symbol'.
  (prettify-symbols--make-keywords): Rename from
  `prog-prettify-font-lock-symbols-keywords' and simplify.
  (prog-prettify-install): Remove.
  (prettify-symbols-mode): New minor mode, based on `prog-prettify-install'.
  (turn-on-prettify-symbols-mode): New function.
  (global-prettify-symbols-mode): New globalized minor mode.

* lisp/emacs-lisp/lisp-mode.el (lisp-mode-variables):
* lisp/progmodes/cfengine.el (cfengine3-mode):
* lisp/progmodes/perl-mode.el (perl-mode): Don't call `prog-prettify-install';
  set `prettify-symbols-alist' instead.
2013-06-19 00:13:25 +02:00
Juanma Barranquero
f612933b88 lisp/progmodes/prog-mode.el: Force font-lock to deal with `composition' prop.
(prog-prettify-install): Add `composition' to `font-lock-extra-managed-props'
if any prettifying keyword is added.
(prog--prettify-font-lock-compose-symbol): Use ?\s instead of ?\ .
(prog-mode): Use `setq-local'.
2013-06-17 03:09:13 +02:00
Juanma Barranquero
f3d674dfd1 * lisp/progmodes/prog-mode.el: Fix bug#14595.
(prog--prettify-font-lock-compose-symbol): Save relevant match data
  before calling `syntax-ppss'.
2013-06-16 03:26:42 +02:00
Glenn Morris
c5de26b468 * prog-mode.el: Comment fixes. 2013-06-06 17:32:13 -04:00
Ted Zlatanov
9bfff84bf7 (prog-prettify-symbols) (prog-prettify-install): Update docstrings. 2013-06-05 14:30:47 -04:00
Stefan Monnier
55577e7c02 * lisp/simple.el: Move all the prog-mode code to prog-mode.el.
* lisp/progmodes/prog-mode.el: New file.
* lisp/loadup.el:
* src/lisp.mk (lisp): Add prog-mode.el.
2013-06-05 14:10:27 -04:00