From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?I=C3=B1igo?= Serna Newsgroups: gmane.emacs.devel Subject: Re: Possible bug: org-capture fails when emacs started as daemon Date: Wed, 16 Aug 2023 11:25:01 +0200 Message-ID: <871qg3wcav.fsf@gmx.com> References: <87ttt3dkad.fsf@localhost> <87jztwdz7k.fsf@ice9.digital> <87o7j8p7k1.fsf@localhost> <83wmxw8776.fsf@gnu.org> Reply-To: inigoserna@gmx.com Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12078"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.11.6; emacs 30.0.50 Cc: Ihor Radchenko , morgan@ice9.digital, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Aug 16 11:47:45 2023 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 1qWD7x-0002wE-1U for ged-emacs-devel@m.gmane-mx.org; Wed, 16 Aug 2023 11:47:45 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qWD75-00067K-Hy; Wed, 16 Aug 2023 05:46:51 -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 1qWD6z-000670-8J for emacs-devel@gnu.org; Wed, 16 Aug 2023 05:46:46 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qWD6w-0004Lf-LA; Wed, 16 Aug 2023 05:46:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.com; s=s31663417; t=1692179196; x=1692783996; i=inigoserna@gmx.com; bh=z5OSptgnRgLZ4lQksXHiiXUHtWu/0LSHN/7B6p9s0ts=; h=X-UI-Sender-Class:References:From:To:Cc:Subject:Date:Reply-To:In-reply- to; b=L9wmHS9/UyHMQ1HAP6Owfwhfpgk0B3h03nAOf+94hfcGPTgltI056N9GP2m4U17hbZtafiA 3dsOofSF8SEkITj3ZCTt4bCFxQkD4aqHfoQJ+GUWaippY/fvBSwluEEpiH1AAPcZ1w9AgQv2F I3pTzFI8iWE3VUTZ+WejykQ9bN/eO0MpLfxp02rpponDNx8Vio4CCrYM2d2ihl+kiNHY9tXXR 1oBzTcUZUs+/jS+bhBlofmKTOFTbpARwYlkfO3kL8tloumKD958BVa7QgdrHWfJ0iyXYmUdbe JNV6fT3jdxMPTDsdHsIHodZRkYGbb7ZUXQwhdVmLGc965cPHPgsg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from zeus.gmx.com ([93.176.181.42]) by mail.gmx.net (mrgmx004 [212.227.17.184]) with ESMTPSA (Nemesis) id 1MAfUo-1qcps42Ua8-00B5a8; Wed, 16 Aug 2023 11:46:36 +0200 In-reply-to: <83wmxw8776.fsf@gnu.org> X-Provags-ID: V03:K1:ro37YcFE9SP8lGP9hDGWy83Fhhzh+uIs8CWzKAzGh5T8U1dt23t iOaUf/M1H2x2stMB2qws3twVnxuICKi0pIw8Z6XUulUaG55SK2DBQygeY4R+vNxDgSO8kwQ 1fx9BiYqV2el6aU0psM9+5DaLkm0L09V0AcriimkzZiHdmCIkPi5XqjFhLNznVXxVGgWFD9 CPGDEhVojVkHF1y3yD/zg== UI-OutboundReport: notjunk:1;M01:P0:Ri/qcIfuDAI=;BTz3G+sr/VxL4kBl5rRq/IzBREE 5QVapAJ3X61WtiWz35H9kPsH1Qy3hyyMrsVvGtkwQNdCvD3SKm1xlabjpXSztdDVMTcWcC/I7 nCAUowzIVph8YVwxaTJmUa0CxCRS/howYHI2Is56Dtl4cO9WPCXjuAMy85ULeuKbN53Z4tJ03 ypTZTL0NldrA2hkWKxtJqesH7xg4nzMn4j9g7gIbrSlD3xFuDj02a7qAQgF1LWLeJxZyhOqY/ YW07XZn+ymmmopr0WvsI6KvrmHEjNNczlXz5s6TLDEHuZTCnBJQ9QMXsZkAoaZt/xDPgYxPKn bcTU4dSWguS3XS+cBMA3Ocssd3IK330B3Kt7l4IR65ozo2jNid3DWQLKyH8ZBsTX56Vax3DnS FO0gpvmI9QrWttYrv5Hol/1tCPkhxOsT38mpXZF761Py4ph7djr9Q4GeFlhgVAiPwR6YyDeXZ 8es1ePwH5SscODDZl3qbWmQMRw+YqmKemItHN0lGiuLwMqZBtB/eoI+vBQow9J9+/0mzYW5lZ pJCkOYYCa7C4GGPsxORaXKIJuzTp/7Fu1nkA7nqVjO4OTs+HPgMG0UOBsRYG7bdkyb8YE109h l5UQu5VGkoXFUO9s0TpDkXOtDtnqblLII0G62zTLj0f3CpDW32SdwgwQs6g7KZNdo772RTNYI Lu4Wo2OEj3acpXYpS5PME1bgtZwvYqvZxx1e7x/8GVxhgLTih+xCvZ6wCUYj1Wi1XOmp2DDPo g1HVNmb2m9V0Z8nyD0uAAWF1r2v/3Ezbvh9ywrKqjS0wDUSum/9PK7HTbjGg25PU5W0NDl/Q Received-SPF: pass client-ip=212.227.15.19; envelope-from=inigoserna@gmx.com; helo=mout.gmx.net X-Spam_score_int: -23 X-Spam_score: -2.4 X-Spam_bar: -- X-Spam_report: (-2.4 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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:308802 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Hi, > From: Ihor Radchenko >=20 > If you can create a reproducer, it would be nice to report this=20 > as > proper Emacs bug. I've attached a simple case for the bug. I can reproduce the issue with emacs v29 and master. In the example, there is a `minibuffer-setup-hook' to modify minibuffer face, and a simple minor-mode which changes `mode-line-active' face background color when enabled. Then, when `test-mode' is enabled, `clone-indirect-buffer' fails. Steps: 1. $ emacs -q -l test.el -> note minibuffer font size is bigger 2. M-x test-mode -> note mode-line background color=20 changes 3. M-x clone-indirect-buffer =3D> Error: "face-attrs--make-indirect-safe: Wrong type argument:=20 listp, test-modeline" A complete backtrace: Debugger entered--Lisp error: (wrong-type-argument listp=20 test-modeline) face-remap--copy-face((mode-line-active . test-modeline)) face-attrs--make-indirect-safe() clone-indirect-buffer(nil t) funcall-interactively(clone-indirect-buffer nil t) command-execute(clone-indirect-buffer record) execute-extended-command(nil "clone-indirect-buffer" "clone-in") funcall-interactively(execute-extended-command nil=20 "clone-indirect-buffer" "clone-in") command-execute(execute-extended-command) Btw, I also saw this problem with `mini-modeline' package, from=20 where I've taken some ideas to write this example. Thanks, I=C3=B1igo --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=test.el ;; 1. $ emacs -q -l test.el -> note minibuffer font size is bigger ;; 2. M-x test-mode -> note mode-line background color changes ;; 3. M-x clone-indirect-buffer ;; => Error: "face-attrs--make-indirect-safe: Wrong type argument: listp, test-modeline" ;; This could be in init.el (add-hook 'minibuffer-setup-hook #'(lambda () (face-remap-add-relative 'default :background "#8888cc" :height 2.0))) ;; Example code (defface test-modeline '((t :background "#FF8888")) "Test face.") (defvar test--orig-modeline nil) (defun test--enable () (setq-default test-orig-modeline 'mode-line-active) (setf (alist-get 'mode-line-active face-remapping-alist) 'test-modeline) (redisplay)) (defun test--disable () (setq-default mode-line-active 'test-orig-modeline) (setf (alist-get 'mode-line-active face-remapping-alist) 'test-orig-modeline) (redisplay)) (define-minor-mode test-mode "Enable Test minor mode." :init-value nil :global t :lighter " Test" (if test-mode (test--enable) (test--disable))) --=-=-=--