From: Jean Louis <bugs@gnu.support>
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Any word in mail-mode is recognized as (thing-at-point 'symbol)
Date: Tue, 3 Jan 2023 16:17:24 +0300 [thread overview]
Message-ID: <Y7Qq5PgKkxXO2leg@protected.localdomain> (raw)
In-Reply-To: <87358r297g.fsf@web.de>
* Michael Heerdegen <michael_heerdegen@web.de> [2023-01-03 13:41]:
> Jean Louis <bugs@gnu.support> writes:
>
> > > That's not what it does. Whatever you mean by "defined symbol" you
> > > have to check yourself (e.g. using `intern-soft').
> >
> > It becomes confusing. Is any word in any text buffer than "symbol"?
>
> Drew explained a lot of background that should help. The short answer
> is more or less "yes".
Thank you, I have clarified some confusion. For now I have
improved. It will get fun when I start designing various impact by
using prefixes like C-1 C-2 etc.
(defun hyperscope-action-button ()
(interactive)
(cond ((thing-at-point 'uuid) (rcd-db-uuid-action (thing-at-point 'uuid)))
((thing-at-point 'url) (browse-url (thing-at-point 'url)))
((thing-at-point 'email) (rcd-write-email user-full-name user-mail-address (thing-at-point 'email) (thing-at-point 'email)))
((and (thing-at-point 'symbol) (boundp (symbol-at-point))) (find-variable (symbol-at-point)))
((and (thing-at-point 'symbol) (fboundp (symbol-at-point))) (find-function (symbol-at-point)))
((thing-at-point 'number) (hyperscope-isolate (thing-at-point 'number)))
((thing-at-point 'word) (funcall (cond ((fboundp 'wordnut-search) 'wordnut-search)
((fboundp 'dictionary-search) 'dictionary-search))
(thing-at-point 'word)))
(t (rcd-message "Hyperscope action not defined."))))
By using prefixes like C-1, C-2, I can tell for example
for (thing-at-point 'word):
- without prefix, look up in local or remote server dictionary
- for C-0 try to expand the word
- for C-1 is to quote the word with single quotes
- for C-2 is to quote the word with double quotes
- for C-3 look up the word in online WWW dictionary like Wiktionary or Duden
- etc. etc.
--
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
In support of Richard M. Stallman
https://stallmansupport.org/
next prev parent reply other threads:[~2023-01-03 13:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-02 10:12 Any word in mail-mode is recognized as (thing-at-point 'symbol) Jean Louis
2023-01-02 11:39 ` Michael Heerdegen
2023-01-02 16:46 ` Jean Louis
2023-01-03 10:39 ` Michael Heerdegen
2023-01-03 13:17 ` Jean Louis [this message]
2023-01-02 17:08 ` [External] : " Drew Adams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y7Qq5PgKkxXO2leg@protected.localdomain \
--to=bugs@gnu.support \
--cc=help-gnu-emacs@gnu.org \
--cc=michael_heerdegen@web.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.