all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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: byte compiler, `modify-face', and "Programmatically" (was: Re: Programmatically maximize Emacs during startup?)
Date: Sat, 12 Dec 2020 02:19:38 +0100	[thread overview]
Message-ID: <87sg8bhlcl.fsf@zoho.eu> (raw)
In-Reply-To: SJ0PR03MB5455E3F61E09E41A7E14C2999BF10@SJ0PR03MB5455.namprd03.prod.outlook.com

What is this word that suddenly is everywhere,
"programmatically"? I know what it means of course but I always
felt you do everything the same way in Emacs, only in different
ways, right?

There are just some technicalities to the different flows and
executions and evaluations and invocations, and while they are
good to understand, it is nothing to focus on, right?

The documentation even says, in Lisp, don't use this, instead
do etc etc.

While I agree with the documentation, this only show it is all
the same!

BTW every time the documentation says that kind of thing,
a corresponding warning from the byte-compiler should come (if
possible to detect, of course, but often it is really simple so
why not? if it doesn't - consider it a bug.

E.g., use `modify-face' in code, the byte compiler should warn,
as it does in the docstring,

  For non-interactive use, ‘set-face-attribute’ is preferred.

Well, it is just an example.

That makes sense :)

-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal




      parent reply	other threads:[~2020-12-12  1:19 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-04  3:42 Programmatically maximize Emacs during startup? David Masterson
2020-12-04  4:04 ` Christopher Dimech
2020-12-04  8:34   ` Eli Zaretskii
2020-12-04 15:03     ` Christopher Dimech
2020-12-05  3:05   ` David Masterson
2020-12-05  3:11     ` Christopher Dimech
2020-12-04  6:12 ` Jean Louis
2020-12-04  6:59 ` Thien-Thi Nguyen
2020-12-05  3:09   ` David Masterson
2020-12-05 10:06     ` Thien-Thi Nguyen
2020-12-06  2:05       ` David Masterson
2020-12-06  2:38       ` Michael Heerdegen
2020-12-06  9:17         ` Marcin Borkowski
2020-12-06 22:35           ` Michael Heerdegen
2020-12-04  7:38 ` Joost Kremers
2020-12-04  7:48   ` Jean Louis
2020-12-04 11:33   ` Eli Zaretskii
2020-12-04 13:26     ` Pankaj Jangid
2020-12-05  3:10   ` David Masterson
2020-12-05  4:21     ` David Masterson
2020-12-05  5:07       ` Pankaj Jangid
2020-12-06  2:03         ` David Masterson
2020-12-12  1:19 ` Emanuel Berg via Users list for the GNU Emacs text editor [this message]

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=87sg8bhlcl.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.
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.