[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#8667: 24.0.50; `bounds-of-thing-at-point' returns (N . N) for `comme
From: |
Drew Adams |
Subject: |
bug#8667: 24.0.50; `bounds-of-thing-at-point' returns (N . N) for `comment' |
Date: |
Fri, 13 May 2011 09:11:07 -0700 |
> I think `forward-whitespace' is incorrect: \n should be \n+, like this:
>
> (defun forward-whitespace (arg)
> (interactive "p")
> (if (natnump arg)
> (re-search-forward "[ \t]+\\|\n+" nil 'move arg)
> (while (< arg 0)
> (if (re-search-backward "[ \t]+\\|\n+" nil 'move)
> (or (eq (char-after (match-beginning 0)) 10)
> (skip-chars-backward " \t")))
> (setq arg (1+ arg)))))
Note too that `forward-whitespace' is not currently used anywhere in the Emacs
source files. Can we please make this change, so that it always moves over all
contiguous whitespace and so takes point up to a non-whitespace char (or eob)?
- bug#8667: 24.0.50; `bounds-of-thing-at-point' returns (N . N) for `comment', Drew Adams, 2011/05/12
- bug#8667: 24.0.50; `bounds-of-thing-at-point' returns (N . N) for `comment', Drew Adams, 2011/05/12
- bug#8667: 24.0.50; `bounds-of-thing-at-point' returns (N . N) for `comment', Kevin Rodgers, 2011/05/13
- bug#8667: 24.0.50; `bounds-of-thing-at-point' returns (N . N) for `comment', Stefan Monnier, 2011/05/13
- bug#8667: 24.0.50; `bounds-of-thing-at-point' returns (N . N) for `comment', Drew Adams, 2011/05/13
- bug#8667: 24.0.50; `bounds-of-thing-at-point' returns (N . N) for `comment',
Drew Adams <=
- bug#8667: 24.0.50; `bounds-of-thing-at-point' returns (N . N) for `comment', Stefan Monnier, 2011/05/13
- bug#8667: 24.0.50; `bounds-of-thing-at-point' returns (N . N) for `comment', Drew Adams, 2011/05/19
- bug#8667: 24.0.50; `bounds-of-thing-at-point' returns (N . N) for `comment', Stefan Monnier, 2011/05/19
- bug#8667: 24.0.50; `bounds-of-thing-at-point' returns (N . N) for `comment', Drew Adams, 2011/05/21
- bug#8667: 24.0.50; `bounds-of-thing-at-point' returns (N . N) for `comment', Eli Zaretskii, 2011/05/21
- bug#8667: 24.0.50; `bounds-of-thing-at-point' returns (N . N) for `comment', Drew Adams, 2011/05/21
- bug#8667: 24.0.50; `bounds-of-thing-at-point' returns (N . N) for `comment', Eli Zaretskii, 2011/05/21
- bug#8667: 24.0.50; `bounds-of-thing-at-point' returns (N . N) for `comment', Drew Adams, 2011/05/21
- bug#8667: 24.0.50; `bounds-of-thing-at-point' returns (N . N) for `comment', Drew Adams, 2011/05/19
- bug#8667: 24.0.50; `bounds-of-thing-at-point' returns (N . N) for `comment', Stefan Monnier, 2011/05/19