From: Heime via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: Zhengyi Fu <i@fuzy.me>
Cc: Heime via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org>
Subject: Re: include clause in interactive command
Date: Sun, 01 Dec 2024 12:00:16 +0000 [thread overview]
Message-ID: <APJcA5Axt2EU80eeCdWSkJGz6kraC1Ah3fj-rlShYFmQ6w7N0e6jMVoQIkxEzlx-ugL8tGqpwsXrJvOZbD1QrQfJdLGz_C3hO2M9FihTmNc=@protonmail.com> (raw)
In-Reply-To: <7e1162435f2226ee105fa78c36e0d23f@fuzy.me>
Sent with Proton Mail secure email.
On Sunday, December 1st, 2024 at 4:42 PM, Zhengyi Fu <i@fuzy.me> wrote:
> On 2024-11-30 19:38, Heime via Users list for the GNU Emacs text editor
> wrote:
>
> > I have an interactive function that changes some buffer settings.
> > But it also has an include clause (include 'orellana).
> >
> > Would one usually recommend calling it only once, or calling it
> > everytime a user uses the function is ok?
>
>
> What is an “include clause”?
A mistake. I am referring to require.
For instance, this will call require everytime the function is called
interactively. Should one call the require only once and avoid an
interactive function from calling a require command each time?
(defun feruler ()
(interactive)
(require 'ruler-mode)
(set-face-attribute 'ruler-mode-current-column nil
:background "#ff4500" :foreground "#ffffff"))
next prev parent reply other threads:[~2024-12-01 12:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-30 11:38 include clause in interactive command Heime via Users list for the GNU Emacs text editor
2024-12-01 4:42 ` Zhengyi Fu
2024-12-01 12:00 ` Heime via Users list for the GNU Emacs text editor [this message]
2024-12-02 7:07 ` Tassilo Horn
2024-12-02 7:50 ` mbork
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='APJcA5Axt2EU80eeCdWSkJGz6kraC1Ah3fj-rlShYFmQ6w7N0e6jMVoQIkxEzlx-ugL8tGqpwsXrJvOZbD1QrQfJdLGz_C3hO2M9FihTmNc=@protonmail.com' \
--to=help-gnu-emacs@gnu.org \
--cc=heimeborgia@protonmail.com \
--cc=i@fuzy.me \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).