[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#34952: files with/out final newline look the same no matter what
From: |
Stefan Monnier |
Subject: |
bug#34952: files with/out final newline look the same no matter what |
Date: |
Sat, 08 Aug 2020 09:14:35 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
>> font-lock is "per buffer" whereas point is "per window", so I'm not sure
>> what "*the* original point" should mean.
> I guess it's not a well-defined question... but some action triggered
> the fontification, and I guess what's interesting question here is "what
> was point in the window that triggered the fontification"?
In GNU ELPA's `nhexl-mode` I had a similar need, which I solved by using
a `nhexl--point` variable (updated via `post-command-hook`) to keep
track of `point`.
It does mean that the package can't properly handle the case where the
buffer is simultaneously displayed in several windows :-(
Stefan
- bug#34952: files with/out final newline look the same no matter what, Lars Ingebrigtsen, 2020/08/06
- bug#34952: files with/out final newline look the same no matter what, Lars Ingebrigtsen, 2020/08/07
- bug#34952: files with/out final newline look the same no matter what, Eli Zaretskii, 2020/08/07
- bug#34952: files with/out final newline look the same no matter what, Lars Ingebrigtsen, 2020/08/07
- bug#34952: files with/out final newline look the same no matter what, Lars Ingebrigtsen, 2020/08/07
- bug#34952: files with/out final newline look the same no matter what, Eli Zaretskii, 2020/08/07
- bug#34952: files with/out final newline look the same no matter what, Lars Ingebrigtsen, 2020/08/07
- bug#34952: files with/out final newline look the same no matter what, Stefan Monnier, 2020/08/07
- bug#34952: files with/out final newline look the same no matter what, Lars Ingebrigtsen, 2020/08/08
- bug#34952: files with/out final newline look the same no matter what,
Stefan Monnier <=
- bug#34952: files with/out final newline look the same no matter what, Basil L. Contovounesios, 2020/08/07
- bug#34952: files with/out final newline look the same no matter what, Lars Ingebrigtsen, 2020/08/08