[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex f472378 22/57: Work around bug#26694
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex f472378 22/57: Work around bug#26694 |
Date: |
Tue, 25 Jul 2017 14:02:30 -0400 (EDT) |
branch: externals/auctex
commit f4723786f2d2ec58bdb94bd8112f6437f33c1d36
Author: Mosè Giordano <address@hidden>
Commit: Mosè Giordano <address@hidden>
Work around bug#26694
* preview.el.in (preview-at-point): Let-bind `TeX-source-correlate-mode' to
nil.
* tex-buf.el (TeX-region-create): Move point only when
`TeX-source-correlate-mode' is non-nil.
---
preview.el.in | 7 +++++--
tex-buf.el | 17 ++++++++++-------
2 files changed, 15 insertions(+), 9 deletions(-)
diff --git a/preview.el.in b/preview.el.in
index 8a58104..e4bcd7f 100644
--- a/preview.el.in
+++ b/preview.el.in
@@ -1622,8 +1622,11 @@ through `preview-region'."
(unless (eq preview-state 'disabled)
(preview-toggle ovr 'toggle (selected-window))
(throw 'exit t)))))
- (preview-region (preview-next-border t)
- (preview-next-border nil)))))
+ ;; Let-bind `TeX-source-correlate-mode' to nil in order to work around
+ ;; bug#26694.
+ (let ((TeX-source-correlate-mode nil))
+ (preview-region (preview-next-border t)
+ (preview-next-border nil))))))
(defun preview-disabled-string (ov)
"Generate a before-string for disabled preview overlay OV."
diff --git a/tex-buf.el b/tex-buf.el
index 8c9c7ef..ef0b3dd 100644
--- a/tex-buf.el
+++ b/tex-buf.el
@@ -2094,13 +2094,16 @@ original file."
trailer)
(setq TeX-region-orig-buffer orig-buffer)
;; Position point at the line/col that corresponds to point's line in
- ;; orig-buffer in order to make forward search work.
- (let ((line-col (with-current-buffer orig-buffer
- (cons (TeX-line-number-at-pos)
- (current-column)))))
- (goto-char (point-min))
- (forward-line (1- (abs (- header-offset (car line-col)))))
- (forward-char (cdr line-col)))
+ ;; orig-buffer in order to make forward search work. Move point only
+ ;; when `TeX-source-correlate-mode' is non-nil, in order to work around
+ ;; bug#26694.
+ (when TeX-source-correlate-mode
+ (let ((line-col (with-current-buffer orig-buffer
+ (cons (TeX-line-number-at-pos)
+ (current-column)))))
+ (goto-char (point-min))
+ (forward-line (1- (abs (- header-offset (car line-col)))))
+ (forward-char (cdr line-col))))
(run-hooks 'TeX-region-hook)
(if (string-equal (buffer-string) original-content)
(set-buffer-modified-p nil)
- [elpa] externals/auctex dcd5503 26/57: * doc/changes.texi: Document recent changes., (continued)
- [elpa] externals/auctex dcd5503 26/57: * doc/changes.texi: Document recent changes., Tassilo Horn, 2017/07/25
- [elpa] externals/auctex 6fd235f 32/57: ; * tex-buf.el (TeX-adjust-process-coding-system): Avoid a compilation warning., Tassilo Horn, 2017/07/25
- [elpa] externals/auctex cd36aa8 45/57: Check and set `TeX-quote-language' if necessary, Tassilo Horn, 2017/07/25
- [elpa] externals/auctex ef68910 44/57: Add new style/australian.el and style/newzealand.el, Tassilo Horn, 2017/07/25
- [elpa] externals/auctex 6e584e9 04/57: * style/exam.el ("exam"): Remove duplicate entries and backslash., Tassilo Horn, 2017/07/25
- [elpa] externals/auctex 9cf9f7c 09/57: Correctly exclude hypenation and thin spaces from command matches, Tassilo Horn, 2017/07/25
- [elpa] externals/auctex 7eab03a 20/57: * tex-ispell.el: Move entries from style/empheq.el to this file., Tassilo Horn, 2017/07/25
- [elpa] externals/auctex 0e4ad85 21/57: * latex/preview.dtx: Adjust contact email address., Tassilo Horn, 2017/07/25
- [elpa] externals/auctex d004ac7 28/57: * tex.el (TeX-command-list): Fix typo in help string (mendex -> upmendex), Tassilo Horn, 2017/07/25
- [elpa] externals/auctex cd28c6f 23/57: Improve further the exclusion of reserved characters, Tassilo Horn, 2017/07/25
- [elpa] externals/auctex f472378 22/57: Work around bug#26694,
Tassilo Horn <=
- [elpa] externals/auctex bde89b9 27/57: * latex.el (LaTeX-env-label-as-keyval): Use `buffer-substring-no-properties'., Tassilo Horn, 2017/07/25
- [elpa] externals/auctex 7249c78 11/57: * latex.el (LaTeX-common-initialization): Add eminnershape macro., Tassilo Horn, 2017/07/25
- [elpa] externals/auctex 00c76fb 29/57: Don't discard process output with `TeX-run-silent', Tassilo Horn, 2017/07/25
- [elpa] externals/auctex aed9191 33/57: * tests/tex/compilation-log.txt:, Tassilo Horn, 2017/07/25
- [elpa] externals/auctex 4d426ea 37/57: Suggest to rerun LaTeX if xsim properties changed, Tassilo Horn, 2017/07/25
- [elpa] externals/auctex 6cac3e5 13/57: Update style/fontspec.el to package version 2.6a, Tassilo Horn, 2017/07/25
- [elpa] externals/auctex e0d067f 53/57: Manually cherry-pick commit bc0db60e, Tassilo Horn, 2017/07/25
- [elpa] externals/auctex 42aa58c 40/57: Add support for xreader viewer, Tassilo Horn, 2017/07/25
- [elpa] externals/auctex cd1075b 43/57: Add new style/canadian.el, Tassilo Horn, 2017/07/25
- [elpa] externals/auctex fa24654 55/57: * font-latex.el: Use the standard utf-8 rather than latin-1, Tassilo Horn, 2017/07/25