[Top][All Lists]

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

Re: buff-menu.el changes

From: Miles Bader
Subject: Re: buff-menu.el changes
Date: 17 Dec 2002 10:30:37 +0900

Daniel Pfeiffer <address@hidden> writes:
> Being able to move over intangible text charwise but not linewise sounds
> counterintuitive and would seem a 21.3 bug.

Almost certainly; the `line-move' function is chock full of special
code to deal with intangible characters, which in my experience breaks
often, and never _really_ works correctly.  I don't really understand
the it that well, but I think the problem often involves hidden
newline characters.

If anyone's interested, here's a simple test-case that illustrates the

   (with-current-buffer (get-buffer-create "*test*")
     (insert "1: hello\n")
     (insert (propertize "2: cruel\n" 'invisible t 'intangible t))
     (insert "3: world\n")
     (insert "4:\n"))

After evaluating that, go to the *test* buffer, and move around using
C-n & C-p.  I can see the following bugs:

  (1) If the cursor is in the first column, you can't move from line
      "3:" to line "4:" using C-n (but C-p works all the way from the
      end of the buffer to the beginning).

  (2) If the cursor is in a different column, C-n seems to work
      correctly on all lines, but C-p won't move from line "3:" to
      line "1:" (it seems to work on all other line though).

Somebody has to do something, and it's just incredibly pathetic that it
has to be us.  -- Jerry Garcia

reply via email to

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