[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#24627: 24.5; (thing-at-point 'list) may return a non-empty string wi
From: |
Tino Calancha |
Subject: |
bug#24627: 24.5; (thing-at-point 'list) may return a non-empty string without a list |
Date: |
Tue, 11 Oct 2016 12:42:35 +0900 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
Andreas Röhler <andreas.roehler@easy-emacs.de> writes:
> On 06.10.2016 11:43, Tino Calancha wrote:
>
> bounds-of-thing-at-point:
>
> ;; Try moving forward, then back.
> (funcall ;; First move to end.
> (or (get thing 'end-op)
>
> Still think bounds-of-thing-at-point should move backward first
>
> parse-partial-sexp offers some handy info for beginning, not end
I agree with you that `bounds-of-thing-at-point' needs some work. I have
noticed other issues with it. We might work on them once we fix this bug.
In the example in this thread the problem arise because
`thing-at-point-bounds-of-list-at-point', which is the actual
function doing the job here. We need to fix this function.
Without it, the previous example works:
emacs -Q thingatpt.el -eval "(require 'thingatpt)"
M-: (put 'list 'bounds-of-thing-at-point nil) RET
> C-p
M-: (thing-at-point 'list t) RET
=> nil
- bug#24627: 24.5; (thing-at-point 'list) may return a non-empty string without a list, Tino Calancha, 2016/10/06
- bug#24627: 24.5; (thing-at-point 'list) may return a non-empty string without a list, Andreas Röhler, 2016/10/07
- bug#24627: 24.5; (thing-at-point 'list) may return a non-empty string without a list,
Tino Calancha <=
- bug#24627: 24.5; (thing-at-point 'list) may return a non-empty string without a list, Andreas Röhler, 2016/10/11
- bug#24627: 24.5; (thing-at-point 'list) may return a non-empty string without a list, Tino Calancha, 2016/10/11
- bug#24627: 24.5; (thing-at-point 'list) may return a non-empty string without a list, Noam Postavsky, 2016/10/11
- bug#24627: 24.5; (thing-at-point 'list) may return a non-empty string without a list, Tino Calancha, 2016/10/11
- bug#24627: 24.5; (thing-at-point 'list) may return a non-empty string without a list, Noam Postavsky, 2016/10/11
- bug#24627: 24.5; (thing-at-point 'list) may return a non-empty string without a list, Tino Calancha, 2016/10/11
- bug#24627: "internal" designation [was: bug#24627: 24.5; (thing-at-point 'list) ...], Drew Adams, 2016/10/11
- bug#24627: "internal" designation [was: bug#24627: 24.5; (thing-at-point 'list) ...], Drew Adams, 2016/10/11
- bug#24627: 24.5; (thing-at-point 'list) may return a non-empty string without a list, Andreas Röhler, 2016/10/11
- bug#24627: 24.5; (thing-at-point 'list) may return a non-empty string without a list, Tino Calancha, 2016/10/12