[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-devel] TeX-source-correlate-sync-source uses goto-line
From: |
Antoine Levitt |
Subject: |
[AUCTeX-devel] TeX-source-correlate-sync-source uses goto-line |
Date: |
Mon, 04 Apr 2011 08:31:20 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
TeX-source-correlate-sync-source uses goto-line, which is apparently
discouraged. Besides, it leaves disgracious "mark set" messages. I'm not
familiar with this kind of things so I don't know what's good practice,
but here's a patch that replaces it with what it says in the doc.
*** tex.el.~5.675.~ 2011-03-31 13:49:54.000000000 +0200
--- tex.el 2011-04-03 21:29:06.109119328 +0200
***************
*** 1425,1431 ****
(if (null buf)
(message "No buffer for %s." file)
(switch-to-buffer buf)
! (goto-line (car linecol))
(unless (= col -1)
(move-to-column col)))))
--- 1425,1433 ----
(if (null buf)
(message "No buffer for %s." file)
(switch-to-buffer buf)
! (push-mark (point) 'nomsg)
! (goto-char (point-min))
! (forward-line (1- line))
(unless (= col -1)
(move-to-column col)))))
- [AUCTeX-devel] TeX-source-correlate-sync-source uses goto-line,
Antoine Levitt <=