unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Tyler Grinn <tylergrinn@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: [ELPA] New packages: boxy, boxy-headlines
Date: Mon, 04 Oct 2021 21:47:26 -0400	[thread overview]
Message-ID: <jwv8rz89rm6.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87v92c7571.fsf@gmail.com> (Tyler Grinn's message of "Mon, 04 Oct 2021 19:14:58 -0400")

> Defface wasn't working for me when updating the color scheme. Repeated
> calls to defface don't seem to apply changes, while directly modifying
> the face-defface-spec does.

AFAIK, same as for `defvar`, this is on-purpose.
If you want to re-apply the standard definition, the recommended way is
to use `C-M-x`.

>> - Your packages have no ;;;###autoload cookie.  The doc of boxy.el
>>   doesn't make it clear what's a likely entry point (i.e. how to start
>>   using it), but for `boxy-headings`, it seems at least the
>>   `boxy-headlines` function should have such a cookie.
>
> I think you're right about the boxy-headlines command. boxy.el provides
> the boxy major mode and related commands, should those be autoloaded?

IIUC `boxy.el` (including the major mode) is not meant to be used
directly by the end user, so maybe it doesn't need any autoloads because
the clients will just (require 'boxy) at the top of their file.
I don't know enough about how `boxy.el` is used by client packages:
you're in a better position to know.

>> Oh, I forgot the main question (the one that got me looking more
>> closely in the first place): why do you use `cl-defmethod` everywhere
>> yet with only ever a single method defined under the same name?
> That was so (oref) and (oset) can work without ELC complaining about
> 'unknown slots'. Is there another macro that uses class specializers?

Hmm... I don't understand why using `cl-defmethod` would silence
"unknown slot" warnings.  AFAIK those warnings depend solely on whether
the byte-compiler has seen the corresponding `defclass`.

> Also, why not assign custom variables and faces to a group?

Removing those `:group` will not stop them from being assigned to those
groups (IOW those `:group` args are simply redundant because vars and
faces are assigned (by default) to the last group defined with `defgroup`).


        Stefan




  reply	other threads:[~2021-10-05  1:47 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-04 20:08 [ELPA] New packages: boxy, boxy-headlines Tyler Grinn
2021-10-04 21:54 ` Stefan Monnier
2021-10-04 22:02   ` Stefan Monnier
2021-10-04 23:14     ` Tyler Grinn
2021-10-05  1:47       ` Stefan Monnier [this message]
2021-10-05  3:44         ` Tyler Grinn
2021-10-05 12:30           ` Stefan Monnier
2021-10-05 16:35             ` Tyler Grinn
2021-10-05 19:57               ` Stefan Monnier
2021-10-05 18:03             ` Tyler Grinn
2021-10-05 19:56               ` Stefan Monnier
2021-10-06 16:35                 ` Tyler Grinn
2021-10-13  8:48             ` tumashu
2021-10-13 12:27               ` Stefan Monnier

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=jwv8rz89rm6.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=tylergrinn@gmail.com \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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