From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#53981: 28.0.91; shortdoc: Add support for outline-minor-mode Date: Wed, 09 Nov 2022 19:24:32 +0200 Organization: LINKOV.NET Message-ID: <86leokujlb.fsf@mail.linkov.net> References: <86k045b70e.fsf@mail.linkov.net> <83a651xmx8.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4454"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: mail@daniel-mendler.de, 53981@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 09 18:28:08 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1osorw-00012Q-QE for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 09 Nov 2022 18:28:08 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1osorq-0007wa-Ue; Wed, 09 Nov 2022 12:28:02 -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 1osorq-0007wK-Df for bug-gnu-emacs@gnu.org; Wed, 09 Nov 2022 12:28:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1osorq-00067h-4Z for bug-gnu-emacs@gnu.org; Wed, 09 Nov 2022 12:28:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1osorq-000384-0d for bug-gnu-emacs@gnu.org; Wed, 09 Nov 2022 12:28:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Nov 2022 17:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53981 X-GNU-PR-Package: emacs Original-Received: via spool by 53981-submit@debbugs.gnu.org id=B53981.166801486211983 (code B ref 53981); Wed, 09 Nov 2022 17:28:01 +0000 Original-Received: (at 53981) by debbugs.gnu.org; 9 Nov 2022 17:27:42 +0000 Original-Received: from localhost ([127.0.0.1]:40797 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osorW-00037D-HO for submit@debbugs.gnu.org; Wed, 09 Nov 2022 12:27:42 -0500 Original-Received: from relay2-d.mail.gandi.net ([217.70.183.194]:44057) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osorV-00036p-Ic for 53981@debbugs.gnu.org; Wed, 09 Nov 2022 12:27:42 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 3D7CD40008; Wed, 9 Nov 2022 17:27:32 +0000 (UTC) In-Reply-To: <83a651xmx8.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 08 Nov 2022 21:32:03 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:247451 Archived-At: --=-=-= Content-Type: text/plain > These two loops cons a new string each iteration. (So did the > original code, but if we are touching this, might as well fix that.) BTW, the patch uses functions from text-property-search.el. But these useful functions are still not autoloaded. Here is the patch to autoload them: --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=text-property-search-autoload.patch diff --git a/lisp/emacs-lisp/text-property-search.el b/lisp/emacs-lisp/text-property-search.el index d41222bdbf1..7e78fdfe7d6 100644 --- a/lisp/emacs-lisp/text-property-search.el +++ b/lisp/emacs-lisp/text-property-search.el @@ -26,9 +26,12 @@ (eval-when-compile (require 'cl-lib)) +;;;###autoload (autoload 'prop-match-beginning "text-property-search") +;;;###autoload (autoload 'prop-match-end "text-property-search") (cl-defstruct (prop-match) beginning end value) +;;;###autoload (defun text-property-search-forward (property &optional value predicate not-current) "Search for the next region of text where PREDICATE is true. @@ -131,7 +134,7 @@ text-property--find-end-forward :end end :value (get-text-property start property)))) - +;;;###autoload (defun text-property-search-backward (property &optional value predicate not-current) "Search for the previous region of text whose PROPERTY matches VALUE. diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el index 61a26b504c8..5a27dcd4c27 100644 --- a/lisp/international/mule-cmds.el +++ b/lisp/international/mule-cmds.el @@ -3284,10 +3284,6 @@ reorder-starters (defvar reorder-enders "[\u202C\u2069]+\\|\n" "Regular expression for characters that end forced-reordered text.") -(autoload 'text-property-search-forward "text-property-search") -(autoload 'prop-match-beginning "text-property-search") -(autoload 'prop-match-end "text-property-search") - (defun highlight-confusing-reorderings (beg end &optional remove) "Highlight text in region that might be bidi-reordered in suspicious ways. This command find and highlights segments of buffer text that could have diff --git a/lisp/bookmark.el b/lisp/bookmark.el index b57ad12986d..d0a14b0cebf 100644 --- a/lisp/bookmark.el +++ b/lisp/bookmark.el @@ -34,7 +34,6 @@ (require 'pp) (require 'tabulated-list) -(require 'text-property-search) (require 'fringe) ; for builds --without-x (eval-when-compile (require 'cl-lib)) --=-=-=--