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

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

Re: include clause in interactive command


From: Heime
Subject: Re: include clause in interactive command
Date: Sun, 01 Dec 2024 12:00:16 +0000





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"))






reply via email to

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