From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 6JIfJIHp3GT8bQEASxT56A (envelope-from ) for ; Wed, 16 Aug 2023 17:21:37 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id IE09I4Hp3GRw6AAAG6o9tA (envelope-from ) for ; Wed, 16 Aug 2023 17:21:37 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 13AA663EB1 for ; Wed, 16 Aug 2023 17:21:37 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=g4vIJzgG; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1692199297; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-to: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=84JMQi0Pv3dgZkbhwdp00M/GBf2ViCU4iQqxZgNIRbM=; b=fgP14CyVd4/O13vEL6DITMmfOXWmkdmrA1Fzg17NpIs9retbNSDlHBtH+Xwc3dnVjPew6k bs133j0GnU3RRNhvPIHw3ehDAxFXy4SMl7NWKKrDKFBqxg8/yS/hz3xDVSYh7vmTHUoHIZ GNqKMQ1nvjxisIMyrLQUd6L5Isx6SptATaDZ4pyX/7fpfYQBfLsLG3oBpX+zfjzwJXepKw AuAFgFeU/lU+Vy/1BRlcVlBpmGD5pm7fL1tAL3AiygdTOBuGQNbMfwVgjaAnQOVmw5LrmT B5e1w6VEATdeoMohkDUGNUktf08ataVKdR+WQ27bAiroYl6yNFlGQbFs4gyvWQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=g4vIJzgG; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1692199297; a=rsa-sha256; cv=none; b=IeI4hI+1pZB/lc7+jfyHQ1/xeX+3IedBWaL5DlFa+wnHsuai++i8+E5ofjBx3VKmy1PV6p x0dmRGieXHv2OZFDyNDyCd0aMp+Na1hhDF1MorHS4E/RbhmQGcgS9d5+dCEdVyqPJNhb5/ 5UM7KVNpeTCfXHiImbiGD+4Or7y5YIqKt7WgiPjc+L6Lo98VfYmJiKEVkEZKdsKH3lmchl xQgYHY0Y3emtwhi+VzDUgOSWarlT1IaC72UjBdn+3oUpn/siSsU8CabZ9PZEoNgnwW2w7k ilIj++3VJsTTAgL/OZlsHPksoqCRU3G/hlPdzwy4bu7keq67zqv1RnUzQsinYQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qWIKn-0003wZ-4Z; Wed, 16 Aug 2023 11:21:21 -0400 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 1qWIKV-0003oT-I7 for bug-guix@gnu.org; Wed, 16 Aug 2023 11:21:05 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qWIKU-0008NL-G8 for bug-guix@gnu.org; Wed, 16 Aug 2023 11:21:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qWIKU-0008Jt-4h for bug-guix@gnu.org; Wed, 16 Aug 2023 11:21:02 -0400 Subject: bug#64881: [translation] M-x texinfo-all-menus-update breaks translated cookbook Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Date: Wed, 16 Aug 2023 15:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 64881 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: "pelzflorian (Florian Pelz)" Cc: Josselin Poiret , 64881-done@debbugs.gnu.org Mail-Followup-To: 64881@debbugs.gnu.org, maxim.cournoyer@gmail.com, maxim.cournoyer@gmail.com Received: via spool by 64881-done@debbugs.gnu.org id=D64881.169219921631915 (code D ref 64881); Wed, 16 Aug 2023 15:21:01 +0000 Received: (at 64881-done) by debbugs.gnu.org; 16 Aug 2023 15:20:16 +0000 Received: from localhost ([127.0.0.1]:41849 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qWIJk-0008Ig-Cw for submit@debbugs.gnu.org; Wed, 16 Aug 2023 11:20:16 -0400 Received: from mail-qv1-xf2b.google.com ([2607:f8b0:4864:20::f2b]:52732) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qWIJi-0008IR-FO for 64881-done@debbugs.gnu.org; Wed, 16 Aug 2023 11:20:15 -0400 Received: by mail-qv1-xf2b.google.com with SMTP id 6a1803df08f44-640c5df2e6eso34082526d6.1 for <64881-done@debbugs.gnu.org>; Wed, 16 Aug 2023 08:20:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692199208; x=1692804008; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=84JMQi0Pv3dgZkbhwdp00M/GBf2ViCU4iQqxZgNIRbM=; b=g4vIJzgGdlnV54tHIBKr4orCdu/0lDpF8Zc+Ew4OShMQGz3yRB5SWVxBPzStWVixSs F081BBNmG2zcv5zQHrKiqQkR9Us4mKlDkv6SYbeQA0choQwBtMWTvip26fstsXRr4qat 9iJkMwhGwXrBhkp0OiLY2i/Odt0/CiXsCsdq7dCKpRC81coVktVDWegDzuGXuZQ65l3Q CME6rm6JppSxhX07NeM51rYbsXVeZB4Ap5drH1ibfw5hqpCiZy7bIUBX2VfumoAqGkaP 4yWWqcSi19g2OoT3n/m29kS44c37qVsHZ3mVM9oMlYYzHJRlZoeNWydDDvqtPz0DNq6i +rkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692199208; x=1692804008; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=84JMQi0Pv3dgZkbhwdp00M/GBf2ViCU4iQqxZgNIRbM=; b=lIpodkSdWIAaGBUyhjOS0qgmKyvKaOgEUwrl7uSowhOLQfWcvjxoky5fhaBe+fT/Fy /r2ZFWtDlU3vCCO+fsKsMDrJK9PcLSlbi9ckaAGfNo0DyynMkAhRJj1FeCqrdVu0hQNo EbXpiLb2KULmsmzU6gOmM5RvD/NY4g9g/ZfKSzukKxaUMZudx4B80b4GZr1Cw1zmaISB cmQKpzEo4zJujkEhdoUTGrOb09sB8uCQFMQ636eTSYCfX9Tp1r46AnW7+pJ53sOrCj+k wGSg56wmLcaXQ4XSYv+ZNyZ7MGibdb08Kfa8xThf2ESUW8ObuAert9DhtBnIe6cym92F xjTA== X-Gm-Message-State: AOJu0Yy4weq2jWpU2ZB1Vrcl2MpoALJBO1f0cRJGkrIYT9avmsiDs4T+ VEMrycmU6X/zsrfL+Y73kOa56OjuGwU= X-Google-Smtp-Source: AGHT+IFsEcc0FrYew/aFea8UUaHjvJhyPCaTuFOpn9o+LzdqC579uWom9XMptpCagk0heQ6LbzwCJA== X-Received: by 2002:a0c:dd0d:0:b0:63d:70f6:8f6f with SMTP id u13-20020a0cdd0d000000b0063d70f68f6fmr2101279qvk.43.1692199208563; Wed, 16 Aug 2023 08:20:08 -0700 (PDT) Received: from hurd (dsl-152-182.b2b2c.ca. [66.158.152.182]) by smtp.gmail.com with ESMTPSA id z8-20020a0cda88000000b0063cf4d0d558sm2761410qvj.25.2023.08.16.08.20.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Aug 2023 08:20:07 -0700 (PDT) From: Maxim Cournoyer References: <87cz0ezcwb.fsf@gmail.com> <874jlpfscg.fsf@pelzflorian.de> <877cqlmkyj.fsf@jpoiret.xyz> <877cqlz767.fsf@gmail.com> <87ila541kz.fsf@pelzflorian.de> Date: Wed, 16 Aug 2023 11:20:06 -0400 In-Reply-To: <87ila541kz.fsf@pelzflorian.de> (pelzflorian@pelzflorian.de's message of "Thu, 27 Jul 2023 21:05:32 +0200") Message-ID: <87ttszhv4p.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Spam-Score: 2.91 X-Migadu-Queue-Id: 13AA663EB1 X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: 2.91 X-TUID: mG+ehdbOLbCN Hi Florian, "pelzflorian (Florian Pelz)" writes: > Maxim Cournoyer writes: >> M-x texinfo-update-all-menus is available out-of-the-box in Emacs, when >> visiting a .texi file (you invoke it via Alt-x texinfo-update-all-menus >> or by visiting the 'Texinfo -> Update All Menus' menu). > > Oops my bad. I should have expected that Emacs commands are invisible > unless the right Emacs mode is used. Thank you for clarifying and > presenting as a patch. > > Josselin Poiret writes: >> `make as-derivation` uses #:select? git? to restrict to only files >> that are checked out in git. It doesn't try to get the contents of HEAD >> though, the working directory's state is used instead. > > Oh hmm doc/guix-cookbook.de.texi is not checked in, so even `make > as-derivation` should have worked=C2=A0... > > This got nothing to do with stray .de.texi files. Apparently it is > because the menu entries lack menu descriptions (which should be > optional according to `info texinfo'). > > The attached patch on top of your patch helps=C2=A0... > > Either we add optional descriptions everywhere or not update menu > entries without description or change how po4a translates the menu > entries in po4a source file lib/Locale/Po4a/Texinfo.pm in > translate_buffer_menuentry, to make po4a translate when there is no > description. I don=E2=80=99t plan to do that though. I've modified po4a to support this use case, with tests and all! Pushed as 352c49e1a5c48eb76389ee384eb95fc2e4a6ab32, with coobook menus updated in the following commit. Thanks for the analysis and pointers! --=20 Thanks, Maxim