From unknown Sun Jun 22 03:55:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#31205: 26.1; Some text commands don't work properly in customize buffers Resent-From: =?UTF-8?Q?Micha=C5=82?= Kondraciuk Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Apr 2018 12:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 31205 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 31205@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.152405563211807 (code B ref -1); Wed, 18 Apr 2018 12:48:02 +0000 Received: (at submit) by debbugs.gnu.org; 18 Apr 2018 12:47:12 +0000 Received: from localhost ([127.0.0.1]:58580 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f8mUR-00034M-CK for submit@debbugs.gnu.org; Wed, 18 Apr 2018 08:47:11 -0400 Received: from eggs.gnu.org ([208.118.235.92]:33555) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f8mUP-000348-Hs for submit@debbugs.gnu.org; Wed, 18 Apr 2018 08:47:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f8mUF-0004qc-9H for submit@debbugs.gnu.org; Wed, 18 Apr 2018 08:47:04 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:41638) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f8mUF-0004qC-4i for submit@debbugs.gnu.org; Wed, 18 Apr 2018 08:46:59 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52658) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f8mU9-0002g5-Hx for bug-gnu-emacs@gnu.org; Wed, 18 Apr 2018 08:46:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f8mU4-0004Va-Kl for bug-gnu-emacs@gnu.org; Wed, 18 Apr 2018 08:46:53 -0400 Received: from sender-pp-092.zoho.com ([135.84.80.237]:25339) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f8mU4-0004Js-8z for bug-gnu-emacs@gnu.org; Wed, 18 Apr 2018 08:46:48 -0400 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=zapps768; d=zoho.com; h=from:subject:to:message-id:date:user-agent:mime-version:content-type; b=pVL9wb5cNCZ/2I8U4AiQuLOooTX8WIk/7f5l8c0Oa6g61Ckbk0AQVwd0iqpqDthVfGun9et1IfU1 5OGBhJ6b/i1S6OSaC/A+BkmV0KdZe+vgtEL/w4+me36mN/Ux4vw9 Received: from [192.168.0.87] (84-10-171-192.static.chello.pl [84.10.171.192]) by mx.zohomail.com with SMTPS id 1523811514309982.177337734473; Sun, 15 Apr 2018 09:58:34 -0700 (PDT) From: =?UTF-8?Q?Micha=C5=82?= Kondraciuk Message-ID: <9b90d292-b75e-7d73-1d0e-1aaac75f346c@zoho.com> Date: Sun, 15 Apr 2018 18:58:32 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------214332C1F8B9132827789F85" Content-Language: en-US X-Zoho-Virus-Status: 1 X-ZohoMailClient: External X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) This is a multi-part message in MIME format. --------------214332C1F8B9132827789F85 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 1. emacs -Q 2. M-x customize-face RET default RET 3. Navigate to first character in input field for 'Font Family' 4. M-u 5. The first word in 'Font Family' is not upcased. Point is now at line with "State" button. The line with "State" button says: State : EDITED, shown value does not take effect until you seT OR Save it. Attached patch fixes this behavior for me. In GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.28) of 2018-04-14 built on localhost Windowing system distributor 'The X.Org Foundation', version 11.0.11804000 System Description: Linux Mint 18.2 Sonya Recent messages: or a regular expression. Search for custom items. You can enter one or more words separated by spaces, or a regular expression. Show a menu with reset operations. Apply settings (for the current session only). Hide or show this face. Change the state of this item. Control whether this attribute has any effect. Font family or fontset alias name. Configured using: 'configure CONFIG_SHELL=/gnu/store/mm0zclrzj3y7rj74hzyd0f224xly04fh-bash-minimal-4.4.12/bin/bash SHELL=/gnu/store/mm0zclrzj3y7rj74hzyd0f224xly04fh-bash-minimal-4.4.12/bin/bash --prefix=/gnu/store/1i85dhpvkd2bavijh5ggk4hhmvgkmshz-my-emacs-26.1 --enable-fast-install' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS GSETTINGS NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 THREADS Important settings: value of $LC_MONETARY: pl_PL.UTF-8 value of $LC_NUMERIC: pl_PL.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Custom Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv bytecomp byte-compile cconv dired dired-loaddefs format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils crm thingatpt cus-edit easymenu cus-start cus-load wid-edit cl-loaddefs cl-lib elec-pair time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 118710 7449) (symbols 48 21858 2) (miscs 40 411 375) (strings 32 32024 1115) (string-bytes 1 840526) (vectors 16 14956) (vector-slots 8 501000 10250) (floats 8 56 61) (intervals 56 357 8) (buffers 992 13)) --------------214332C1F8B9132827789F85 Content-Type: text/x-patch; name="cus-edit.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="cus-edit.patch" diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el index a12897e..55b2852 100644 --- a/lisp/cus-edit.el +++ b/lisp/cus-edit.el @@ -2221,7 +2221,7 @@ custom-notify (unless (eq state 'modified) (unless (memq state '(nil unknown hidden)) (widget-put widget :custom-state 'modified)) - (custom-magic-reset widget) + (run-with-idle-timer 0.0 nil #'custom-magic-reset widget) (apply 'widget-default-notify widget args)))) (defun custom-redraw (widget) --------------214332C1F8B9132827789F85-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 24 14:21:16 2019 Received: (at control) by debbugs.gnu.org; 24 Jun 2019 18:21:16 +0000 Received: from localhost ([127.0.0.1]:57944 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hfTaa-0007g4-RA for submit@debbugs.gnu.org; Mon, 24 Jun 2019 14:21:15 -0400 Received: from quimby.gnus.org ([80.91.231.51]:34578) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hfTaV-0007fp-Ux for control@debbugs.gnu.org; Mon, 24 Jun 2019 14:21:10 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=stories) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hfTaS-0006J2-8n for control@debbugs.gnu.org; Mon, 24 Jun 2019 20:21:06 +0200 Date: Mon, 24 Jun 2019 20:21:04 +0200 Message-Id: To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #31205 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 31205 + confirmed quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 31205 + confirmed quit From unknown Sun Jun 22 03:55:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#31205: 26.1; Some text commands don't work properly in customize buffers Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Jun 2019 18:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31205 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed patch To: =?UTF-8?Q?Micha=C5=82?= Kondraciuk Cc: 31205@debbugs.gnu.org Received: via spool by 31205-submit@debbugs.gnu.org id=B31205.156140054829657 (code B ref 31205); Mon, 24 Jun 2019 18:23:01 +0000 Received: (at 31205) by debbugs.gnu.org; 24 Jun 2019 18:22:28 +0000 Received: from localhost ([127.0.0.1]:57951 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hfTbm-0007iF-3M for submit@debbugs.gnu.org; Mon, 24 Jun 2019 14:22:28 -0400 Received: from quimby.gnus.org ([80.91.231.51]:34604) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hfTbj-0007i6-PY for 31205@debbugs.gnu.org; Mon, 24 Jun 2019 14:22:24 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=stories) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hfTbf-0006JH-OX; Mon, 24 Jun 2019 20:22:23 +0200 From: Lars Ingebrigtsen References: <9b90d292-b75e-7d73-1d0e-1aaac75f346c@zoho.com> Date: Mon, 24 Jun 2019 20:22:19 +0200 In-Reply-To: <9b90d292-b75e-7d73-1d0e-1aaac75f346c@zoho.com> ("=?UTF-8?Q?Micha=C5=82?= Kondraciuk"'s message of "Sun, 15 Apr 2018 18:58:32 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: =?UTF-8?Q?Micha=C5=82?= Kondraciuk writes: > 1. emacs -Q > 2. M-x customize-face RET default RET > 3. Navigate to first character in input field for 'Font Family' > 4. M-u > 5. The first word in 'Font Family' is not upcased. Point is now at > [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Micha=C5=82 Kondraciuk writes: > 1. emacs -Q > 2. M-x customize-face RET default RET > 3. Navigate to first character in input field for 'Font Family' > 4. M-u > 5. The first word in 'Font Family' is not upcased. Point is now at > line with "State" button. The line with "State" button says: > > State : EDITED, shown value does not take effect until you seT OR Save it. > > Attached patch fixes this behavior for me. I'm also seeing this, and your patch fixes the problem here, too. But: - (custom-magic-reset widget) + (run-with-idle-timer 0.0 nil #'custom-magic-reset widget) I wonder if anybody more familiar with the custom machinery can weigh in and say whether this looks safe... --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Sun Jun 22 03:55:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#31205: 26.1; Some text commands don't work properly in customize buffers Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Sep 2019 23:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31205 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed patch To: =?UTF-8?Q?Micha=C5=82?= Kondraciuk Cc: 31205@debbugs.gnu.org Received: via spool by 31205-submit@debbugs.gnu.org id=B31205.156867567718430 (code B ref 31205); Mon, 16 Sep 2019 23:15:02 +0000 Received: (at 31205) by debbugs.gnu.org; 16 Sep 2019 23:14:37 +0000 Received: from localhost ([127.0.0.1]:51321 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iA0Ca-0004nC-Vt for submit@debbugs.gnu.org; Mon, 16 Sep 2019 19:14:37 -0400 Received: from quimby.gnus.org ([80.91.231.51]:41754) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iA0CZ-0004n2-Gx for 31205@debbugs.gnu.org; Mon, 16 Sep 2019 19:14:36 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iA0CU-0007q6-4R; Tue, 17 Sep 2019 01:14:34 +0200 From: Lars Ingebrigtsen References: <9b90d292-b75e-7d73-1d0e-1aaac75f346c@zoho.com> Date: Tue, 17 Sep 2019 01:14:29 +0200 In-Reply-To: (Lars Ingebrigtsen's message of "Mon, 24 Jun 2019 20:22:19 +0200") Message-ID: <871rwfq1ey.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lars Ingebrigtsen writes: > I'm also seeing this, and your patch fixes the problem here, too. But: > > - (custom-magic-reset widget) > + (run-with-idle-timer 0.0 nil #'custom-magic-reset widget) > > I wonder if anybody more fa [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Lars Ingebrigtsen writes: > I'm also seeing this, and your patch fixes the problem here, too. But: > > - (custom-magic-reset widget) > + (run-with-idle-timer 0.0 nil #'custom-magic-reset widget) > > I wonder if anybody more familiar with the custom machinery can weigh in > and say whether this looks safe... Nobody had any comments, but I kinda think that this is the right solution after all -- the buffer can't be updated before the editing command has done its job. Perhaps Widget should be working on post-command-hook instead of pre-? But I've applied the patch with some comments. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 16 19:14:41 2019 Received: (at control) by debbugs.gnu.org; 16 Sep 2019 23:14:41 +0000 Received: from localhost ([127.0.0.1]:51324 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iA0Cf-0004nU-Ax for submit@debbugs.gnu.org; Mon, 16 Sep 2019 19:14:41 -0400 Received: from quimby.gnus.org ([80.91.231.51]:41768) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iA0Ce-0004nL-25 for control@debbugs.gnu.org; Mon, 16 Sep 2019 19:14:40 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iA0Cb-0007qK-Df for control@debbugs.gnu.org; Tue, 17 Sep 2019 01:14:39 +0200 Date: Tue, 17 Sep 2019 01:14:37 +0200 Message-Id: <87zhj3omua.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #31205 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 31205 fixed close 31205 27.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 31205 fixed close 31205 27.1 quit