help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: [External] : (bounds-of-thing-at-point 'number) ⇒ nil


From: Jean Louis
Subject: Re: [External] : (bounds-of-thing-at-point 'number) ⇒ nil
Date: Fri, 4 Feb 2022 19:55:09 +0300
User-agent: Mutt/2.1.5+104 (cd3a5c8) (2022-01-09)

* Drew Adams <drew.adams@oracle.com> [2022-02-04 18:50]:
> > > (eval-after-load "thingatpt"
> > >   '(when (require 'thingatpt+ nil t)
> > >      (tap-redefine-std-fns))
> > 
> > Thanks, that is useful and I have put it in my ~/.emacs.d/init.el
> > 
> > Then I expected this to work:
> > (bounds-of-thing-at-point 'number) on 123 and it did not work. I did
> > not look into the code.
> 
> Works for me, starting from `emacs -Q'
> (no init file).
> 
> What does `C-h f bounds-of-thing-at-point'
> tell you?  Does it say that it's an alias
> for `tap-bounds-of-thing-at-point'?

bounds-of-thing-at-point    is   a    compiled   Lisp    function   in
‘thingatpt.el’.

(bounds-of-thing-at-point THING)

> If not, did you actually load the library?
> (Put it in a dir in your `load-path'.)

Yes,  I did.  And  I loaded  also  with M-x  load-library  and I  have
directory with your scripts in my load-path

So I do not get it why it is not loading and overwriting functions.

After  evaluating  this:  (tap-redefine-std-fns)  I  have  got  it  to
work. Just this below is not working well.

(eval-after-load "thingatpt"
  '(when (require 'thingatpt+ nil t)
     (tap-redefine-std-fns))

-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/



reply via email to

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