From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "T.V Raman" Newsgroups: gmane.emacs.devel Subject: Re: outline-minor-mode: Did something change Date: Thu, 11 Jan 2024 08:36:28 -0800 Message-ID: References: <26011.24661.699319.999221@google.com> <26012.10587.790219.689275@google.com> <86y1cxpxg6.fsf@mail.linkov.net> <26014.46896.610522.67525@retriever.mtv.corp.google.com> <86v880phro.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39478"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jan 11 17:37:34 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 1rNy3i-000A7g-EV for ged-emacs-devel@m.gmane-mx.org; Thu, 11 Jan 2024 17:37:34 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rNy2n-0000Ca-QL; Thu, 11 Jan 2024 11:36:37 -0500 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 1rNy2l-0000C8-Ia for emacs-devel@gnu.org; Thu, 11 Jan 2024 11:36:35 -0500 Original-Received: from mail-oa1-x34.google.com ([2001:4860:4864:20::34]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rNy2j-0006fL-Vm for emacs-devel@gnu.org; Thu, 11 Jan 2024 11:36:35 -0500 Original-Received: by mail-oa1-x34.google.com with SMTP id 586e51a60fabf-204235d0913so3317511fac.1 for ; Thu, 11 Jan 2024 08:36:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1704990991; x=1705595791; darn=gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=9HRXxjFPGduczfehdJY23dgl4fsYWJOGJVG56Pr091Y=; b=rth/a9UKKLoBMcNJrxahj3f8iaO9tivmtdnBh/ahIY4f58jr7ilT86ex7jR3spFmri OdzYcGFrisKAQvA+tU6FGTf0F0iAK+M7PE/41qIN82fMEaks1wV2vlb/eSfcT/TrX4nZ DIuc1hwF3NEq7lAD2hAtfkkml1251MSrXDw+VgD/7M0Gm/c7XMeY+GgK3V0QhQcCtJX7 3FuqiSXyB+CRf9Be8dM3laD2QutyWfDzDWEPXXESr7lUOD6NjOMe7w/A1C7MftBTbIRu VFsOp4tyTfGjhNYF9HDMa3rx+pxG+YvUbmqDbNQJ0TJ3ECKANPOwIwklvyYofsjU6fu9 du0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704990991; x=1705595791; h=mime-version:user-agent: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=9HRXxjFPGduczfehdJY23dgl4fsYWJOGJVG56Pr091Y=; b=adTcK25gN+4A5+hKIezN985HhPi6V5dA7V7cRZQ0Mw537O7KuByLrzQWjUjNXQN/Ma ES3VKPXAA36uBOtnWZP1u3WdCt9vCyW09IBAtppLonACEmr05Dn0pwDdrAezg9A47rOe rFGziVSMTSyBB2pTy3C+693eBEVqesL3OdUGFIFHqbEXlFAKMggrW7IlB/s9wIF8eeTb yUdoyvwjsmSbRoM+jEj98F3yCIbzuEWAh38XlJaJ+S/kveoaeTTEdqpt0p3T/ynKJPnK Vg29nS0c0ZCFCD3P7TPPMksxbbstdAqKd0bzgAXckA9a0SUpDMeYgFevjgch6WJH5+04 Jxlg== X-Gm-Message-State: AOJu0YyWyHFZuB7q+lsZTk9ORJtTO4CZPb3pjf69EX8Yb2JNSBBf2seu GxKtCWCV1q1BlrTe1ysiv2P93lYc0GzzzYe8XYHUzrhRrW4r X-Google-Smtp-Source: AGHT+IEVor19c8iNE5MG6nosZVhSvWdcyTRS8cmVkrvxPgqUN5xTAYh/Sux/Umn7K1pQsqq+X9ahqw== X-Received: by 2002:a05:6870:b41d:b0:204:e5a:2b5a with SMTP id x29-20020a056870b41d00b002040e5a2b5amr1647399oap.111.1704990991033; Thu, 11 Jan 2024 08:36:31 -0800 (PST) Original-Received: from raman9 (c-98-45-12-92.hsd1.ca.comcast.net. [98.45.12.92]) by smtp.gmail.com with ESMTPSA id l64-20020a639143000000b005c621e0de25sm1409073pge.71.2024.01.11.08.36.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 08:36:30 -0800 (PST) In-Reply-To: <86v880phro.fsf@mail.linkov.net> (Juri Linkov's message of "Thu, 11 Jan 2024 09:03:15 +0200") Received-SPF: pass client-ip=2001:4860:4864:20::34; envelope-from=raman@google.com; helo=mail-oa1-x34.google.com X-Spam_score_int: -175 X-Spam_score: -17.6 X-Spam_bar: ----------------- X-Spam_report: (-17.6 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5 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:314861 Archived-At: Juri Linkov writes: I' not disagreeing with you; what I was pointing out is that the HTML Web rejected all notions of structured markup a long time ago, so hoping that structure alone will give us something useful remains a dream -- one that I too dremt a long time ago >>>> The new function shr-outline-search doesn't use outline-regexp. >>>> It searches for the text property 'outline-level' that the function >>>> 'shr-heading' puts on HTML headers. Then it makes outline headings >>>> only on the lines with HTML headers. This is a more reliable way >>>> than using a regexp. >>>> >>>> However, if you want to make outlines with a specific regexp >>>> what you already did is the right way to do this. >>> >>> Using headers is the right idea an the regexp is a hack, but sadly >>> the entire Web is a hack that forgot the meaning of structure a long, >>> long time ago! >> >> Only think to add: could we have a half-way house solution that at least >> for a while uses both ie outline-level and outline-regexp? > > outline-regexp is too unreliable: in eww need not to mismatch HTML headers, > in emacs-lisp-mode not to match the open parenthesis in the docstring, etc. > For the same reason tree-sitter is preferable to regexp-based font-lock. --