bug-auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#20317: additional function adviced


From: Uwe Brauer
Subject: bug#20317: additional function adviced
Date: Mon, 13 Apr 2015 15:22:11 +0200
User-agent: Gnus/5.13001 (Ma Gnus v0.10) XEmacs/21.5-b34 (linux)

Hello

Some important information 

I have the following non-standard setting


(defadvice LaTeX-fill-region-as-paragraph (around LaTeX-sentence-filling)
  "Start each sentence on a new line."
  (let ((from (ad-get-arg 0))
        (to-marker (set-marker (make-marker) (ad-get-arg 1)))
        tmp-end)
    (while (< from (marker-position to-marker))
      (forward-sentence)
      ;; might have gone beyond to-marker---use whichever is smaller:
      (ad-set-arg 1 (setq tmp-end (min (point) (marker-position to-marker))))
      ad-do-it
      (ad-set-arg 0 (setq from (point)))
      (unless (or (looking-back "^\\s *")
                  (looking-at "\\s *$"))
        (LaTeX-newline)))
    (set-marker to-marker nil)))






(ad-activate 'LaTeX-fill-region-as-paragraph)


Rationale: this function (found in 
http://pleasefindattached.blogspot.com.es/2011/12/emacsauctex-sentence-fill-greatly.html)
 is written to make it easier to use version-control tools for Latex
 file.

This function is however the source of the problems I reported in my bug
report and removing it solves the problem reported. So the bug should be
closed. Sorry for the noise.

Uwe Brauer 






reply via email to

[Prev in Thread] Current Thread [Next in Thread]