[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-diffs] [elpa] externals/auctex 0d8f8a2 14/48: Prevent spurious n
From: |
Tassilo Horn |
Subject: |
[AUCTeX-diffs] [elpa] externals/auctex 0d8f8a2 14/48: Prevent spurious newlines to be added |
Date: |
Sun, 16 Sep 2018 01:47:21 -0400 (EDT) |
branch: externals/auctex
commit 0d8f8a2dd252f86a0484b1cd9989064c869a8ac1
Author: Ikumi Keita <address@hidden>
Commit: Ikumi Keita <address@hidden>
Prevent spurious newlines to be added
* tex-fold.el (TeX-fold-overfull-p): Restore mandatory `and'. The
removal of xemacs compatibility code previously done was a bit too
aggressive.
---
tex-fold.el | 29 +++++++++++++++--------------
1 file changed, 15 insertions(+), 14 deletions(-)
diff --git a/tex-fold.el b/tex-fold.el
index 16dacae..82b6ca8 100644
--- a/tex-fold.el
+++ b/tex-fold.el
@@ -569,20 +569,21 @@ TYPE can be either 'env for environments, 'macro for
macros or
"Return t if an overfull line will result after adding an overlay.
The overlay extends from OV-START to OV-END and will display the
string DISPLAY-STRING."
- (save-excursion
- (goto-char ov-end)
- (search-backward "
" ov-start t))
- (not (string-match "
" display-string))
- (> (+ (- ov-start
- (save-excursion
- (goto-char ov-start)
- (line-beginning-position)))
- (length display-string)
- (- (save-excursion
- (goto-char ov-end)
- (line-end-position))
- ov-end))
- (current-fill-column)))
+ (and
+ (save-excursion
+ (goto-char ov-end)
+ (search-backward "
" ov-start t))
+ (not (string-match "
" display-string))
+ (> (+ (- ov-start
+ (save-excursion
+ (goto-char ov-start)
+ (line-beginning-position)))
+ (length display-string)
+ (- (save-excursion
+ (goto-char ov-end)
+ (line-end-position))
+ ov-end))
+ (current-fill-column))))
(defun TeX-fold-macro-nth-arg (n macro-start &optional macro-end delims)
"Return a property list of the argument number N of a macro.
- [AUCTeX-diffs] [elpa] externals/auctex updated (0e878e9 -> f761ab4), Tassilo Horn, 2018/09/16
- [AUCTeX-diffs] [elpa] externals/auctex 0d8f8a2 14/48: Prevent spurious newlines to be added,
Tassilo Horn <=
- [AUCTeX-diffs] [elpa] externals/auctex 52d6a54 03/48: Make `TeX-clean' to work in ams-tex-mode, Tassilo Horn, 2018/09/16
- [AUCTeX-diffs] [elpa] externals/auctex cff0781 01/48: Fix incorrect FSF address, Tassilo Horn, 2018/09/16
- [AUCTeX-diffs] [elpa] externals/auctex e783b97 04/48: Fix TeX-dwim-master, Tassilo Horn, 2018/09/16
- [AUCTeX-diffs] [elpa] externals/auctex f107ca1 02/48: Make compatible with emacs 24, Tassilo Horn, 2018/09/16
- [AUCTeX-diffs] [elpa] externals/auctex 6a17a52 24/48: ; * doc/changes.texi (News in 12.2): Add news about removed option., Tassilo Horn, 2018/09/16
- [AUCTeX-diffs] [elpa] externals/auctex 4775f96 21/48: ; * tex-jp.el (japanese-TeX-self-insert-command): Silence byte compiler., Tassilo Horn, 2018/09/16
- [AUCTeX-diffs] [elpa] externals/auctex a16a510 22/48: Replace another cl function with cl-lib, Tassilo Horn, 2018/09/16
- [AUCTeX-diffs] [elpa] externals/auctex 15d3d97 08/48: Quote %b expansion string for SumatraPDF, Tassilo Horn, 2018/09/16
- [AUCTeX-diffs] [elpa] externals/auctex 6112351 12/48: ; * style/geometry.el (LaTeX-geometry-preamble-key-val-options): Add luatex key., Tassilo Horn, 2018/09/16
- [AUCTeX-diffs] [elpa] externals/auctex 4afd633 11/48: Update key=val options to geometry package v5.8, Tassilo Horn, 2018/09/16