Questions tagged [thing-at-point]
The thing-at-point tag has no summary.
23 questions
0 votes
1 answer
56 views
Call interactively describe-symbol but print in a different frame
How can I call describe-symbol interactively, but print the result in help-frame. (defun qdesc () (interactive) (let* ( (help-frame (make-frame `( (name . "Help") ...
0 votes
1 answer
46 views
How can I write a function to modify the word before or after the cursor?
I have written the following function to shorten a string: (defun shorten-hash () "Shorten string (forward or backwards) to eight characters; particularly for shortening hashes" (...
0 votes
0 answers
73 views
Incremental Search by Yanking Thing at Point
I used to have the below function from https://www.emacswiki.org/emacs/SearchAtPoint#h5o-6 that allows to search for symbol under the cursor by typing C-s C-w, and by typing C-w, I would append the ...
0 votes
1 answer
137 views
Highlighting by context
Are there tools for highlighting by context? When writing my configuration code, I constantly get into the difficulty of figuring out where in the different block of code I am modifying. Looking for ...
0 votes
1 answer
65 views
limit-of-search to apply search-forward to just current paragraph
The search-forward function takes four arguments: (search-forward "target-string" limit-of-search what-to-do-if-search-fails repeat-count) ...
0 votes
1 answer
101 views
thing-at-point does not bound url properly due to backslash in url
I am trying to filter URLs and elisp thing-at-point 'url doesn't bounds a url properly because it has backslashes \in it. I believe that backslashes are unsafe in urls, but that's a separate topic. ...
8 votes
2 answers
1k views
How can I get list of all things supported by thing-at-point?
I want a complete list of things that works with thing-at-point. The documentation states: Possibilities include `symbol`, `list`, `sexp`, `defun`, `filename`, `url`, `email`, `word`, `sentence`, `...
2 votes
2 answers
658 views
How to copy the symbol name at point?
I want to copy the name of the symbol at point, without using the mouse. (global-set-key (kbd "C-s C-c") '<copy_word>) Possible word marking as i-search does on the following example usage (...