unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* question about narrowed behavior of next-property-change et al.
@ 2003-01-23  8:50 Miles Bader
  2003-01-23 16:12 ` Stefan Monnier
  2003-01-24  5:43 ` Richard Stallman
  0 siblings, 2 replies; 10+ messages in thread
From: Miles Bader @ 2003-01-23  8:50 UTC (permalink / raw)


Info contains the following check to avoid refontifying fontified nodes:

   (defun Info-fontify-node ()
     ;; Only fontify the node if it hasn't already been done.
     (unless (next-property-change (point-min))
        ...

However, this often doesn't always work properly because it assumes that
`next-property-change' will return nil if there's no property change
before the narrowed end of the buffer, and in fact if there's a
property change _beyond_ the narrowed end, it will return (point-max),
even though the user passed a LIMIT arg of nil.

It's easy enough to change Info-fontify-node to be more paranoid, but to
me, the current behavior of `next-property-change' seems wrong in this
case -- I think if there's no property change before (point-max), and
the user passed LIMIT == nil, then it should return nil, regardless of
whether (point-max) is due to narrowing or not.

Any comments before I make such a change?

-Miles
-- 
`...the Soviet Union was sliding in to an economic collapse so comprehensive
 that in the end its factories produced not goods but bads: finished products
 less valuable than the raw materials they were made from.'  [The Economist]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2003-01-29  0:06 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-23  8:50 question about narrowed behavior of next-property-change et al Miles Bader
2003-01-23 16:12 ` Stefan Monnier
2003-01-24  5:43 ` Richard Stallman
2003-01-24  6:06   ` Miles Bader
2003-01-25 19:23     ` Richard Stallman
2003-01-26  1:12       ` Stefan Monnier
2003-01-27  2:31         ` Richard Stallman
2003-01-27 13:33           ` Stefan Monnier
2003-01-27 14:52             ` Miles Bader
2003-01-29  0:06               ` Richard Stallman

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).