From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#63317: 29.0.90; ediff-auto-refine is set at require-time rather than runtime Date: Sat, 06 May 2023 09:11:23 +0300 Message-ID: <83r0rugfas.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26865"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 63317@debbugs.gnu.org To: Peter Oliver Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 06 08:11:17 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1pvB8X-0006mt-8L for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 06 May 2023 08:11:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pvB8L-0005lS-GF; Sat, 06 May 2023 02:11:05 -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 1pvB8K-0005kz-Du for bug-gnu-emacs@gnu.org; Sat, 06 May 2023 02:11:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pvB8I-0007xT-Cv for bug-gnu-emacs@gnu.org; Sat, 06 May 2023 02:11:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pvB8I-0001iV-8Q for bug-gnu-emacs@gnu.org; Sat, 06 May 2023 02:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 May 2023 06:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63317 X-GNU-PR-Package: emacs Original-Received: via spool by 63317-submit@debbugs.gnu.org id=B63317.16833534396564 (code B ref 63317); Sat, 06 May 2023 06:11:02 +0000 Original-Received: (at 63317) by debbugs.gnu.org; 6 May 2023 06:10:39 +0000 Original-Received: from localhost ([127.0.0.1]:58041 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pvB7v-0001ho-CZ for submit@debbugs.gnu.org; Sat, 06 May 2023 02:10:39 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:52708) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pvB7r-0001hV-QG for 63317@debbugs.gnu.org; Sat, 06 May 2023 02:10:37 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pvB7m-0007vU-DF; Sat, 06 May 2023 02:10:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=0wXS8/n3weu01+w1+pOyA3cFoglOs5CUfBijvMIhAO4=; b=cQUKhFMme/OI N7XwQeWJdA0/P4XkQt7ainiH0tJdBoEytv+v8G479dVYBtz7G8yw4+vg3ijZYmhE7VixsBu9Ed8Xu ZSx9MpSnOzfWCqDVlfByfnny/BDLDmaM98+YXMlf691TwweCPvqK+pjEy2cefReW4w6wI5l692aoa OXvSbRyNepig4I5Dn91nN6fyCnGjehCtQmC9bv9GXw6M4ZfbVqIjqc9vtaDLTqlBihD/h6NZ9Zose TFCbwTwuMaqJDzojPGO5HExusZLcjmUjHdiux/NSSyZef2tIwYfAQ8M4r5X9ns10+4Vp6ntuEhwZT x18mVcOPOZiwWBfQH8LTog==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pvB7l-0003OE-Hr; Sat, 06 May 2023 02:10:30 -0400 In-Reply-To: (message from Peter Oliver on Fri, 5 May 2023 21:15:11 +0100 (BST)) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:261156 Archived-At: > Date: Fri, 5 May 2023 21:15:11 +0100 (BST) > From: Peter Oliver > > If ediff is loaded from a GUI, ediff-auto-refine defaults to "on", which is the desired behaviour. > > However, if your ~/.emacs contains "(require 'ediff)", and you start emacs with the --daemon option, variable ediff-auto-refine will instead default to "nix", even if you later try to use ediff from a GUI started with "emacsclient --create-frame". If you want the daemon session to do something that requires a GUI frame, you need to have the relevant customizations in server-after-make-frame-hook, so that the customizations run when such a frame is already created. In this case, I suggest to have that hook change the value of ediff-auto-refine depending on whether the created frame is a GUI frame or a TTY frame. (Or, if you personally never create TTY client frames, you can set ediff-auto-refine to "on" unconditionally in that hook.) Or maybe do that in some appropriate Ediff hook. We cannot do this automatically, not via the default value of the option, because a daemon session can be used for both GUI and TTY frames (and can have frames of both types active at the same time in the same session). So I don't see a bug here, just a need for more elaborate customizations in daemon sessions.