[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex 2d0c70114e 3/8: Allow multiple preview preproces
From: |
ELPA Syncer |
Subject: |
[elpa] externals/auctex 2d0c70114e 3/8: Allow multiple preview preprocessors |
Date: |
Mon, 6 May 2024 09:57:31 -0400 (EDT) |
branch: externals/auctex
commit 2d0c70114e5c475f311c1c481dae060c3e2cd882
Author: Paul Nelson <ultrono@gmail.com>
Commit: Arash Esbati <arash@gnu.org>
Allow multiple preview preprocessors
* preview.el.in (preview-preprocessor-functions): New variable,
replacing `preview-preprocessor-function'.
(preview-region): Use it. (bug#70607)
---
preview.el.in | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/preview.el.in b/preview.el.in
index 9f7db67445..72568be781 100644
--- a/preview.el.in
+++ b/preview.el.in
@@ -4120,9 +4120,9 @@ stored in `preview-dumped-alist'."
(preview-format-kill old-format)
(setcdr old-format nil))
-(defvar preview-preprocess-function nil
- "Function used to preprocess region before previewing.
-The function bound to this variable will be called inside
+(defvar preview-preprocess-functions nil
+ "List of functions used to preprocess region before previewing.
+The functions in this variable will each be called inside
`preview-region' with one argument which is a string.")
(defun preview-region (begin end)
@@ -4134,9 +4134,9 @@ The function bound to this variable will be called inside
TeX-region-extra)))
(TeX-region-create (TeX-region-file TeX-default-extension)
(let ((str (buffer-substring-no-properties begin end)))
- (if preview-preprocess-function
- (funcall preview-preprocess-function str)
- str))
+ (dolist (fun preview-preprocess-functions)
+ (setq str (funcall fun str)))
+ str)
(if (TeX-buffer-file-name)
(file-name-nondirectory (TeX-buffer-file-name))
"<none>")
- [elpa] externals/auctex updated (56b5dab166 -> 5a64a805e5), ELPA Syncer, 2024/05/06
- [elpa] externals/auctex 8b6a6bbce4 4/8: Allow programmatic preview abortion, ELPA Syncer, 2024/05/06
- [elpa] externals/auctex 63968cc5cf 1/8: * tex.el (TeX-one-master): Consider .ltx as ordinary TeX files., ELPA Syncer, 2024/05/06
- [elpa] externals/auctex 2d0c70114e 3/8: Allow multiple preview preprocessors,
ELPA Syncer <=
- [elpa] externals/auctex 06c0df55a4 5/8: Expand default auto-reveal options, ELPA Syncer, 2024/05/06
- [elpa] externals/auctex 8db1e90b6d 2/8: Make auto-reveal customizations easier to extend, ELPA Syncer, 2024/05/06
- [elpa] externals/auctex 5fdc235080 6/8: Generalize some error description regexp, ELPA Syncer, 2024/05/06
- [elpa] externals/auctex 0caa170649 7/8: Fix previews in indirect buffers, ELPA Syncer, 2024/05/06
- [elpa] externals/auctex 5a64a805e5 8/8: Merge remote-tracking branch 'origin/master', ELPA Syncer, 2024/05/06