[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#13949: 24.3.50; `fill-paragraph' should not always put the buffer as
From: |
Stefan Monnier |
Subject: |
bug#13949: 24.3.50; `fill-paragraph' should not always put the buffer as modified |
Date: |
Thu, 14 Mar 2013 09:38:08 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
> Well, since the `fill-paragraph' command at step #4 leaved the buffer
> with the same contents, flagging the buffer as modified was
> unnecessary in this case.
AFAIK there are two ways to go about it:
- compare the sha1 of the paragraph before and after filling and reset
buffer-modified-p if it shows the text hasn't changed.
- change fill.el so that filling paragraph doesn't just "unfill whole
paragraph + fill whole paragraph" but instead goes line by line, and
only modifies the text where there's a need to.
The second option has the advantage that it truly doesn't modify the
buffer (hence, less font-lock work, less redisplay work, and also
text-properties, overlays and markers aren't affected, contrary to the
current behavior), but it requires more coding effort.
Stefan
- bug#13949: 24.3.50; `fill-paragraph' should not always put the buffer as modified, Dani Moncayo, 2013/03/13
- bug#13949: 24.3.50; `fill-paragraph' should not always put the buffer as modified, Eli Zaretskii, 2013/03/13
- bug#13949: 24.3.50; `fill-paragraph' should not always put the buffer as modified, Dani Moncayo, 2013/03/14
- bug#13949: 24.3.50; `fill-paragraph' should not always put the buffer as modified,
Stefan Monnier <=
- bug#13949: 24.3.50; `fill-paragraph' should not always put the buffer as modified, Eli Zaretskii, 2013/03/14
- bug#13949: 24.3.50; `fill-paragraph' should not always put the buffer as modified, Andreas Röhler, 2013/03/14
- bug#13949: 24.3.50; `fill-paragraph' should not always put the buffer as modified, Eli Zaretskii, 2013/03/14
- bug#13949: 24.3.50; `fill-paragraph' should not always put the buffer as modified, Andreas Röhler, 2013/03/14
- bug#13949: 24.3.50; `fill-paragraph' should not always put the buffer as modified, Eli Zaretskii, 2013/03/14
- bug#13949: 24.3.50; `fill-paragraph' should not always put the buffer as modified, Andreas Röhler, 2013/03/14
- bug#13949: 24.3.50; `fill-paragraph' should not always put the buffer as modified, Stefan Monnier, 2013/03/15
- bug#13949: 24.3.50; `fill-paragraph' should not always put the buffer as modified, Dani Moncayo, 2013/03/15
- bug#13949: 24.3.50; `fill-paragraph' should not always put the buffer as modified, Eli Zaretskii, 2013/03/14
- bug#13949: 24.3.50; `fill-paragraph' should not always put the buffer as modified, Dani Moncayo, 2013/03/14