From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.devel Subject: Re: replacement of find-file-not-found-hooks Date: Tue, 23 Jul 2024 13:38:01 -0700 Message-ID: References: <87a5icjeua.fsf@mat.ucm.es> <87o76sarrq.fsf@igel.home> <87plr6g57s.fsf@mat.ucm.es> <877cdc8us0.fsf@mat.ucm.es> <87o76ojyaf.fsf@posteo.net> <867cdc9w7p.fsf@gnu.org> <877cdbsy0x.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36637"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Philip Kaludercic , rms@gnu.org, emacs-devel@gnu.org To: Uwe Brauer , Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jul 23 22:38:46 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sWMHV-0009Mm-JA for ged-emacs-devel@m.gmane-mx.org; Tue, 23 Jul 2024 22:38:45 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sWMGt-0002LT-Eo; Tue, 23 Jul 2024 16:38:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sWMGs-0002LL-Lz for emacs-devel@gnu.org; Tue, 23 Jul 2024 16:38:06 -0400 Original-Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sWMGr-0003YE-0Z; Tue, 23 Jul 2024 16:38:06 -0400 Original-Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-58f9874aeb4so4886124a12.0; Tue, 23 Jul 2024 13:38:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721767083; x=1722371883; darn=gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:references:in-reply-to:from:from:to:cc:subject:date :message-id:reply-to; bh=PQpueIhff57WZ7HQEYRnr0gHMX/O8N+fMzSaGNXAFKI=; b=bP91G6byHnokTJXlWYrk8nF1pGH2vuuRAeWvyGTniYe2u2vtGRYhjk0MryvRBxgJhJ Ek4eT4fOxdn97GKVS4Bdm8YwEb+2dJ4JiFg1RUNlRkIFz1u/mnHtGklFs0Zrr8NLhHJw fgb3GmRC8melVN7Mzgkt/wUoSD5a8ccn50L9Eqvt4FMUROHZAEqjOl5j+nfW9fddAtZt W8Gc2W6nwehwhkg9sWUAGhCvAXUdn8EescGm/Wiey66L7rdpJjXW+3pq/5G9/b1/Kq3k nyoc56j0YrE/Tmr+alIyGdnL0K7E7C9KyMIseh6j5AoFsN8XKLVVGLo00hwS07YOz4Sp jniQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721767083; x=1722371883; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:references:in-reply-to:from:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=PQpueIhff57WZ7HQEYRnr0gHMX/O8N+fMzSaGNXAFKI=; b=ES1DopZ2EmJoaijgt16jHDv/ShOlkV3ebqzaq8FhlZa2wlXw10fgjKr+kGTrfUeUSl KBFhn/aCklUMtTluTG4RcirIeq6513zDhL8NoEWX9Qxdyd4shlqfIbT6qw0ATe1TUw/p nxx7Rr1RuekSihaGqEvdPc/XKzq9VJL8zNIfIRrXkX9Ls+kWUtpgze167vzChfbu7rYq BQd4lfMbM/tAlIiuqnbTG/gOhfQfrF4klCYBHqCiTDS7moAeP82AXg5nSkPehsRVFprF fM3KD/bNHikrrtrawSLG5PoYp23eBinrW9CihYNonNZ46/1bOkyf0BuQqwvOst+MjvH1 LhNQ== X-Forwarded-Encrypted: i=1; AJvYcCXgQHygGDNO83Y0d3vAcF2n+Tv0nS0JboU4xPu2soW6lwY6s3AhOeEl6bckRy64AnurxxmaSZFFRGY6EEPo9rB0XR34/Q8Z/AV/VUOomdznQwZAsxPH4cg4RMr2C2rf X-Gm-Message-State: AOJu0YxJwOu+A0czUTVBATRmiNTuXkuakIyiFAhvmiN7wGDKgBNk6Hx7 P3B1h1BcSmbetXg2S4AOcvnKU5geomP9E37Q8uIl6qNrjEsmydv+5gxixLncgiDSPawWuK/iX7d 0chYISSG/TsZ7LhHa6p2bVo0htbvwh2yw X-Google-Smtp-Source: AGHT+IFwHf/J50AR7soBZRgUewkwOHDpVzLRggF7G0M0WqZytUN9HtJ/cERBvVGXNVfghL+YQ+gjQNjwMpUQvuyCLI4= X-Received: by 2002:a50:bb4f:0:b0:5a2:694e:5faa with SMTP id 4fb4d7f45d1cf-5a3ee8a9f77mr7058611a12.8.1721767082460; Tue, 23 Jul 2024 13:38:02 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 23 Jul 2024 13:38:01 -0700 In-Reply-To: <877cdbsy0x.fsf@mat.ucm.es> Received-SPF: pass client-ip=2a00:1450:4864:20::531; envelope-from=stefankangas@gmail.com; helo=mail-ed1-x531.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:322018 Archived-At: Uwe Brauer writes: > 2. When I compile I of course see the warnings, but do you suggest > that I just byte compile all my files after installing a new > Emacs version? These days, "most" packages are installed via some ELPA archive, so users get them byte-compiled automatically. The warnings can then, at least in theory, be reported to an active upstream which would fix them. Of course, some of us do still keep some old/unmaintained .el libraries from way back when lying around, and for those packages we have to rely on more manual processes. Byte-compiling them is not too hard to do from Dired (press `B'), for example. > 3. I still find the naming =C2=ABfind-file-not-found-functions=C2=BB > and therefore the call > (add-hook 'find-file-not-found-functions > 'insert-auto-insert-files 'append) > counterintuitive, (now it is too late, but why wasn't this called > =C2=ABfind-file-not-found-hook-functions=C2=BB or something like t= his). I think these are just our conventions, basically. For example, I can't find any variable matching "-hook-functions$", but we have many matching either "-hook$" or "-functions$". > 4. BTW (define-obsolete-variable-alias 'find-file-not-found-hooks > 'find-file-not-found-functions "22.1") works for me (defalias > 'find-file-not-found-hooks 'find-file-not-found-functions) does not. You probably want defvaralias instead of defalias (which is for functions). > 5. I still don't gasp the advantage of renaming functions and > variables. I understand the benefit of introducing new functions = and > variables but the benefit of renaming variables and functions I > fail to see. The main benefit is that it helps keep Emacs interfaces, variables, etc. more consistent, which in turn makes Emacs easier to maintain and use.