all messages for Emacs-related lists mirrored at yhetil.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 22:21:24 +0100	[thread overview]
Message-ID: <265053b2-417f-4feb-84ec-8e56886febac@vodafonemail.de> (raw)
In-Reply-To: <83jzpgpm19.fsf@gnu.org>

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

On 2023-12-14  21:27, Eli Zaretskii wrote:
>> Date: Thu, 14 Dec 2023 21:03:02 +0100
>> Cc: emacs-devel@gnu.org, monnier@iro.umontreal.ca
>> From: Jens Schmidt <jschmidt4gnu@vodafonemail.de>
>>
>> I understood from your previous email [1] that the current location of
>> where "rmc" is loaded in loadup.el is not optimal.
> 
> Not "not optimal", incorrect.  It should be before leim-list.el.
> 
>> How about moving it to the block that also loads "minibuffer"?
> 
> Why risk issues that could cause?  I'd leave it the last loaded
> package.  We don't have any real reason to move it higher up, do we?

I thought it'd feel lonely there.  On a more serious note, there are
more files that seem to race for the last places ("cus-start", for
example), and I thought it would be helpful to have one candidate
less wanting for a special position.

Anyway, if it should be before leim-list.el, attached is it.


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

From 29973cba6200c1bb7659a2e02dc5aaa5195c654a 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 | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lisp/loadup.el b/lisp/loadup.el
index 1f959464b23..d2a4c6a7cf7 100644
--- a/lisp/loadup.el
+++ b/lisp/loadup.el
@@ -387,6 +387,9 @@
     (load "tooltip"))
 (load "international/iso-transl") ; Binds Alt-[ and friends.
 
+;; Used by `kill-buffer', for instance.
+(load "emacs-lisp/rmc")
+
 ;; This file doesn't exist when building a development version of Emacs
 ;; from the repository.  It is generated just after temacs is built.
 (load "leim/leim-list.el" t)
@@ -406,9 +409,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 21:21 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
2023-12-14 20:27             ` Eli Zaretskii
2023-12-14 21:21               ` Jens Schmidt [this message]
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=265053b2-417f-4feb-84ec-8e56886febac@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 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.