unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Jens Schmidt <jschmidt4gnu@vodafonemail.de>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org, monnier@iro.umontreal.ca
Subject: Re: master 3b1fd42732f: * lisp/loadup.el: Check advice after `rmc.el`; turn error into warning
Date: Thu, 14 Dec 2023 21:03:02 +0100	[thread overview]
Message-ID: <7996e24d-125e-4948-a3ad-9cb226884668@vodafonemail.de> (raw)
In-Reply-To: <83zfydqmcr.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 494 bytes --]

On 2023-12-14  08:23, Eli Zaretskii wrote:

> So I don't think we should remove it from loadup.el at this time.

Agreed, and thanks for the background.

I understood from your previous email [1] that the current location of
where "rmc" is loaded in loadup.el is not optimal.

How about moving it to the block that also loads "minibuffer"?  Attached
patch does that and bootstraps and checks without error and warnings.

[1] https://lists.gnu.org/archive/html/emacs-devel/2023-12/msg00320.html


[-- Attachment #2: 0001-Move-preload-of-rmc-to-a-more-appropriate-place.patch --]
[-- Type: text/x-patch, Size: 1225 bytes --]

From 2e8a6c78c140390b2538b89906f11986815e7f53 Mon Sep 17 00:00:00 2001
From: Jens Schmidt <jschmidt4gnu@vodafonemail.de>
Date: Thu, 14 Dec 2023 20:47:22 +0100
Subject: [PATCH] ; Move preload of rmc to a more appropriate place

See discussion on
https://lists.gnu.org/archive/html/emacs-devel/2023-12/msg00309.html.

* lisp/loadup.el ("emacs-lisp/rmc"): Move preload to a more
appropriate place.
---
 lisp/loadup.el | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/lisp/loadup.el b/lisp/loadup.el
index 1f959464b23..1692b6ee7f3 100644
--- a/lisp/loadup.el
+++ b/lisp/loadup.el
@@ -256,6 +256,7 @@
 (load "emacs-lisp/syntax")
 (load "font-lock")
 (load "jit-lock")
+(load "emacs-lisp/rmc") ; Used by `kill-buffer', for instance.
 
 (load "mouse")
 ;; This loading happens on Android despite scroll bars being
@@ -406,9 +407,6 @@
       (message "Warning: Change in load-path due to site-load will be \
 lost after dumping")))
 
-;; Used by `kill-buffer', for instance.
-(load "emacs-lisp/rmc")
-
 ;; Actively check for advised functions during preload since:
 ;; - advices in Emacs's core are generally considered bad style;
 ;; - `Snarf-documentation' looses docstrings of primitives advised
-- 
2.30.2


  reply	other threads:[~2023-12-14 20:03 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <170197287539.12661.7539324399514249195@vcs2.savannah.gnu.org>
     [not found] ` <20231207181435.BCB79C0C6AD@vcs2.savannah.gnu.org>
2023-12-12 21:48   ` master 3b1fd42732f: * lisp/loadup.el: Check advice after `rmc.el`; turn error into warning Jens Schmidt
2023-12-12 23:13     ` Stefan Monnier
2023-12-13 11:46     ` Eli Zaretskii
2023-12-13 23:03       ` Jens Schmidt
2023-12-14  7:23         ` Eli Zaretskii
2023-12-14 20:03           ` Jens Schmidt [this message]
2023-12-14 20:27             ` Eli Zaretskii
2023-12-14 21:21               ` Jens Schmidt
2023-12-16 13:07                 ` Eli Zaretskii

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=7996e24d-125e-4948-a3ad-9cb226884668@vodafonemail.de \
    --to=jschmidt4gnu@vodafonemail.de \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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).