unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Emanuel Berg via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: About the activation of minor modes
Date: Sun, 06 Mar 2022 06:01:24 +0100	[thread overview]
Message-ID: <87czizisij.fsf@zoho.eu> (raw)
In-Reply-To: CADs++6jFVo1CB7+8ruKyJe0jmrRO+-4=4mseMzMUokC3YswpeQ@mail.gmail.com

Eduardo Ochs wrote:

> The function `find-epp' of eev pretty-prints its argument
> and shows the result in a temporary buffer, and this
>
>   (find-epp (macroexpand '
>
>     (define-minor-mode A-mode
>       "Help for A-mode"
>       :init-value nil
>       :global nil
>       :lighter " A")
>
>   ))
>
> shows exactly what this `define-minor-mode' does. I _guess_
> that it should be easy to modify the (define-minor-mode
> A-mode ...)

Yeah ... _guess_es are that should be pretty easy: obscure
3rd-party software, `macroexpand', a quoted piece of Lisp (a
note to the OP, a `quote' turns Lisp software into data,
however now the macro ... err, whatever).

Study this example instead.

What do you see happening in the below code?

(abbrev-mode           -1)
(auto-encryption-mode  -1)
(file-name-shadow-mode -1)
(gpm-mouse-mode        -1)
(menu-bar-mode         -1)
(tooltip-mode          -1)

(font-lock-mode)
(transient-mark-mode)

-- 
underground experts united
https://dataswamp.org/~incal




  reply	other threads:[~2022-03-06  5:01 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-05  2:47 About the activation of minor modes angelomolina--- via Users list for the GNU Emacs text editor
2022-03-05  6:20 ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-03-05 15:37   ` angelomolina--- via Users list for the GNU Emacs text editor
2022-03-05 21:49     ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-03-05 22:20     ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-03-07 23:01       ` angelomolina--- via Users list for the GNU Emacs text editor
2022-03-08 18:06         ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-03-08 23:09           ` angelomolina--- via Users list for the GNU Emacs text editor
2022-03-09  0:08             ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-03-09  9:46               ` angelomolina--- via Users list for the GNU Emacs text editor
2022-03-09 10:24               ` angelomolina--- via Users list for the GNU Emacs text editor
2022-03-06  3:06 ` Eduardo Ochs
2022-03-06  5:01   ` Emanuel Berg via Users list for the GNU Emacs text editor [this message]
2022-03-06  5:26     ` Eduardo Ochs
2022-03-06  6:08       ` Emanuel Berg via Users list for the GNU Emacs text editor

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=87czizisij.fsf@zoho.eu \
    --to=help-gnu-emacs@gnu.org \
    --cc=moasenwood@zoho.eu \
    /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).