From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: Faces for strong, emph and friends in Info? Date: Wed, 10 Apr 2024 18:11:25 +0200 Message-ID: <878r1lrydu.fsf@gmail.com> References: <86o7ajyk6v.fsf@gnu.org> <87o7ajssgp.fsf@gmail.com> <86jzl7yajk.fsf@gnu.org> <87jzl6syde.fsf@gmail.com> <86le5mx3j8.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21244"; mail-complaints-to="usenet@ciao.gmane.io" Cc: raman@google.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Apr 10 18:13:04 2024 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 1ruaZL-0005JK-IC for ged-emacs-devel@m.gmane-mx.org; Wed, 10 Apr 2024 18:13:03 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ruaYU-0007k6-2X; Wed, 10 Apr 2024 12:12:10 -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 1ruaY8-0007Lx-KP for emacs-devel@gnu.org; Wed, 10 Apr 2024 12:11:52 -0400 Original-Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ruaXt-0003kG-IG; Wed, 10 Apr 2024 12:11:47 -0400 Original-Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-3442f4e098bso2467127f8f.1; Wed, 10 Apr 2024 09:11:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712765487; x=1713370287; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=Q5qNVN/y+1lJXfRTI6G918ofKcHiehsO49cKp4uK5IU=; b=E+hT4cWBoFpZ6mtC2zcM65k903vxdMqNgp0/et6cmQpb0AIgVyZMT7AoCQjT3P/zri pJ2j+2sh2s3vD75g2TlUqih2cMgEgbV9vUyY/7w0nnhHwsiG+0WJc1oE3psxH5OmZGg6 bB+/d/quiqknDiAaq9eDXVsViNvouK+axGNKvOoVQtYJ388uKN8gz8d7prWkcPMf4n6D 1yDRkX1O3WpZS70K8TrkMg/81zjyKZK39oKacHNMpW1OVlau0OgkTa1a/pTliFFzamHL MO7CooTBglF3qMp6li8v9UGaS1/kGLucGamreAMAv6lX/QotklKotv/PGN+7LnA12tyk 9Mhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712765487; x=1713370287; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Q5qNVN/y+1lJXfRTI6G918ofKcHiehsO49cKp4uK5IU=; b=Q716JmWA0dZ2NkwmYMPuzxNe2GnqRsdG8Saf49C9SM38zNqs+7uP/YbHtcF6jc4+Cz 8FM/yaKFL3lroKf5/RlBzW1aA2fdPJYhTxZ83PfHgOo6NM6q53FCeu9v+4R2mK9CXVGs kl5iIf3psk7Ya08A9u6aDqAECo0bC9ogNcVQ7nn/4QloNUK4LE26MMjlCUyLulbmYVYs sjqvSdZ+iVUmvWuDFH4qo6Iqv7slOAYEpiRubuoZHmx95ajGV08Fd/EGLHX9kDh7E/Zo gP3qOOvHKV3iqzZCuVP/oS9Ko662RIIfjescLj6jp518Uz5d67ie45RIGZtP6vPrXHUW 2blA== X-Forwarded-Encrypted: i=1; AJvYcCVbrr59AnkdnvMz345JBm+AX7/1FqtQdAosdyNkSfjfjAJv0BGtFSHl8ct8oxxKqbbP91hAphvsI91sTjGDEWkOP8GC X-Gm-Message-State: AOJu0Yz0D+RcendALx7e+gi7rKQNWE3zcvvkqszn7uoZPOf/8G0rojAC z7rxL9AM5eiFn+dvuwV6F2p3VXn/GCtdaDKXo6zbOAWtSxdClg50Q5g+FTl4 X-Google-Smtp-Source: AGHT+IGteqwa10pXDQTSmOl1LelbDHOXXCXv0Yiw7D374KZyYTA4jrBE8A+XYVpwEM6eMCJgFc9bkQ== X-Received: by 2002:a5d:5143:0:b0:345:a63d:4a2f with SMTP id u3-20020a5d5143000000b00345a63d4a2fmr158884wrt.0.1712765486970; Wed, 10 Apr 2024 09:11:26 -0700 (PDT) Original-Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id s7-20020adff807000000b00343d6c7240fsm14012423wrp.35.2024.04.10.09.11.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 09:11:26 -0700 (PDT) In-Reply-To: <86le5mx3j8.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 09 Apr 2024 12:56:43 +0300") Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=rpluim@gmail.com; helo=mail-wr1-x429.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, T_SPF_TEMPERROR=0.01 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:317665 Archived-At: >>>>> On Tue, 09 Apr 2024 12:56:43 +0300, Eli Zaretskii said: Eli> Here's the first hit I found: Eli> =E2=80=98woman-use-topic-at-point=E2=80=99 Eli> A boolean value that defaults to =E2=80=98nil=E2=80=99. If= non-=E2=80=98nil=E2=80=99 then the Eli> =E2=80=98woman=E2=80=99 command uses the word at point as t= he topic, _without Eli> interactive confirmation_, if it exists as a topic. Eli> We never wrap @emph and @strong in @w, so it's small wonder this Eli> happens quite a lot. In the original texi "without interactive confirmation" is all on the same line, so this one is understandable. And there=CA=BCs indentation in the resulting info file, which means when we use '_' to simulate italics, the indentation does not look good. So here=CA=BCs what needs deciding: - what do we fontify? There are instances of eg @strong{Warning:} where I could argue that the ':' should be outside the @strong{}. So we either match ?: (and ?.) as well, or move those chars outside the {} - do we match across newlines? (in fact, in info buffers, we have to make an effort to not match across newlines, since newline has whitespace syntax there, so [[:space:]] matches it. - if we match across newlines, do we go around wraping @w around all the multiword @emph and @strong? (could we persuade the texinfo project to do this for us or emit a warning?) - how configurable does this need to be? I=CA=BCd say a single toggle is enough, but Drew might disagree. I guess adding a defcustom for the matching regexp is easy enough as well. Robert PS "This looks like a nice simple change, I have a small amount of time" always seems to turn into something much bigger with Emacs :) --=20