From unknown Thu Aug 14 22:24:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#69457: unable to place two menu-choice widgets on same line Resent-From: martyhiatt@riseup.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Feb 2024 15:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 69457 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 69457@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.170913387426814 (code B ref -1); Wed, 28 Feb 2024 15:25:02 +0000 Received: (at submit) by debbugs.gnu.org; 28 Feb 2024 15:24:34 +0000 Received: from localhost ([127.0.0.1]:48528 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rfLnJ-0006yF-Kk for submit@debbugs.gnu.org; Wed, 28 Feb 2024 10:24:33 -0500 Received: from lists.gnu.org ([209.51.188.17]:46084) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rfK1l-0006wZ-10 for submit@debbugs.gnu.org; Wed, 28 Feb 2024 08:31:22 -0500 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 1rfJxZ-0003sQ-0j for bug-gnu-emacs@gnu.org; Wed, 28 Feb 2024 08:26:58 -0500 Received: from mx1.riseup.net ([198.252.153.129]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rfJxU-0006HZ-Fr for bug-gnu-emacs@gnu.org; Wed, 28 Feb 2024 08:26:56 -0500 Received: from fews02-sea.riseup.net (fews02-sea-pn.riseup.net [10.0.1.112]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx1.riseup.net (Postfix) with ESMTPS id 4TlFWF5SnCzDr0j for ; Wed, 28 Feb 2024 13:26:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1709126809; bh=w4iC+qEBnNALfsVrDo0asPkAW/ilW8ZbeaSMep7Uudw=; h=Date:To:From:Subject:From; b=e/DpxN8mModH0s5BdyigTWkR9QBwGl4zMxCbccBANiMs0jy7Qdtj8MP42vUqH6P3O WZ7Jo4S8NwJHITX9gatrc5HuN0ROrj4BpoTZ1KkSyfgufcg/L02UlpdjJY//bWk8hr 46kvU7gtZ/M8qw8yjF0SVS2c+vaq7tT3JrI1FAYQ= X-Riseup-User-ID: 65F91376D87C1BE308BCF8A378C7E89BA177F9EF2EE111B3D5B447F9CC2D8E24 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews02-sea.riseup.net (Postfix) with ESMTPSA id 4TlFW21sgVzFsSw for ; Wed, 28 Feb 2024 13:26:38 +0000 (UTC) Message-ID: <5f95b89c-f8ee-4615-a856-aeb8deef0f8b@riseup.net> Date: Wed, 28 Feb 2024 14:26:35 +0100 MIME-Version: 1.0 Content-Language: en-US From: martyhiatt@riseup.net Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=198.252.153.129; envelope-from=martyhiatt@riseup.net; helo=mx1.riseup.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Mailman-Approved-At: Wed, 28 Feb 2024 10:24:27 -0500 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: -2.3 (--) hi emacs, not sure if this is a bug or not, i'm a widget novice, but i'd like to place two or more menu-choice widgets on the same line and am unable to. some other widgets do not enforce a newline after them, as can be seen from the example code in the emacs widgets manual. is it possible to have multiple menu-choice widgets on the one line? if the current library doesn't allow it, would someone know how/where i might patch it? i also noticed that i cant place any annotation string following the menu widgets displayed value (see the commented argument to the :format function below, if included the binding appears after a newline). i did some poking around and realized it is the one issue. i'm not sure, but i suspect the issue is with the rendering of the item widget (the children), not the menu-choice widget. some example code i have: (defun lem-ui-return-item-widgets (list) "Return a list of item widgets for each item, a string, in LIST." (cl-loop for x in list collect `(choice-item :value ,x))) (defun lem-ui-widget-format (str &optional binding) "Return a widget format string for STR, its name. BINDING is a string of a keybinding to cycle the widget's value." (concat "%[" (propertize str 'face 'lem-ui-widget-face 'lem-tab-stop t) "%]: %v" binding)) ;; then within a buffer display function: (widget-create 'menu-choice :tag "Listing" :value type :args (lem-ui-return-item-widgets lem-listing-types) :help-echo "Select a listing type" :format (lem-ui-widget-format "Listing") ; "C-c C-c") :notify (lem-ui-widget-notify-fun :sort)) (widget-create 'menu-choice :tag "Sort" :value sort :args (lem-ui-return-item-widgets lem-sort-types) :help-echo "Select a sort type" :format (lem-ui-widget-format "Sort") ; "C-c C-s") :notify (lem-ui-widget-notify-fun :listing-type)) (lem-widget-minor-mode) the two widgets appear on separate lines. also asked on online, to no avail: https://emacs.stackexchange.com/questions/80453/avoid-newlines-after-menu-choice-widget-and-or-after-v regards, marty From unknown Thu Aug 14 22:24:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#69457: unable to place two menu-choice widgets on same line Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Feb 2024 23:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69457 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: martyhiatt@riseup.net Cc: Mauro Aranda , 69457@debbugs.gnu.org Received: via spool by 69457-submit@debbugs.gnu.org id=B69457.170916422912685 (code B ref 69457); Wed, 28 Feb 2024 23:51:01 +0000 Received: (at 69457) by debbugs.gnu.org; 28 Feb 2024 23:50:29 +0000 Received: from localhost ([127.0.0.1]:56140 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rfTgy-0003IQ-2y for submit@debbugs.gnu.org; Wed, 28 Feb 2024 18:50:28 -0500 Received: from mout.web.de ([212.227.15.14]:32895) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rfTgv-0003Hp-Hn for 69457@debbugs.gnu.org; Wed, 28 Feb 2024 18:50:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=s29768273; t=1709164188; x=1709768988; i=michael_heerdegen@web.de; bh=J1KjUdL+pOmaY7JnFe1+x67xKfUC8gkUM37nUSYt1hY=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References: Date; b=TbWUshXzzl3r0blwXJk5mtqle9fv276az1b7MMSC/fsxpnYFSuqLbJln5afO0Dba CMo18taa0pHj/1MxIeSvTWnBN7XiLfpf/n192AHMCG4KyGj02y1LQSwiVpUzxLbdF 9IJHWlstE/Deye6HdK7mriIuRk0d67KR5GiTlcMXRn64sKJoIsRjMSJLgSIcYd1N1 0FguK87eE/pOgKiocX2GCVkWRh1rXYbzEwpK+k8vo55JgqiAfxk1TF0G8gvahcvdf dxeh3kzH53BTjLv3K3jpxaewFLjyXaqTT/TYRWU0FdN52dX9RF+aq9ZT3J/8xAFK6 hzA5i7T+o7j16evqqQ== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from drachen.dragon ([92.76.229.82]) by smtp.web.de (mrweb006 [213.165.67.108]) with ESMTPSA (Nemesis) id 1M76XT-1rWyQO3N7f-008YXp; Thu, 29 Feb 2024 00:49:47 +0100 From: Michael Heerdegen In-Reply-To: <5f95b89c-f8ee-4615-a856-aeb8deef0f8b@riseup.net> (martyhiatt@riseup.net's message of "Wed, 28 Feb 2024 14:26:35 +0100") References: <5f95b89c-f8ee-4615-a856-aeb8deef0f8b@riseup.net> Date: Thu, 29 Feb 2024 00:50:17 +0100 Message-ID: <874jdscfnq.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:UqWFViaoC32Gso0nKsUlsOGSr8Df6JcjGMVkvpGBToruLQRqZam pwqEOPwgQgC0V99XjnFeVes+pTZWOoCeLrOR+s323evMumUJv67CID4KOBRZ3U9c+JeRJ97 LlYjd47Y/SHeVAbWhD+vIqq0zDfBU+/OkhkSozbW9iSTy02FJ4Vr4SGKdd0hUjHsJ3vuPt+ c+5yXJMf05AREKd2B1rsQ== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:cS6bG0wq/mw=;tLxG7112kseQ95ixfDK5DYPvlhN ngFnf8y8wp49nKhEAGubF+3bbGHlVqshfixFDkjlxw0RRZQ+twwobBP6cLv+sbcMJ7FuW0U/P nC86JFve5fPXsTaCiOZGcw3MGZU+xixQQKPPpOPOyDZiCF0bUz36wuDj3lscUWG/nwzW18cdx gaDKfrBlGlSV67fRM91NkK42+Yw1mrKl864sWja2Y0oTqivPmcQBR8gAc2HOeSlFOor3dH4ho vHRKmnqvwPb576P4Ihgix2KVsE3F5TZ7C/3xN/ojbzWmVxf/qh7edDWaefWtvaxyIvZzc1OY+ xoZZOyFimviVIf7J2MESuJAbaZcdzMseAlObTDXZkRwQhOBg48HaahkdA0pHbAA2P9xdU9AFx VvL2E9Sk8h/+fI3PIazA3IN3DEtkjdOdsZsyIrBLfXz8nGEQVzcFTVtsT1VYVS66UPPm+/7Ak bezEFUraaYrL1qFeBh5F3nOlcL0SsHDQfkvltTqpX6pc6lir/JzGm6d1SRh+3zlLZUTDwtu80 tJCnt/I8kcmEgxnhvENGZUUQI/qDip6uGwgylQ+qCkJEMFG2O272tCiHo+Q0aMWbIC2085AxI wqfK5C20eH+ii2iJPdqJcuUXVbPvKcfBwE5d8Q292vmS6tF60DqL86ppIeiKHgF8VsQkWkVrG t6UZumnZhUFwgFF8kpq/A1sWGdwURNG+6UQA50253ax9u/1qCmkLiaa4nS1WomUQ+Dk/swXpP UuSxbjCzP9GgiKynuuuHUOKH+X6ZlZ8e3SDF6fUaEUtigTrSdp+mcJCK5YV+JB2X2uUVHnbof styJ+p2QA1FvtLJ1Gce/mCYniq61G0aZSZJzcOdtUyq5o= X-Spam-Score: -0.7 (/) 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.7 (-) martyhiatt@riseup.net writes: > is it possible to have multiple menu-choice widgets on the one line? In my experience placing several widgets at the same line is indeed sometimes not possible for one-lined widgets, even it should be possible in theory. > if the current library doesn't allow it, would someone know how/where > i might patch it? It might be that it is not trivial to change that because those widgets rely on the final line break. I remember that once I tried to work around that, and other things broke. Who was our expert for widgets - was that you, Mauro? Thx, Michael. From unknown Thu Aug 14 22:24:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#69457: unable to place two menu-choice widgets on same line Resent-From: Mauro Aranda Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Feb 2024 00:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69457 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Heerdegen , martyhiatt@riseup.net Cc: 69457@debbugs.gnu.org Received: via spool by 69457-submit@debbugs.gnu.org id=B69457.170916561916879 (code B ref 69457); Thu, 29 Feb 2024 00:14:02 +0000 Received: (at 69457) by debbugs.gnu.org; 29 Feb 2024 00:13:39 +0000 Received: from localhost ([127.0.0.1]:57911 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rfU3O-0004OA-PQ for submit@debbugs.gnu.org; Wed, 28 Feb 2024 19:13:39 -0500 Received: from mail-pj1-f44.google.com ([209.85.216.44]:43370) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rfU3M-0004Np-6a for 69457@debbugs.gnu.org; Wed, 28 Feb 2024 19:13:37 -0500 Received: by mail-pj1-f44.google.com with SMTP id 98e67ed59e1d1-299354e5f01so1203720a91.1 for <69457@debbugs.gnu.org>; Wed, 28 Feb 2024 16:13:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709165523; x=1709770323; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=fdzKMnPPXVdNTbFaxvaEnrIHmv/+0wvDFFUztVRp4lM=; b=Xs/kynvWN13MF5xPQ84pwiUDpIRyo8GCODRHUSh30vvSR1kdwWT3k9BY+Uj0z076nq eg8rZiHZ9LoFeZDpr49ojBDDPn6kwczsEM6ieem6CjMqvw3vJpZU3vAkZgtdPx5emrZZ wjE5eY8AdYX1si7mR+vu2xzqKAz5rtU/b/2d438tAzWFZSX32Cv5XFxtZb7TxG3zE4HP gZk19ocD2p4TZE0/zkY6jYI0ka0Zfdm8026fA+NZm3vUwwfEjl9Rerdh5BCJGSPliLS3 T07Qp2oug0IsME2oQbTjP32SuZKLDHbC9gMu4Kg7D+sSr42b3eSrqU1PAGtX4aPKXfX6 Gpqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709165523; x=1709770323; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=fdzKMnPPXVdNTbFaxvaEnrIHmv/+0wvDFFUztVRp4lM=; b=mH4sL47kPr4+hB5CSp0lTEiDJPhCFu5w4qCzvKDJlNblJE9jXnj4hSLVBfpzCvVIsJ pAtEPxiRLSHEbZsKP4M6Z9Ohb2tqgEtLZrdpyVRyfQIL+Tbp2K2B8q81Szu5gY2xcXwb QCRwlEfGMg8n/XzOtYKNKMJ8It5H7VNy+/6brH14PpJeV2xPcnlIyrOc4BgCfzeZi53i oUisaFNKiewV1YA/cDtKiUVQ8W1SX17NDOgP8tXVWgHX0CVnZ9foNZQ2w/04ugJqjSou 6T8awJ6YqgcWLKm3ioJw4mg/nQlypGzfLGQff1iDdcn7FKqQbYiBML6Fl9M61AdcJ/t4 QNzQ== X-Gm-Message-State: AOJu0Yz07OFnaMP5K4HVWN1JE8X+tGuQqZm7q97xmBkilWwGqA50QO1W gUgeK7n0tMys0gTyYhl1ztXH22raDMR2jUNFsLZa+pJqO1F8+xtr X-Google-Smtp-Source: AGHT+IFvTEBx82GyxR/d6MfofyTupTLyPbvlFSj7bpKu01j6e6lUuqEPu9Ti6KUzUFGc1lpo7/fZUg== X-Received: by 2002:a17:90b:343:b0:29a:c992:198e with SMTP id fh3-20020a17090b034300b0029ac992198emr445531pjb.15.1709165523241; Wed, 28 Feb 2024 16:12:03 -0800 (PST) Received: from [192.168.0.100] ([181.228.33.6]) by smtp.gmail.com with ESMTPSA id d7-20020a17090b004700b0029a9ec5dd87sm2286822pjt.23.2024.02.28.16.12.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 28 Feb 2024 16:12:02 -0800 (PST) Message-ID: <82f0f94d-19c1-4a96-9245-f485734a5d6f@gmail.com> Date: Wed, 28 Feb 2024 21:11:59 -0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird References: <5f95b89c-f8ee-4615-a856-aeb8deef0f8b@riseup.net> <874jdscfnq.fsf@web.de> Content-Language: en-US From: Mauro Aranda In-Reply-To: <874jdscfnq.fsf@web.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 (-) On 28/2/24 20:50, Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors wrote: > martyhiatt@riseup.net writes: > >> is it possible to have multiple menu-choice widgets on the one line? > > In my experience placing several widgets at the same line is indeed > sometimes not possible for one-lined widgets, even it should be possible > in theory. > >> if the current library doesn't allow it, would someone know how/where >> i might patch it? > > It might be that it is not trivial to change that because those widgets > rely on the final line break. I remember that once I tried to work > around that, and other things broke. > > Who was our expert for widgets - was that you, Mauro? > > > Thx, > > Michael. > Thanks for CCing me Michael. I'll take a look. From unknown Thu Aug 14 22:24:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#69457: unable to place two menu-choice widgets on same line Resent-From: Mauro Aranda Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Feb 2024 00:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69457 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: martyhiatt@riseup.net, 69457@debbugs.gnu.org Received: via spool by 69457-submit@debbugs.gnu.org id=B69457.170916646119341 (code B ref 69457); Thu, 29 Feb 2024 00:28:01 +0000 Received: (at 69457) by debbugs.gnu.org; 29 Feb 2024 00:27:41 +0000 Received: from localhost ([127.0.0.1]:58866 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rfUGz-00051q-CH for submit@debbugs.gnu.org; Wed, 28 Feb 2024 19:27:41 -0500 Received: from mail-ot1-f45.google.com ([209.85.210.45]:58820) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rfUGx-00051S-Kp for 69457@debbugs.gnu.org; Wed, 28 Feb 2024 19:27:40 -0500 Received: by mail-ot1-f45.google.com with SMTP id 46e09a7af769-6e4a0e80d14so235064a34.1 for <69457@debbugs.gnu.org>; Wed, 28 Feb 2024 16:27:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709166367; x=1709771167; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=jHT+HJhzYFvTKQEN1/oO5L1BVDy1gqMb9IZz0BQU+4Q=; b=h8IRoFXymYTCG6uw69x59L1P8fzjQ5vgZfQo+JRme7UwnltxP8yPa6N88WzBdcp4jc GR9y3TNp0LB0JE/t3T67DJEnIBBR5WzBl+V2K9Y8bZqOXppr/DM+ldVYvvzOMGR0Ja3c SV1k1D/J8pAQOjjtAOBV/nGleho36Fcae58a83nGsJrzZpVNHVs5VmGuNnOT/TdNLO96 tc8ffWQXwED9FkGB8p2ALL2TMDRTk5278hx4hd1NgOI09AydCH7xdAeVUGyffyLzrvCs ehQe5b5wmYeUsMNYchxu/cJDy2nhsBvrURiuY7Px2y12CW1Pndkg1qm0hultvni1uami Eyww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709166367; x=1709771167; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jHT+HJhzYFvTKQEN1/oO5L1BVDy1gqMb9IZz0BQU+4Q=; b=s1Eo3Y+sYAmfNCUlt7Q/G0SlUafWeSt3aUikQfKODOnXVjJM6+BOSJZTOfi7plnAEn NDVUZdMTpHnkcT6Sgn42Vvaczg/8bDo2irwkxw6vKTm7uJvnidPI7+CZvgVMXZbwIeEq XQshrVAoEoetOyUml2CLNbYOoKLcnmWiry/Fvi0kvFbT5EKnt2+kfqBwzh8rlTCcD6TQ w3fqT8fCRkS8rce3SQyz9vabWOR2K5elA1mMRetb5KaS3ZijWGE+RAZwmds+H+BWCRJQ 5Hna9P+XKujJxeosJz3Bx3DZUnJtXz7P0KiicE9tO0WwAzDn93eAK3P6BAJF1mrGXar6 5fKA== X-Forwarded-Encrypted: i=1; AJvYcCVx2gd6smeKW375ve82BQxo+n/NTwbbW7wzNXR4nsN15zIQG3eO/g+PXcyTUIF8oaj+RkK7DY2RE+KVW0+pF4uxHbfY4Ks= X-Gm-Message-State: AOJu0YxEcJ4SHIWJRJIvoFb54gCK2RS3LllDb1RzJxcuYW1ZgAyrvll4 1qZfYzyMFrTNpHewxlGbYFgJ7BN7NUxL3/n7COs1fRpmJgfs0dgv4EaVIILb X-Google-Smtp-Source: AGHT+IH+udxFM66uSJxfcaEmXi+3UnCrHCaMO8VvGlUNqydHI1dvXI4+8iwu0pi2uy89ixPLk47WhQ== X-Received: by 2002:a05:6a20:748c:b0:1a0:c3e6:3135 with SMTP id p12-20020a056a20748c00b001a0c3e63135mr908882pzd.28.1709165845929; Wed, 28 Feb 2024 16:17:25 -0800 (PST) Received: from [192.168.0.100] ([181.228.33.6]) by smtp.gmail.com with ESMTPSA id c1-20020a170903234100b001db594c9d17sm43165plh.254.2024.02.28.16.17.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 28 Feb 2024 16:17:25 -0800 (PST) Message-ID: Date: Wed, 28 Feb 2024 21:17:23 -0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US References: <5f95b89c-f8ee-4615-a856-aeb8deef0f8b@riseup.net> From: Mauro Aranda In-Reply-To: <5f95b89c-f8ee-4615-a856-aeb8deef0f8b@riseup.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 (-) On 28/2/24 10:26, martyhiatt@riseup.net wrote: > hi emacs, > > not sure if this is a bug or not, i'm a widget novice, but i'd like to > place two or more menu-choice widgets on the same line and am unable to. > some other widgets do not enforce a newline after them, as can be seen > from the example code in the emacs widgets manual. > is it possible to have multiple menu-choice widgets on the one line? if > the current library doesn't allow it, would someone know how/where i > might patch it? I think it should be possible. > i also noticed that i cant place any annotation string following the > menu widgets displayed value (see the commented argument to the :format > function below, if included the binding appears after a newline). i did > some poking around and realized it is the one issue. > > i'm not sure, but i suspect the issue is with the rendering of the item > widget (the children), not the menu-choice widget. Yes, you need to control the :format for the choices to accomplish this, at least. > some example code i have: > > (defun lem-ui-return-item-widgets (list) >   "Return a list of item widgets for each item, a string, in LIST." >   (cl-loop for x in list >            collect `(choice-item :value ,x))) So, how about adding something like: :format "%[%t%] " here? Did you try that? > (defun lem-ui-widget-format (str &optional binding) >   "Return a widget format string for STR, its name. > BINDING is a string of a keybinding to cycle the widget's value." >   (concat "%[" (propertize str >                            'face 'lem-ui-widget-face >                            'lem-tab-stop t) >           "%]: %v" >           binding)) > > ;; then within a buffer display function: >  (widget-create 'menu-choice >                      :tag "Listing" >                      :value type >                      :args (lem-ui-return-item-widgets lem-listing-types) >                      :help-echo "Select a listing type" >                      :format (lem-ui-widget-format "Listing") ; "C-c C-c") What's the intention with the "C-c C-c"? Could it go at the end of the :format suggestion I gave above? From unknown Thu Aug 14 22:24:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#69457: unable to place two menu-choice widgets on same line Resent-From: martyhiatt@riseup.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Feb 2024 14:28:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69457 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Mauro Aranda , martyhiatt@riseup.net, 69457@debbugs.gnu.org Received: via spool by 69457-submit@debbugs.gnu.org id=B69457.170921684411088 (code B ref 69457); Thu, 29 Feb 2024 14:28:05 +0000 Received: (at 69457) by debbugs.gnu.org; 29 Feb 2024 14:27:24 +0000 Received: from localhost ([127.0.0.1]:33958 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rfhNR-0002sY-CD for submit@debbugs.gnu.org; Thu, 29 Feb 2024 09:27:23 -0500 Received: from mx1.riseup.net ([198.252.153.129]:45354) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rfdno-0002Lj-Su for 69457@debbugs.gnu.org; Thu, 29 Feb 2024 05:38:13 -0500 Received: from fews02-sea.riseup.net (fews02-sea-pn.riseup.net [10.0.1.112]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx1.riseup.net (Postfix) with ESMTPS id 4Tlnjc1NXwzDrBV; Thu, 29 Feb 2024 10:37:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1709203060; bh=icum3VTNNA+yNGcEajMTwTAReNtM2Q6suIbAw8ymYK0=; h=Date:Subject:To:References:From:In-Reply-To:From; b=SIZTHioMZyQQTmAVvs61GJ+5m1b5P9tSjfZtUwk+OQ+lj7MKifPwLfWA6/EoKixSO xteIk+ZhRM0uuEcRnufzf/V9QUyiZPJBdB1Urs+k9sQI8wW9CZ2wcZAQ13s7YPfHIe 65AHuhhEw12mfGexBh+twJZHZt4j1bGEu9rT9/GY= X-Riseup-User-ID: 40408E86FA0FA6F63803C818345CA57F3F28759E01F75459322BFC7AED845B6C Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews02-sea.riseup.net (Postfix) with ESMTPSA id 4TlnjZ66RqzFrsJ; Thu, 29 Feb 2024 10:37:38 +0000 (UTC) Message-ID: Date: Thu, 29 Feb 2024 11:37:35 +0100 MIME-Version: 1.0 References: <5f95b89c-f8ee-4615-a856-aeb8deef0f8b@riseup.net> Content-Language: en-US From: martyhiatt@riseup.net In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Mailman-Approved-At: Thu, 29 Feb 2024 09:26:59 -0500 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 (-) hi mauro, thanks a lot for your response. On 2/29/24 01:17, Mauro Aranda wrote: > Yes, you need to control the :format for the choices to accomplish this, at least. > >> some example code i have: >> >> (defun lem-ui-return-item-widgets (list) >>    "Return a list of item widgets for each item, a string, in LIST." >>    (cl-loop for x in list >>             collect `(choice-item :value ,x))) > > So, how about adding something like: > :format "%[%t%] " > here? > > Did you try that? thanks a lot, this works. i see now i had been shedding tears fighting with the menu-choice :format, not realizing i needed to wrangle the children elements instead. glad i asked the widget expert. %v also seems to work here, right? > >> (defun lem-ui-widget-format (str &optional binding) >>    "Return a widget format string for STR, its name. >> BINDING is a string of a keybinding to cycle the widget's value." >>    (concat "%[" (propertize str >>                             'face 'lem-ui-widget-face >>                             'lem-tab-stop t) >>            "%]: %v" >>            binding)) >> >> ;; then within a buffer display function: >>   (widget-create 'menu-choice >>                       :tag "Listing" >>                       :value type >>                       :args (lem-ui-return-item-widgets lem-listing-types) >>                       :help-echo "Select a listing type" >>                       :format (lem-ui-widget-format "Listing") ; "C-c C-c") > > What's the intention with the "C-c C-c"? Could it go at the end of the :format suggestion I gave above? yes, with the above :format it should work. thanks again for chiming in and helping me out! marty From unknown Thu Aug 14 22:24:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#69457: unable to place two menu-choice widgets on same line Resent-From: Mauro Aranda Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Feb 2024 15:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69457 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: martyhiatt@riseup.net, 69457@debbugs.gnu.org Received: via spool by 69457-submit@debbugs.gnu.org id=B69457.170922034318405 (code B ref 69457); Thu, 29 Feb 2024 15:26:01 +0000 Received: (at 69457) by debbugs.gnu.org; 29 Feb 2024 15:25:43 +0000 Received: from localhost ([127.0.0.1]:35065 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rfiI3-0004ml-4Z for submit@debbugs.gnu.org; Thu, 29 Feb 2024 10:25:43 -0500 Received: from mail-pg1-f170.google.com ([209.85.215.170]:51237) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rfiI0-0004mU-3l; Thu, 29 Feb 2024 10:25:42 -0500 Received: by mail-pg1-f170.google.com with SMTP id 41be03b00d2f7-5ce6b5e3c4eso719019a12.2; Thu, 29 Feb 2024 07:25:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709220247; x=1709825047; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=7jLgHjd8lA/Y+3spthO64zSA27bt3FGUWOjUfKX2Cgw=; b=kHPMPGk7H1haWehotHIXYM0VDOLge3o6tb2ZVR6wpBJNK0xBTAiCbn2QG52FLLM9m+ jd5FsBob6QY2Z1YJ+93PWvA0nyF9EG+uF+3Vt3hmZwW4SpYazLA6ratc4lX9wNBZaYiK D6CROwvzpoUGNH95HU7F/UCNLaJmnmb9NfEzXl08Zdsf1IDEiAzBS45x2uAofll/Y2FE TgZt/0Y1o/Gsk5km/9DJTcLGQ8xtpMh+PYYtpbXSQO+rtTvNa/SWL3iCWsxvXY27neuj JoH+TKkW3vWkbmx36nNyj9oVgAI1gO/OpTdBgFrG3+ZWzF3dTz/nFKIs0+xQbdZz8t5R ZI/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709220247; x=1709825047; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=7jLgHjd8lA/Y+3spthO64zSA27bt3FGUWOjUfKX2Cgw=; b=K/trZ/xTYa4/TRcF+J3nyk/myu9IJd74QGN4HIRUJDtgHM44NxuaSbp4jAYLI4ldoZ wA92x4Ekejel5qxEUSifVLDILzGK62RF+o6fpkj+rNMtPq90g6d3Y/UHHjjpLOP+Zvbc Asj2kD3SJ+8VVHUAQjourGmkk4XADB3ZMCqtBU3eQCaD52uhsFxvFX/GTLM7W2WGG0Dw U1W3jgz877NK57jVwOJJLfxdkjB6AQlqEb8E+ZWvYPv99gXJqFczE1FPi29+YrPBNFCL 2r2s/zE9LkD66v4DWfl09KMFOzlT6CNHfvSYJrU12PKAc6TOAJ7etV7fh192WrZEvFGS IAZA== X-Forwarded-Encrypted: i=1; AJvYcCUlUytjYZtijTXUu1vJZ6aySP43bsXp2Lj6h0MjtFWX+uAEfijcsGnbXe+Y/WBnxvV/ENP0GgvtYpJwJ8k0l6stk4tPOBo4bQxRx+9sKAky6ZIwLNq80Jys4sbhjyEa X-Gm-Message-State: AOJu0YwHGESyA3SYew1qgK08RI1SZk3VidtPtedFYbMtg8r9IUHARev4 Hn2TPyP7rPZLTgIXdjJaZCjDPpXGSaNIuLQ4Foekp9qA6v27EIfv X-Google-Smtp-Source: AGHT+IEKNROvLNVBcB6MwoSTSgQsXkwMdRY26GVtK6YAPuIwOGw6ifD3X7DcLIOFOPQg96aZeoWyag== X-Received: by 2002:a17:90b:314e:b0:29a:4b13:786f with SMTP id ip14-20020a17090b314e00b0029a4b13786fmr2412852pjb.36.1709220246905; Thu, 29 Feb 2024 07:24:06 -0800 (PST) Received: from [192.168.0.100] ([181.228.33.6]) by smtp.gmail.com with ESMTPSA id bg1-20020a056a02010100b005dc9ab425c2sm1293821pgb.35.2024.02.29.07.24.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 29 Feb 2024 07:24:06 -0800 (PST) Message-ID: <8edf679d-292d-4392-84ec-0142f3513104@gmail.com> Date: Thu, 29 Feb 2024 12:24:03 -0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US References: <5f95b89c-f8ee-4615-a856-aeb8deef0f8b@riseup.net> From: Mauro Aranda In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 (-) tags 69457 notabug close 69457 quit martyhiatt@riseup.net writes: >> Yes, you need to control the :format for the choices to accomplish >> this, at least. >> >>> some example code i have: >>> >>> (defun lem-ui-return-item-widgets (list) >>>    "Return a list of item widgets for each item, a string, in LIST." >>>    (cl-loop for x in list >>>             collect `(choice-item :value ,x))) >> So, how about adding something like: >> :format "%[%t%] " >> here? >> Did you try that? > > thanks a lot, this works. i see now i had been shedding tears fighting > with the menu-choice :format, not realizing i needed to wrangle the > children elements instead. glad i asked the widget expert. %v also > seems to work here, right? I'm glad it worked.  %v should work too, depends on what you need. >>> ;; then within a buffer display function: >>>   (widget-create 'menu-choice >>>                       :tag "Listing" >>>                       :value type >>>                       :args (lem-ui-return-item-widgets lem-listing-types) >>>                       :help-echo "Select a listing type" >>>                       :format (lem-ui-widget-format "Listing") ; "C-c C-c") >> What's the intention with the "C-c C-c"? Could it go at the end of >> the :format suggestion I gave above? > > yes, with the above :format it should work. > > thanks again for chiming in and helping me out! You're welcome.  It seems there's nothing more to do with this bug report, so I'm marking it as notabug and closing it. Feel free to reach me if you need further help.