From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 08 03:39:38 2018 Received: (at submit) by debbugs.gnu.org; 8 Apr 2018 07:39:38 +0000 Received: from localhost ([127.0.0.1]:41853 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f54vH-0000K8-QZ for submit@debbugs.gnu.org; Sun, 08 Apr 2018 03:39:36 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56273) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f54vG-0000Jt-0F for submit@debbugs.gnu.org; Sun, 08 Apr 2018 03:39:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f54v8-0004z1-Jn for submit@debbugs.gnu.org; Sun, 08 Apr 2018 03:39:27 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:50818) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f54v8-0004yu-Gy for submit@debbugs.gnu.org; Sun, 08 Apr 2018 03:39:26 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47208) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f54v7-0006uT-5w for bug-gnu-emacs@gnu.org; Sun, 08 Apr 2018 03:39:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f54v3-0004xf-6V for bug-gnu-emacs@gnu.org; Sun, 08 Apr 2018 03:39:25 -0400 Received: from mout.gmx.net ([212.227.15.18]:44843) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f54v2-0004xC-RN for bug-gnu-emacs@gnu.org; Sun, 08 Apr 2018 03:39:21 -0400 Received: from E15-2016.optimum.net ([108.6.168.221]) by mail.gmx.com (mrgmx001 [212.227.17.184]) with ESMTPSA (Nemesis) id 0Lcj9b-1efwdE0BlP-00kCAk for ; Sun, 08 Apr 2018 09:39:19 +0200 Date: Sun, 8 Apr 2018 03:39:16 -0400 From: Boruch Baum To: Emacs Bug Reporting Subject: 25.2: Feature Reuqest: apropos-value: limit scope [CODE INCLUDED] Message-ID: <20180408073916.d5lsceul3gpj34l3@E15-2016.optimum.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="lyagqavzr2krievf" Content-Disposition: inline User-Agent: NeoMutt/20180223 X-Provags-ID: V03:K1:4e1nrLnH0gPmfQrY8Ycn6F4YREUsWqVxRqT8yR5u4EE9zGTivZ+ jv704AKa3KngdcDWNbvB9UnN2VV8EWUd/xKsDxLQdzztoDc3UW7IUS4KMAGxj2fp/mJSex8 wABEpW1zF1YF2ztng+69DSIpzyWtphqOQ1vQGy9NBkigXot0WXHU4PTM0J4YTerMqjfQmP1 +Mf7WNJU+hRjOt1q/9iXg== X-UI-Out-Filterresults: notjunk:1;V01:K0:QUrfzgnGZM8=:reM2cAQLfEJ/OAswBf78W4 fx7XpBRiHfNLLn5i2eJx5RMh/0F4MOETaBD6tAwXC7OfVS1AvNNk+/VRYH8l8BmvpFySv2OJ+ 3tmQWIfpYbJ2VL1hv/rov0x+Y0euFb9ZAPEr2BEfrMdSVdhlwcR2UPuLyZSXcqx6YXzFaufvm Ir1fpQWKLja39hqmWliPq95hwxxGe8uiE0P62k/J11LYH+nuInDRORVMk2h4DRumEEU7MljIa Bh3ZP7fYgfeLedM/kyUacTfsqZ1Ak2pFJKYSEnwqcohWbDW23+lQYyymCThifGBsgw8JuNqSv CJbUXQM9xB8LQ2VXM/8Oy5Q/sC9aODdUT9pkw4HvDpF5pjmL8+QUCz7JwGhaWR8DGQUR7AS7y uqkE7lKtKTJo4SgqL7RZ0xgat/ZIbIDwk9tImOCdggyIHWIgj/p7kwyA9eXsivR0fZsIF8Uew o9BurCKNR5qEc1ku7k/yCfNHPk9PvPExjkUuasYPCNGDy39/wb5AYaj1fjXlh0Xke1C/9tR4h 9rN/LtxOov9rqbrnPdTtMWInzHWDVaAWaoROoNZf1A3RuJZXliiUYfjmms14Tj7K8QTF6tzU0 6RliyU/cD614SnSVbUMOi/+oLvkqvMM7h3lBblV0oZd3bpBqGTZ6HZvhnzjXorc36O49E/7H5 VAoQEZFDQK9kCNpdj8WuMpYJx49JsfJAdG9yueXS7dvImbpwidLitPexw6e1VmDRLc8MQeAk2 cqULtKFfFfsKlsI+jOvVIQHG7RFgVBF6+Uv1M/fkAFB66JHhhoR88IgmFM5z3tbn2MZBrOOth LHUm4ZH56U3cpIK9kjgycK2l3VdOg== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit 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: -5.1 (-----) --lyagqavzr2krievf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline I've begun using function apropos-value, and find that its ouput is undesirably huge, because the feature prints out the entire value of each variable that contains a match. Some of this can be reduced when considegring that in most cases, I know in advance that a value will be present in some very commonly used huge variables, that won't be of use to me (eg. kill-ring, minibuffer-history).f A better solution would be an option to initially print only the names of symbol that contain a match. The user can then easily view any value of interest, because the output buffer already includes a feature that pressing return on any symbol in the output list will display the documentation for the symbol, which will include the variable's value. Attached was my first thought at a solution, using an exclude list to exclude certain variables from a search. As I said, upon further consideration, I decided it would be better to abbreviate the output buffer to just a list of symbol names, but I came to that conclusion after writing the snippet. -- hkp://keys.gnupg.net CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0 --lyagqavzr2krievf Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="apropos-value.el" (defcustom apropos-value-exclude-list '(kill-ring values minibuffer-history buffer-name-history command-history ivy--all-candidates) "List of variable names to be excluded from `apropos-value' searches." :type '(repeat variable)) (defun my-apropos-value (pattern &optional do-all) "Allow `apropos-value' to limit scope of its searches. With \\[universal-argument] prefix, or if `apropos-do-all' is non-nil, also looks at function definitions (arguments, documentation and body) and at the names and values of properties. With two \\[universal-argument] prefixes, excludes the variables listed in `apropos-value-exclude-list' from its search. With three \\[universal-argument] prefixes, performs a search only on the variables listed in `apropos-value-exclude-list'. See also variable `apropos-value-limited-print'." (interactive (list (apropos-read-pattern "value") current-prefix-arg)) (apropos-parse-pattern pattern) (or do-all (when apropos-do-all (setq do-all '(4)))) (setq apropos-accumulator ()) (let (f v p) (if (equal do-all '(64)) ; C-u C-u C-u (dolist (symbol apropos-value-exclude-list) (when (setq v (apropos-value-internal 'boundp symbol 'symbol-value)) (setq apropos-accumulator (cons (list symbol (apropos-score-str v) nil v nil) apropos-accumulator)))) (mapatoms (lambda (symbol) (setq f nil v nil p nil) (or (memq symbol '(apropos-regexp apropos-pattern apropos-all-words-regexp apropos-words apropos-all-words do-all apropos-accumulator apropos-value-exclude-list symbol f v p)) (and (equal do-all '(16)) ; C-u C-u (memq symbol apropos-value-exclude-list)) (setq v (apropos-value-internal 'boundp symbol 'symbol-value))) (when (equal do-all '(4)) ; C-u (setq f (apropos-value-internal 'fboundp symbol 'symbol-function) p (apropos-format-plist symbol "\n " t))) (if (apropos-false-hit-str v) (setq v nil)) (if (apropos-false-hit-str f) (setq f nil)) (if (apropos-false-hit-str p) (setq p nil)) (if (or f v p) (setq apropos-accumulator (cons (list symbol (+ (apropos-score-str f) (apropos-score-str v) (apropos-score-str p)) f v p) apropos-accumulator))))))) (let ((apropos-multi-type (if (equal do-all '(4)) t nil))) (apropos-print nil "\n----------------\n"))) --lyagqavzr2krievf-- From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 08 07:09:12 2018 Received: (at 31094) by debbugs.gnu.org; 8 Apr 2018 11:09:13 +0000 Received: from localhost ([127.0.0.1]:41941 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f58C8-00057S-Hk for submit@debbugs.gnu.org; Sun, 08 Apr 2018 07:09:12 -0400 Received: from mout.gmx.net ([212.227.17.20]:60071) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f58C7-00057F-2k for 31094@debbugs.gnu.org; Sun, 08 Apr 2018 07:09:11 -0400 Received: from E15-2016.optimum.net ([108.6.168.221]) by mail.gmx.com (mrgmx102 [212.227.17.174]) with ESMTPSA (Nemesis) id 0M1RHp-1eBe8133mr-00tU6l for <31094@debbugs.gnu.org>; Sun, 08 Apr 2018 13:09:05 +0200 Date: Sun, 8 Apr 2018 07:09:01 -0400 From: Boruch Baum To: 31094@debbugs.gnu.org Subject: Code for second solution Message-ID: <20180408110901.4dukaueroieovrkp@E15-2016.optimum.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="v2vwy2qwgalrblb4" Content-Disposition: inline User-Agent: NeoMutt/20180223 X-Provags-ID: V03:K1:Kzwcp2MUEofV3hMwQWC7spzRt8YVTxqJWqlHLwI33yqOPCLfEge CXS/TiALmVrbODhaT8I+tPAWZBPecDCNayshHs8b31Q81jnAtK4xuNQGdiJbd2og/m2oKt6 Vba3NOhTx2HY0tSJQSVyrgvJjDPelnkYie3ChmCtqfnHFDaZEBXytOpw7KGb+EUdvTtXkmq AheMqB1yjk90pVNXchUNw== X-UI-Out-Filterresults: notjunk:1;V01:K0:6E4e8F4LkWo=:sWDkEBVUQ5wNbR0403fm7J a4EWXFPGBBY31uB9pDV1xYEGjaIkwkGOUpKG8WS2eyNGso43X3FNpWr5zBu5knZALKXignZX+ 9s1B7gqlFJZTCVAquSgPWORWd8OSz5ovoO/8YrGpjt04ghYHErvIsFJ0dXOufvjzuM+oDnd8R NWjj3w2/wIqC+LX9Azd7LdW/jHeeMhCKIbdBjdnudN5sYm+L8CvzCkuFoczSCRxxrP+zBt3Dc xiqQ8rEu/9C5bAscsu5+RA7AXzjA1sqbuaPjgNcgbZ3RNKT2oYxFfRQBFPAPqxvakcxxt1j9m 2lxxQeuzwRz0ZiXNOHyPXlQxlaIiYKV9UfggqG6uEk58kUDDgofDidjH/ccEXkxH74K1o1ttZ REwlqJhBM3ouY0o9vsug/tPv7qz900aNTozG9H98ufNSiMXDXbDM9O6ZQpath9gM78RRCtTOD x/a5Myw/hCvMFraQPUvJ6REtOSiVZY3fxvbHX5QHXylKdaqxBxIZDKCkdMdZSKLGuEMPuYBBM nK8ZXIo8dV3YjfeU80aZ6VQYTbBiwaUnPZGBIrxZ61538gxbNOszWsGfoAKK1fh4XRRYeiD0s 9pZ62Flb8ohZxJKfnHzlM70rX+qJ2nPa3mWtMcndrV3dNzAxGzb5D9GFvJoQ51XQbUhFO8Qki jgSnvMDMOzI1ZDhYhNeafkWHQp0rgUw92H90ZQzqy2nixHImbfyXTQUQEJy+HtU3flpvO0hLz JlP4Y5bj4TbH04WMUeMS4+Ae99lT6JU4imhO+fDs42sVN7mol5dSn2mvASHjBVDfr3ncN6lCi E/zWkLSc1IQ88SfYW8WdGQpQvr1rQ== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 31094 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 (-) --v2vwy2qwgalrblb4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Attached is code for the second solution idea that I mrentioned in my first post. Note that these approaches are complementary and independent; I would advocate for both being adopted. Do note that this 'breaks' a feature formerly available. Prior, pressing return on an entry would display documentation for that entry; Now one must press `C-h v' / `C-h f' etc. -- hkp://keys.gnupg.net CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0 --v2vwy2qwgalrblb4 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="apropos-print.el" (defcustom apropos-value-limited-print nil "Print only symbol names, not their contents. When this option is active, one may always view a symbol's contents by `C-h v' while point is on the symbol's name." :type 'boolean) (defun apropos-print (do-keys spacing &optional text nosubst) "Output result of apropos searching into buffer `*Apropos*'. The value of `apropos-accumulator' is the list of items to output. Each element should have the format (SYMBOL SCORE FN-DOC VAR-DOC [PLIST-DOC WIDGET-DOC FACE-DOC GROUP-DOC]). The return value is the list that was in `apropos-accumulator', sorted alphabetically by symbol name; but this function also sets `apropos-accumulator' to nil before returning. If DO-KEYS is non-nil, output the key bindings. If NOSUBST is nil, substitute \"ASCII quotes\" (i.e., grace accent and apostrophe) with curly quotes), and if non-nil, leave them alone. If SPACING is non-nil, it should be a string; separate items with that string. If non-nil, TEXT is a string that will be printed as a heading." (if (null apropos-accumulator) (message "No apropos matches for `%s'" apropos-pattern) (setq apropos-accumulator (sort apropos-accumulator (lambda (a b) (if apropos-sort-by-scores (or (> (cadr a) (cadr b)) (and (= (cadr a) (cadr b)) (string-lessp (car a) (car b)))) (string-lessp (car a) (car b)))))) (with-output-to-temp-buffer "*Apropos*" (let ((p apropos-accumulator) (old-buffer (current-buffer)) (inhibit-read-only t) (button-end 0) symbol item) (set-buffer standard-output) (apropos-mode) (if text (insert text "\n\n")) (dolist (apropos-item p) (when (and (not apropos-value-limited-print) spacing (not (bobp))) (princ spacing)) (setq symbol (car apropos-item)) ;; Insert dummy score element for backwards compatibility with 21.x ;; apropos-item format. (if (not (numberp (cadr apropos-item))) (setq apropos-item (cons (car apropos-item) (cons nil (cdr apropos-item))))) (when (= (point) button-end) (terpri)) (insert-text-button (symbol-name symbol) 'type 'apropos-symbol 'skip apropos-multi-type 'face 'apropos-symbol) (setq button-end (point)) (if (and (eq apropos-sort-by-scores 'verbose) (cadr apropos-item)) (insert " (" (number-to-string (cadr apropos-item)) ") ")) ;; Calculate key-bindings if we want them. (unless apropos-compact-layout (and do-keys (commandp symbol) (not (eq symbol 'self-insert-command)) (indent-to 30 1) (if (let ((keys (with-current-buffer old-buffer (where-is-internal symbol))) filtered) ;; Copy over the list of key sequences, ;; omitting any that contain a buffer or a frame. ;; FIXME: Why omit keys that contain buffers and ;; frames? This looks like a bad workaround rather ;; than a proper fix. Does anybody know what problem ;; this is trying to address? --Stef (dolist (key keys) (let ((i 0) loser) (while (< i (length key)) (if (or (framep (aref key i)) (bufferp (aref key i))) (setq loser t)) (setq i (1+ i))) (or loser (push key filtered)))) (setq item filtered)) ;; Convert the remaining keys to a string and insert. (insert (mapconcat (lambda (key) (setq key (condition-case () (key-description key) (error))) (put-text-property 0 (length key) 'face 'apropos-keybinding key) key) item ", ")) (insert "M-x ... RET") (put-text-property (- (point) 11) (- (point) 8) 'face 'apropos-keybinding) (put-text-property (- (point) 3) (point) 'face 'apropos-keybinding))) (terpri)) (when (not apropos-value-limited-print) (apropos-print-doc 2 (if (commandp symbol) 'apropos-command (if (macrop symbol) 'apropos-macro 'apropos-function)) (not nosubst)) (apropos-print-doc 3 (if (custom-variable-p symbol) 'apropos-user-option 'apropos-variable) (not nosubst)) (apropos-print-doc 7 'apropos-group t) (apropos-print-doc 6 'apropos-face t) (apropos-print-doc 5 'apropos-widget t) (apropos-print-doc 4 'apropos-plist nil))) (set (make-local-variable 'truncate-partial-width-windows) t) (set (make-local-variable 'truncate-lines) t)))) (prog1 apropos-accumulator (setq apropos-accumulator ()))) ; permit gc --v2vwy2qwgalrblb4-- From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 08 09:06:35 2018 Received: (at 31094) by debbugs.gnu.org; 8 Apr 2018 13:06:35 +0000 Received: from localhost ([127.0.0.1]:42009 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f5A1j-0001H0-E2 for submit@debbugs.gnu.org; Sun, 08 Apr 2018 09:06:35 -0400 Received: from eggs.gnu.org ([208.118.235.92]:47072) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f5A1h-0001Gl-RZ for 31094@debbugs.gnu.org; Sun, 08 Apr 2018 09:06:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f5A1X-0006xd-It for 31094@debbugs.gnu.org; Sun, 08 Apr 2018 09:06:28 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:33901) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f5A1X-0006xJ-Fh; Sun, 08 Apr 2018 09:06:23 -0400 Received: from [176.228.60.248] (port=3110 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1f5A1W-00043a-LB; Sun, 08 Apr 2018 09:06:23 -0400 Date: Sun, 08 Apr 2018 16:06:25 +0300 Message-Id: <83muydzw32.fsf@gnu.org> From: Eli Zaretskii To: Boruch Baum In-reply-to: <20180408110901.4dukaueroieovrkp@E15-2016.optimum.net> (message from Boruch Baum on Sun, 8 Apr 2018 07:09:01 -0400) Subject: Re: bug#31094: Code for second solution References: <20180408073916.d5lsceul3gpj34l3@E15-2016.optimum.net> <20180408110901.4dukaueroieovrkp@E15-2016.optimum.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 31094 Cc: 31094@debbugs.gnu.org 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: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > Date: Sun, 8 Apr 2018 07:09:01 -0400 > From: Boruch Baum > > Attached is code for the second solution idea that I mrentioned in my > first post. Note that these approaches are complementary and > independent; I would advocate for both being adopted. > > Do note that this 'breaks' a feature formerly available. Prior, pressing > return on an entry would display documentation for that entry; Now one > must press `C-h v' / `C-h f' etc. Why not do this the other way around: make apropos-value present a shorter list when invoked with some special value of the prefix argument? Or even make this a new command? That way, people's muscle memory doesn't need to change, which I think is a Good Thing, given that I think we never had any complaints about the current behavior. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 08 09:17:14 2018 Received: (at 31094) by debbugs.gnu.org; 8 Apr 2018 13:17:14 +0000 Received: from localhost ([127.0.0.1]:42017 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f5AC1-0001Vo-PS for submit@debbugs.gnu.org; Sun, 08 Apr 2018 09:17:13 -0400 Received: from mout.gmx.net ([212.227.17.22]:53975) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f5ABz-0001VZ-Ot for 31094@debbugs.gnu.org; Sun, 08 Apr 2018 09:17:12 -0400 Received: from E15-2016.optimum.net ([108.6.168.221]) by mail.gmx.com (mrgmx101 [212.227.17.174]) with ESMTPSA (Nemesis) id 0M8IuM-1eIP5O3aHy-00vxF6; Sun, 08 Apr 2018 15:17:05 +0200 Date: Sun, 8 Apr 2018 09:17:01 -0400 From: Boruch Baum To: Eli Zaretskii Subject: Re: bug#31094: Code for second solution Message-ID: <20180408131700.uwh3bozuqu76xf7m@E15-2016.optimum.net> References: <20180408073916.d5lsceul3gpj34l3@E15-2016.optimum.net> <20180408110901.4dukaueroieovrkp@E15-2016.optimum.net> <83muydzw32.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <83muydzw32.fsf@gnu.org> User-Agent: NeoMutt/20180223 X-Provags-ID: V03:K1:WRDOH5nYP6U2eFwz4xH5KcAZqeebC/KJyCFGGNR4FA9s9FYHBm5 qb89GfOaOcXnwDlCdhbEZbutzE/Rl0W4FGrRCoRjfIf3j8BStKHSrAk6Ea9NZsEYD3Y2iaC SGtJS9zJ9g7Lj1XNdXVNmwN90JuadpZRdXu/1huyRUd+kqiBv9KnsABN41GfcvRqptEuMJo qLEtIfeEaWN2fjWAmkBsg== X-UI-Out-Filterresults: notjunk:1;V01:K0:TRnuC3ZH3Do=:IdR8mmoiL4KyoEA7scMMe+ QoqOgjOLvSQZ19+loZgGIHsIWP8eImqNgHo875I3Lz25vYgM/+PUQPYFBGEsBK0xWipfCCml3 i8nJf9dTABgWmbbiHaqryOhWicVsD53clVMcgpIj4sj+mSC6ZJUF8aUedJReFe4EdIKJo/vl+ VEgZ5STYnzoMa+PLJaUmLBcNYGZxmky13bMD99kZKfaao3CIEThtzRM5e0p/4o1y7X92R38oR UzQblcgl8E3iSF3wvrm7ge73kzRyh2AbvROapNq/ornI3RFNqjF4hKI6pjjyBm8qR93Zrz95A lqv+B4dYt5pGScQ4eOr6ahSnh20gvz52i8c0bUpLu0OFffBWuPUP+RWxxU0zFOogzHm1y5E1A 4dsgejpwHCTR0jUpHZIa69Yf3AbC2zvY18sy0nzECYCADPyre6wrqQmsjXCmI42ljLoQHLPu5 5OM9QxYzKTi+9BqM1ChGYp17sVEDMlPYhdWdHYMgqntWrmUm/e4D29eETcjS9AyjntLRW87fm etWgvfMui+gxCZtt4h219JkynXGbt4bTI3joRUnAcASmpsAhJpGTxDo4sh+ii0oqdQj+4+40X 6dQSDlFtLB9IZGZPmLYp/Ialw+FQ0CFNeuZZU6UDiHv2mV53napGDRKfKFqNhmdcaNhnLvwkA 4dXIvz4EgUSqR3Kr4Ep1BfqIr9wZZddtPUkhDICEzwZ+WYP7fwEtfFiUVssQKDNJVjLX6t//B DL6E2tXdsRj5s5p3WL8TL26WPbfGAPjdiw3i9e+Rj5XntiYlGaAUQZVqDkYr9xZZcX+A8i81C THcAP/eyE07LGcK5DW0nNlbnjlJ1Q== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 31094 Cc: 31094@debbugs.gnu.org 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 (-) On 2018-04-08 16:06, Eli Zaretskii wrote: > Why not do this the other way around: make apropos-value present a > shorter list when invoked with some special value of the prefix > argument? Or even make this a new command? That way, people's muscle > memory doesn't need to change, which I think is a Good Thing, given > that I think we never had any complaints about the current behavior. If either or both proposed changes are adopted, there will be no need to change muscle memory for those who want the behavior to remain the same. The first code snippet already only changes behavior when the function is called with either two or three universal prefix args. The second snippet is controlled by a boolean defcustom variable, defaulting to the current long print-out behavior. -- hkp://keys.gnupg.net CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0 From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 08 09:55:01 2018 Received: (at 31094) by debbugs.gnu.org; 8 Apr 2018 13:55:01 +0000 Received: from localhost ([127.0.0.1]:42056 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f5Ama-0002Nv-Sv for submit@debbugs.gnu.org; Sun, 08 Apr 2018 09:55:01 -0400 Received: from eggs.gnu.org ([208.118.235.92]:41617) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f5AmY-0002Nh-Op for 31094@debbugs.gnu.org; Sun, 08 Apr 2018 09:54:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f5AmP-0004dP-IM for 31094@debbugs.gnu.org; Sun, 08 Apr 2018 09:54:53 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:34428) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f5AmP-0004dB-EK; Sun, 08 Apr 2018 09:54:49 -0400 Received: from [176.228.60.248] (port=3227 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1f5AmO-0006yG-Th; Sun, 08 Apr 2018 09:54:49 -0400 Date: Sun, 08 Apr 2018 16:54:51 +0300 Message-Id: <83fu45ztuc.fsf@gnu.org> From: Eli Zaretskii To: Boruch Baum In-reply-to: <20180408131700.uwh3bozuqu76xf7m@E15-2016.optimum.net> (message from Boruch Baum on Sun, 8 Apr 2018 09:17:01 -0400) Subject: Re: bug#31094: Code for second solution References: <20180408073916.d5lsceul3gpj34l3@E15-2016.optimum.net> <20180408110901.4dukaueroieovrkp@E15-2016.optimum.net> <83muydzw32.fsf@gnu.org> <20180408131700.uwh3bozuqu76xf7m@E15-2016.optimum.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 31094 Cc: 31094@debbugs.gnu.org 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: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > Date: Sun, 8 Apr 2018 09:17:01 -0400 > From: Boruch Baum > Cc: 31094@debbugs.gnu.org > > The first code snippet already only changes behavior when the function > is called with either two or three universal prefix args. I was under the impression that the first variant was not what you were promoting. > The second snippet is controlled by a boolean defcustom variable, > defaulting to the current long print-out behavior. That sounds sub-optimal to me: completely changing the behavior of a command given an option is not the best UI, IMO. Two different commands are better. From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 08 10:13:45 2018 Received: (at 31094) by debbugs.gnu.org; 8 Apr 2018 14:13:45 +0000 Received: from localhost ([127.0.0.1]:42617 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f5B4f-0002xV-GM for submit@debbugs.gnu.org; Sun, 08 Apr 2018 10:13:45 -0400 Received: from mout.gmx.net ([212.227.17.21]:34647) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f5B4d-0002xJ-Hn for 31094@debbugs.gnu.org; Sun, 08 Apr 2018 10:13:40 -0400 Received: from E15-2016.optimum.net ([108.6.168.221]) by mail.gmx.com (mrgmx101 [212.227.17.174]) with ESMTPSA (Nemesis) id 0LbA4j-1ecxro0JDt-00kfXP; Sun, 08 Apr 2018 16:13:33 +0200 Date: Sun, 8 Apr 2018 10:13:30 -0400 From: Boruch Baum To: Eli Zaretskii Subject: Re: bug#31094: Code for second solution Message-ID: <20180408141330.qzrustisiaea7ozg@E15-2016.optimum.net> References: <20180408073916.d5lsceul3gpj34l3@E15-2016.optimum.net> <20180408110901.4dukaueroieovrkp@E15-2016.optimum.net> <83muydzw32.fsf@gnu.org> <20180408131700.uwh3bozuqu76xf7m@E15-2016.optimum.net> <83fu45ztuc.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <83fu45ztuc.fsf@gnu.org> User-Agent: NeoMutt/20180223 X-Provags-ID: V03:K1:HAgC/t6Ozj61TvPxalNYrAgEvsVirRHx0WLie2deQXE2pm9s03B izyaamyQrnPvUnUMbpe4WLphyzV4ryCiupkws1iGD92Ru78V6Q61s5vzyf+3fizx4ZWOiCy /wqg66YRhOcNtSj/J9AzpRljArn0ceHbLQ6QdrVDsjsNbDHS96obe9wek0PDHviqZrr/++o 4cy907YyhALd2d76uZjug== X-UI-Out-Filterresults: notjunk:1;V01:K0:VEOwZna5C6w=:qbuKEMcKOWyTAWAMn08XUe k/fXyTNb/FQgQWQdX/rkzsmU6dDzA258/U0iIglDuVpInDbGAtO9uXtnLJjS/u6OI9kE2tb6i wuZzuP8gFO5IIxBzM2Du6kxUHmqwn6TxynsuqHY7faChystYq6SJsFjs5WMgnS440zBXsU1IA tT9ZDAbSztpL8lbkJANrn+bKXJdv0+iS7/lc3PwZe8L8I0h2Lk2fVveYqRYacva/Lv4ZPBWBo AIuYG8Rh/ynfEdHQjrNirGkH8c7ysK11EYgG5K+ka6gHYVTHwZqFwr5S1rxrN1UVwIKut0lht zZycKCBEMHvQDtFsKPBIUxe5eB+hnqysIHm/LLNyTeR+TaWk6e2OblFNU53tmINrCr8N4EIVL 789hlfv3d4dQVrvNAstOB/WU/3Xo9/1NcKXWmcobyUZr+0aDk644CfgEvG9cXtz7dNkn7w0Gs lC6m2tJErToOnHK0vtMA3HlRcC0bkSXchsW/MuxPZFERV6L4SZ3o7060XFU/0XacD9cWHtSlm wHnDvdyWdoTCsFaS706rlly9mdDVL12y/B+Bz4GWZo5bpNMg0HjRzlR+LuAzak/Bm5ubdQV8C 0TwxprSGjuw9YYXb3pwj0vDal4Q/vs5SWSCnnNccopXpZUO4YcqieijY791l2zWcn29FOHHfl vWDhRCs2UI5pDlzhpJtBvDbJBKCQZM+WZwS/LFoxhQcDtGI0u1iQYbNd8zx3RMypKf1todOVd rLtd7/GZQ7iLH+HiKqd8DeHTLrq2mnU7SMPnPc7K3716iXvY4Nbs1weSlyQO+sCm8PCCmI38M 60d2daZef4N3RWAJX4GdKlnFFrU/g== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 31094 Cc: 31094@debbugs.gnu.org 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 (-) On 2018-04-08 16:54, Eli Zaretskii wrote: > > Date: Sun, 8 Apr 2018 09:17:01 -0400 > > From: Boruch Baum > > Cc: 31094@debbugs.gnu.org > > > > The first code snippet already only changes behavior when the function > > is called with either two or three universal prefix args. > > I was under the impression that the first variant was not what you were > promoting. Different strokes for different folks. Personally, I would end up using the second variant, but I wouldn't begrudge anyone the first option and they can co-exist peacefully in the code. Both are minor tweaks. > > The second snippet is controlled by a boolean defcustom variable, > > defaulting to the current long print-out behavior. > > That sounds sub-optimal to me: completely changing the behavior of a > command given an option is not the best UI, IMO. Two different > commands are better. You're over stating the behavior change of the second snippet; it changes the detail level of the output. True, as written, it 'breaks' the response to keybinding, but I consider that trivial, because the same functionality is available with `C-h v` or `C-h f', and to the benefit that the snippet is much leaner on memory. If you insist that you absolutely need that key to display the symbol's complete documentation, that can be done without rejecting the idea of the snippet, but it's a minor coding hassle for no real reason; Everyone knows `C-h v' and `C-h f' describe the symbol at point. -- hkp://keys.gnupg.net CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0 From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 08 12:32:33 2018 Received: (at 31094) by debbugs.gnu.org; 8 Apr 2018 16:32:33 +0000 Received: from localhost ([127.0.0.1]:42751 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f5DF3-0001in-A7 for submit@debbugs.gnu.org; Sun, 08 Apr 2018 12:32:33 -0400 Received: from eggs.gnu.org ([208.118.235.92]:49032) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f5DF1-0001iZ-Am for 31094@debbugs.gnu.org; Sun, 08 Apr 2018 12:32:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f5DEt-0004Ie-0z for 31094@debbugs.gnu.org; Sun, 08 Apr 2018 12:32:26 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36577) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f5DEs-0004IP-UC; Sun, 08 Apr 2018 12:32:22 -0400 Received: from [176.228.60.248] (port=3691 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1f5DEs-0008HR-CB; Sun, 08 Apr 2018 12:32:22 -0400 Date: Sun, 08 Apr 2018 19:32:25 +0300 Message-Id: <83bmetzmjq.fsf@gnu.org> From: Eli Zaretskii To: Boruch Baum In-reply-to: <20180408141330.qzrustisiaea7ozg@E15-2016.optimum.net> (message from Boruch Baum on Sun, 8 Apr 2018 10:13:30 -0400) Subject: Re: bug#31094: Code for second solution References: <20180408073916.d5lsceul3gpj34l3@E15-2016.optimum.net> <20180408110901.4dukaueroieovrkp@E15-2016.optimum.net> <83muydzw32.fsf@gnu.org> <20180408131700.uwh3bozuqu76xf7m@E15-2016.optimum.net> <83fu45ztuc.fsf@gnu.org> <20180408141330.qzrustisiaea7ozg@E15-2016.optimum.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 31094 Cc: 31094@debbugs.gnu.org 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: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > Date: Sun, 8 Apr 2018 10:13:30 -0400 > From: Boruch Baum > Cc: 31094@debbugs.gnu.org > > > > The second snippet is controlled by a boolean defcustom variable, > > > defaulting to the current long print-out behavior. > > > > That sounds sub-optimal to me: completely changing the behavior of a > > command given an option is not the best UI, IMO. Two different > > commands are better. > > You're over stating the behavior change of the second snippet; it > changes the detail level of the output. True, as written, it 'breaks' > the response to keybinding, but I consider that trivial, because > the same functionality is available with `C-h v` or `C-h f', and to the > benefit that the snippet is much leaner on memory. If you insist that > you absolutely need that key to display the symbol's complete > documentation, that can be done without rejecting the idea of the > snippet, but it's a minor coding hassle for no real reason; Everyone > knows `C-h v' and `C-h f' describe the symbol at point. I hear you. Let's see what others think about this. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 23 09:45:17 2022 Received: (at 31094) by debbugs.gnu.org; 23 Jan 2022 14:45:17 +0000 Received: from localhost ([127.0.0.1]:39043 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBe7J-0008Uj-Ep for submit@debbugs.gnu.org; Sun, 23 Jan 2022 09:45:17 -0500 Received: from quimby.gnus.org ([95.216.78.240]:38690) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBe7I-0008UQ-4s for 31094@debbugs.gnu.org; Sun, 23 Jan 2022 09:45:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ISddNRewOxL+M0LOkBgJKN8Rca4M36WLJFXiBvIypqo=; b=DNaHsCkdstJznya16iqqTU3650 GmBQYuaBF0Kbtk9kuh8yzzVnQPskLKKgsZPswAxZDhfFTl8UEJ07D6Z9d+WAiUpT+y4WGhRTDuvJf mIXWF0E1SnQDnMw058jRh+vYiiHWvb86kgrQ7ojkg1XPPkvTyZj2ilh1hr330PJU3idg=; Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nBe78-0005lk-O3; Sun, 23 Jan 2022 15:45:09 +0100 From: Lars Ingebrigtsen To: Boruch Baum Subject: Re: bug#31094: 25.2: Feature Reuqest: apropos-value: limit scope [CODE INCLUDED] References: <20180408073916.d5lsceul3gpj34l3@E15-2016.optimum.net> X-Now-Playing: Joni Mitchell's _Dog Eat Dog_: "Tax Free" Date: Sun, 23 Jan 2022 15:45:06 +0100 In-Reply-To: <20180408073916.d5lsceul3gpj34l3@E15-2016.optimum.net> (Boruch Baum's message of "Sun, 8 Apr 2018 03:39:16 -0400") Message-ID: <87czkia4ul.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Boruch Baum writes: > A better solution would be an option to initially print only the names > of symbol that contain a match. The user can then easily view any value > of interest, because the output buffer already incl [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 31094 Cc: 31094@debbugs.gnu.org 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: -3.3 (---) Boruch Baum writes: > A better solution would be an option to initially print only the names > of symbol that contain a match. The user can then easily view any value > of interest, because the output buffer already includes a feature that > pressing return on any symbol in the output list will display the > documentation for the symbol, which will include the variable's value. (I'm going through old bug reports that unfortunately weren't resolved at the time.) Instead of adding a special user option for this, I think it makes sense to allow using outline-minor-mode in *Apropos* buffers. So I've now added support for that in Emacs 29. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 23 09:45:24 2022 Received: (at control) by debbugs.gnu.org; 23 Jan 2022 14:45:25 +0000 Received: from localhost ([127.0.0.1]:39046 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBe7Q-0008V4-Lz for submit@debbugs.gnu.org; Sun, 23 Jan 2022 09:45:24 -0500 Received: from quimby.gnus.org ([95.216.78.240]:38704) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBe7O-0008Uk-RI for control@debbugs.gnu.org; Sun, 23 Jan 2022 09:45:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Yt4M0lqeoy1PmwnXEC94tyJ8ee90ltb/TQt2L4OxEKA=; b=jCeSt4si94gLZqGCgtI4WyvDmx n0rv6PeUXYkvFstFWejPq2A7OCbC7GwO6ChA62xgjJjJtBZqcW7FFEoNvoGpN837CdVoDKttrfH5F cJ0rixaVdiS7JvryqPQV1rXefxqwp5IhjcEcShQqbyanrnH4ML4WaJJ/8Cc/G31VAtO0=; Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nBe7G-0005ls-UB for control@debbugs.gnu.org; Sun, 23 Jan 2022 15:45:17 +0100 Date: Sun, 23 Jan 2022 15:45:12 +0100 Message-Id: <87bl02a4uf.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #31094 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 31094 29.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control 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: -3.3 (---) close 31094 29.1 quit From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 23 13:24:59 2022 Received: (at 31094) by debbugs.gnu.org; 23 Jan 2022 18:24:59 +0000 Received: from localhost ([127.0.0.1]:41223 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBhXu-0003zG-1Y for submit@debbugs.gnu.org; Sun, 23 Jan 2022 13:24:59 -0500 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:60001) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBhXX-0003xs-Jn for 31094@debbugs.gnu.org; Sun, 23 Jan 2022 13:24:50 -0500 Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 25D5640004; Sun, 23 Jan 2022 18:24:27 +0000 (UTC) From: Juri Linkov To: Lars Ingebrigtsen Subject: Re: bug#31094: 25.2: Feature Reuqest: apropos-value: limit scope [CODE INCLUDED] Organization: LINKOV.NET References: <20180408073916.d5lsceul3gpj34l3@E15-2016.optimum.net> <87czkia4ul.fsf@gnus.org> Date: Sun, 23 Jan 2022 20:02:08 +0200 In-Reply-To: <87czkia4ul.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 23 Jan 2022 15:45:06 +0100") Message-ID: <86r18yuy8v.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 31094 Cc: 31094@debbugs.gnu.org, Boruch Baum 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 (-) > Instead of adding a special user option for this, I think it makes sense > to allow using outline-minor-mode in *Apropos* buffers. So I've now > added support for that in Emacs 29. I see you added support for that, but not activated outline-minor-mode. Is this intentional? From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 23 13:29:36 2022 Received: (at 31094) by debbugs.gnu.org; 23 Jan 2022 18:29:36 +0000 Received: from localhost ([127.0.0.1]:41230 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBhcO-00046p-El for submit@debbugs.gnu.org; Sun, 23 Jan 2022 13:29:36 -0500 Received: from quimby.gnus.org ([95.216.78.240]:41026) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBhcN-00046X-4Y for 31094@debbugs.gnu.org; Sun, 23 Jan 2022 13:29:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=U6fIokhjWfIn8Hr2AnkYtdcAIyd86RlZDAHMYYxNFx0=; b=KxPVao1cWWPVu+I6vGtfWv02/S zMWMwdvKCFlc3KbUPkKLVVrXND0GeJZzQhKmvB5KpvFnyOD7trIcOGM4fIYzRCPa/4Svcq4p44lvO CRHoagNc2k9pGQNFFlY10omiI4ehVEPQGFlk2MNaTiccsZvTTHZ1OEzmNK5D0c3Cp/0E=; Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nBhcD-0007No-R2; Sun, 23 Jan 2022 19:29:28 +0100 From: Lars Ingebrigtsen To: Juri Linkov Subject: Re: bug#31094: 25.2: Feature Reuqest: apropos-value: limit scope [CODE INCLUDED] References: <20180408073916.d5lsceul3gpj34l3@E15-2016.optimum.net> <87czkia4ul.fsf@gnus.org> <86r18yuy8v.fsf@mail.linkov.net> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEXw6dX7+Omqp52D gntFR0T///9bmYzmAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+YBFxIcGWHZlioAAAGgSURBVDjLjZSB ccMgDEUF7gCQLkAFA7igCYz2n6lfgJO0ie+qy3GxniV9JCVE1+bitPkUYgzx2Q0LcJOd5H6DYW6A 8ArgThxfImYdju4FeAPJxTcRjubxt8bUFy9APEEgnzxXzsw5t1YnuHFrTZf1xvg+7xEA9I7GS3GC RMwpa+utIlXyolYdAKodnhrXzChGeUVEitHLoQflVmtj3vpDFfuu+k25tkpc9A5cqKLSkadoohOg BtMQ9eUCNHDW2atgvbMr6B4o9wewGtJFVSq5LBXp8PYC8OKTaNOe/ASz1+bWTq6oVv4YqdbYivay mzbUKiew8XPpOdHZyngCdKtte7qZ6CYGVg1PHjemDT6Tt0Bw50rKI5XJRQkewK9ZPQCn4S/mPpjl rOHHqGs2v3Rv3XUjQoZ8tVPkSOjV3MSb3HMfH6Wmra0L3u7+vH/K7n1b81gAQ08QULFYSs8RVsVj JzqANQnKij4brt5nr7CJtWE5MrYK68bYldXd91t94Q9X4E+qsPr8AmIIAX8Bb8BTqPtXjV8hV/4l Y/643bnLRD/tfnRPPiimNAAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMi0wMS0yM1QxODoyODoyNSsw MDowMJRw6OsAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjItMDEtMjNUMTg6Mjg6MjUrMDA6MDDlLVBX AAAAAElFTkSuQmCC X-Now-Playing: David Byrne's _Music for The Knee Plays_: "The Sound of Business" Date: Sun, 23 Jan 2022 19:29:25 +0100 In-Reply-To: <86r18yuy8v.fsf@mail.linkov.net> (Juri Linkov's message of "Sun, 23 Jan 2022 20:02:08 +0200") Message-ID: <87ilua71bu.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Juri Linkov writes: >> Instead of adding a special user option for this, I think it makes sense >> to allow using outline-minor-mode in *Apropos* buffers. So I've now >> added support for that in Emacs 29. > > I see you [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 31094 Cc: 31094@debbugs.gnu.org, Boruch Baum 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: -3.3 (---) Juri Linkov writes: >> Instead of adding a special user option for this, I think it makes sense >> to allow using outline-minor-mode in *Apropos* buffers. So I've now >> added support for that in Emacs 29. > > I see you added support for that, but not activated outline-minor-mode. > Is this intentional? Yes, I think using outline mode by default here isn't what most people would expect, but outline mode fans can switch it on from a hook if they want. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 23 15:06:08 2022 Received: (at 31094) by debbugs.gnu.org; 23 Jan 2022 20:06:08 +0000 Received: from localhost ([127.0.0.1]:41328 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBj7o-0006gc-3g for submit@debbugs.gnu.org; Sun, 23 Jan 2022 15:06:08 -0500 Received: from relay10.mail.gandi.net ([217.70.178.230]:45593) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBj7k-0006fx-Pf for 31094@debbugs.gnu.org; Sun, 23 Jan 2022 15:06:06 -0500 Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 578D224000B; Sun, 23 Jan 2022 20:05:55 +0000 (UTC) From: Juri Linkov To: Lars Ingebrigtsen Subject: Re: bug#31094: 25.2: Feature Reuqest: apropos-value: limit scope [CODE INCLUDED] Organization: LINKOV.NET References: <20180408073916.d5lsceul3gpj34l3@E15-2016.optimum.net> <87czkia4ul.fsf@gnus.org> <86r18yuy8v.fsf@mail.linkov.net> <87ilua71bu.fsf@gnus.org> Date: Sun, 23 Jan 2022 22:02:07 +0200 In-Reply-To: <87ilua71bu.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 23 Jan 2022 19:29:25 +0100") Message-ID: <86fsperzk0.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 31094 Cc: 31094@debbugs.gnu.org, Boruch Baum 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 (-) >>> Instead of adding a special user option for this, I think it makes sense >>> to allow using outline-minor-mode in *Apropos* buffers. So I've now >>> added support for that in Emacs 29. >> >> I see you added support for that, but not activated outline-minor-mode. >> Is this intentional? > > Yes, I think using outline mode by default here isn't what most people > would expect, but outline mode fans can switch it on from a hook if they > want. Maybe then the apropos docstrings could mention this feature? From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 24 04:26:59 2022 Received: (at 31094) by debbugs.gnu.org; 24 Jan 2022 09:26:59 +0000 Received: from localhost ([127.0.0.1]:42088 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBvcp-0005fy-GE for submit@debbugs.gnu.org; Mon, 24 Jan 2022 04:26:59 -0500 Received: from quimby.gnus.org ([95.216.78.240]:48044) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBvcn-0005fl-Uu for 31094@debbugs.gnu.org; Mon, 24 Jan 2022 04:26:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=us30PaZ9rUVx9PZ7fDEnxDQyXtiuj0qejpIOPh3ecVg=; b=drRTL/YD1o6fICJHXlGa+gvabg 2/YY7B+yGUI30W4mLqlXc3YSM3L3pCy0t7fpE0BLdOtU3hXJ05eZHhjG36XUFI8tc4KD5b+LIXBQb okUvb+2fQ5VQJpLFg/F9Uun/m97yWP3J86vuFmY5+xI7nlpdVOL/LDh50+t6yvboiC68=; Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nBvcf-0006Hm-8g; Mon, 24 Jan 2022 10:26:51 +0100 From: Lars Ingebrigtsen To: Juri Linkov Subject: Re: bug#31094: 25.2: Feature Reuqest: apropos-value: limit scope [CODE INCLUDED] References: <20180408073916.d5lsceul3gpj34l3@E15-2016.optimum.net> <87czkia4ul.fsf@gnus.org> <86r18yuy8v.fsf@mail.linkov.net> <87ilua71bu.fsf@gnus.org> <86fsperzk0.fsf@mail.linkov.net> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAALVBMVEUDBQwfGCEtLTFs bHCrrLDR0dXw8PJ9fYFgWmGPkJS9vcFFOEN+f4NNTVH///8PU95gAAAAAWJLR0QOb70wTwAAAAd0 SU1FB+YBGAkIHpkDiBsAAAGcSURBVDjLrZJNS8NAEIZn41GEJD1JKdR4qUgOtRWtKFj6oRFvNZV6 bgb0rHfRXEQEKanQYg8iLejR/gm9qfUQkf4Xt5umH7vrzXchsPtk5t2dGYCRNNDTZRzosIgIk1Lc AFSKjj0FIOExUlq1n6cB6N06BY/uQR54kTvEnUtrUwAwX8ZcKtUXgVLE3P2LKgL9DHOND96A/hjd wFL+nQd0RV08zp9zYE4FNZbGqscD0EyIFPAkLQBwkzP0hRneA0ii5UqBppv05ZgSUhGtW6DgVfRQ WEtqosfiIACzfEV0I+hhlj83/TpKADH8NZYJH7i7Gv5bh4Ft3qF3GkzDrQA8lAHN6DWlAHT/D0BM NnFOmTOnId9tu4xHQgNpRfbatm21wr15HU5FzCtgpXExuo42KJrGQAedfGs6zbjq1fgwgBWZfZRB Y9FphZnooJEgjAHcV4cgDADyxcAu25GJdgXAqY1dQy1Rc9tKjvZqGBcp2E83C+oEGCqaaayAVHrf iMtJLLP+KTtXek1ry5CAWf/K+tElgCwbfbkJgf/WL9tlhd4YWsDQAAAAJXRFWHRkYXRlOmNyZWF0 ZQAyMDIyLTAxLTI0VDA5OjA4OjMwKzAwOjAw7+6+lQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0w MS0yNFQwOTowODozMCswMDowMJ6zBikAAAAASUVORK5CYII= X-Now-Playing: This Mortal Coil's _Filigree & Shadow_: =?utf-8?Q?=22Tha?= =?utf-8?Q?=C3=AFs?= (1)" Date: Mon, 24 Jan 2022 10:26:48 +0100 In-Reply-To: <86fsperzk0.fsf@mail.linkov.net> (Juri Linkov's message of "Sun, 23 Jan 2022 22:02:07 +0200") Message-ID: <871r0x5vs7.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Juri Linkov writes: > Maybe then the apropos docstrings could mention this feature? Sure, but on the other hand -- we do want to allow using outline everywhere it makes sense, so I'm not sure it makes sense to mention it everywhere -- it should Just Work. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 31094 Cc: 31094@debbugs.gnu.org, Boruch Baum 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: -3.3 (---) Juri Linkov writes: > Maybe then the apropos docstrings could mention this feature? Sure, but on the other hand -- we do want to allow using outline everywhere it makes sense, so I'm not sure it makes sense to mention it everywhere -- it should Just Work. (Outline minor mode should grow support for non-regexp outlines, though -- in these read-only buffers where we're generating the contents, it would be way more convenient if the generator did the markup. I.e., put a `outline-header' text property on the header, or something like that.) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 24 13:03:08 2022 Received: (at 31094) by debbugs.gnu.org; 24 Jan 2022 18:03:08 +0000 Received: from localhost ([127.0.0.1]:45726 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nC3gK-000157-Ew for submit@debbugs.gnu.org; Mon, 24 Jan 2022 13:03:08 -0500 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:37841) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nC3gJ-00014P-Ge for 31094@debbugs.gnu.org; Mon, 24 Jan 2022 13:03:07 -0500 Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id ECE1BFF805; Mon, 24 Jan 2022 18:02:58 +0000 (UTC) From: Juri Linkov To: Lars Ingebrigtsen Subject: Re: bug#31094: 25.2: Feature Reuqest: apropos-value: limit scope [CODE INCLUDED] Organization: LINKOV.NET References: <20180408073916.d5lsceul3gpj34l3@E15-2016.optimum.net> <87czkia4ul.fsf@gnus.org> <86r18yuy8v.fsf@mail.linkov.net> <87ilua71bu.fsf@gnus.org> <86fsperzk0.fsf@mail.linkov.net> <871r0x5vs7.fsf@gnus.org> Date: Mon, 24 Jan 2022 19:58:25 +0200 In-Reply-To: <871r0x5vs7.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 24 Jan 2022 10:26:48 +0100") Message-ID: <86wnip14k6.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 31094 Cc: 31094@debbugs.gnu.org, Boruch Baum 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 (-) > (Outline minor mode should grow support for non-regexp outlines, > though -- in these read-only buffers where we're generating the > contents, it would be way more convenient if the generator did the > markup. I.e., put a `outline-header' text property on the header, or > something like that.) In read-only buffers outline-minor-mode-highlight-buffer currently does: (let ((regexp (concat "^\\(?:" outline-regexp "\\).*$"))) (while (re-search-forward regexp nil t) (let ((overlay (make-overlay (match-beginning 0) (match-end 0)))) but can use anything including special properties instead of regexps. From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 24 13:33:46 2022 Received: (at 31094) by debbugs.gnu.org; 24 Jan 2022 18:33:46 +0000 Received: from localhost ([127.0.0.1]:45815 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nC49y-0004DK-5F for submit@debbugs.gnu.org; Mon, 24 Jan 2022 13:33:46 -0500 Received: from quimby.gnus.org ([95.216.78.240]:54174) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nC49x-0004D0-1G for 31094@debbugs.gnu.org; Mon, 24 Jan 2022 13:33:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=iqvNqclfOjZqNKlpEOTj9k4qQlvUJSs6T9JXpCSDBMY=; b=BFrAkKKyC3PK+cw3QQr7wZN/kq bENV5zgjNhLP5lBLWkFzpg4Nt9eLMUSS18UQDuWxdRRsVyul23VL9PrHqjq/0VLzYeLSjHvFUp6ca xws5SMC94i1HFaRnwiOgX95VyPnKt2ZD3zh4cPd3kEAA1b7kESl2hnExJlgPA1utKKJc=; Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nC49o-0002JG-Iq; Mon, 24 Jan 2022 19:33:39 +0100 From: Lars Ingebrigtsen To: Juri Linkov Subject: Re: bug#31094: 25.2: Feature Reuqest: apropos-value: limit scope [CODE INCLUDED] References: <20180408073916.d5lsceul3gpj34l3@E15-2016.optimum.net> <87czkia4ul.fsf@gnus.org> <86r18yuy8v.fsf@mail.linkov.net> <87ilua71bu.fsf@gnus.org> <86fsperzk0.fsf@mail.linkov.net> <871r0x5vs7.fsf@gnus.org> <86wnip14k6.fsf@mail.linkov.net> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAGFBMVEXYy7fk2svl28zu 59fKr560hnHlyLr///92x2XWAAAAAWJLR0QHFmGI6wAAAAd0SU1FB+YBGBIeIrqHDdoAAAGySURB VDjLdZRNb+QgDIYJQXsegzTn2Eg9Bzx7j1RyX6mT+1aV8v9/whoIbZLJ+gLJ45cP68VK1ejUOToA S4TMEZjRMpP8QLgpIEtM8WGcNyk6M0XKAQKI2cfff9iPH+znFD2LHJWlMnkszONH9DPXEODL5GH6 AswGgtKeryIq3abvkiZJD78Be07l/wA+gfu6rnZdZWjAfYO7+1zhBZTYHTCovibIQCxJjt0BhJ6l kI6jG/UGtgSS8pTk0R5AriTXVWqNfgCapH6Z6Ytpr4hIQ1qeaZn6oOMOUCCcF9XNzx5pD3ywQ5pU Z9L791LbIbqhWkAf9+BIWP7/1Z5O98BqGUsnBQpISZY6gbKHmV7BaPPmFRxuHsVIal4mAfZw3EiD MsvyVBprdccGZKbmpyjAnkC4KVNO5Q6gVpgsbntn4Dc3UbY56g0Moi0JX/yWJaTH/gDE+5GzxIWm sHTpxKZ4cWgG/grcVHcJ5FbaXhEUgITrKnb+vAMGsG8AYkgB8s7zE8g+z68gz8VbcKsN4LBYLgCU zlB6Q4X19RNWRUMtAOEHCJIOAtS+dqAFgi3gIkqL+gds9LOtuvAiyAAAACV0RVh0ZGF0ZTpjcmVh dGUAMjAyMi0wMS0yNFQxODozMDozNCswMDowMNENhIAAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjIt MDEtMjRUMTg6MzA6MzQrMDA6MDCgUDw8AAAAAElFTkSuQmCC X-Now-Playing: Kissing the Pink's _Certain Things Are Likely_: "I Won't Wait" Date: Mon, 24 Jan 2022 19:33:34 +0100 In-Reply-To: <86wnip14k6.fsf@mail.linkov.net> (Juri Linkov's message of "Mon, 24 Jan 2022 19:58:25 +0200") Message-ID: <87sftd2dc1.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Juri Linkov writes: > In read-only buffers outline-minor-mode-highlight-buffer currently does: > > (let ((regexp (concat "^\\(?:" outline-regexp "\\).*$"))) > (while (re-search-forward regexp nil t) > (let ((overlay (mak [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 31094 Cc: 31094@debbugs.gnu.org, Boruch Baum 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: -3.3 (---) Juri Linkov writes: > In read-only buffers outline-minor-mode-highlight-buffer currently does: > > (let ((regexp (concat "^\\(?:" outline-regexp "\\).*$"))) > (while (re-search-forward regexp nil t) > (let ((overlay (make-overlay (match-beginning 0) (match-end 0)))) > > but can use anything including special properties instead of regexps. Well, we'd add a separate loop with (text-property-search-forward 'outline-header) or something? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 24 14:20:12 2022 Received: (at 31094) by debbugs.gnu.org; 24 Jan 2022 19:20:12 +0000 Received: from localhost ([127.0.0.1]:45942 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nC4su-0003oj-LA for submit@debbugs.gnu.org; Mon, 24 Jan 2022 14:20:12 -0500 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:46489) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nC4ss-0003oQ-TY for 31094@debbugs.gnu.org; Mon, 24 Jan 2022 14:20:11 -0500 Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 9C03CFF803; Mon, 24 Jan 2022 19:20:03 +0000 (UTC) From: Juri Linkov To: Lars Ingebrigtsen Subject: Re: bug#31094: 25.2: Feature Reuqest: apropos-value: limit scope [CODE INCLUDED] Organization: LINKOV.NET References: <20180408073916.d5lsceul3gpj34l3@E15-2016.optimum.net> <87czkia4ul.fsf@gnus.org> <86r18yuy8v.fsf@mail.linkov.net> <87ilua71bu.fsf@gnus.org> <86fsperzk0.fsf@mail.linkov.net> <871r0x5vs7.fsf@gnus.org> <86wnip14k6.fsf@mail.linkov.net> <87sftd2dc1.fsf@gnus.org> Date: Mon, 24 Jan 2022 21:19:07 +0200 In-Reply-To: <87sftd2dc1.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 24 Jan 2022 19:33:34 +0100") Message-ID: <86fspdx7pw.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 31094 Cc: 31094@debbugs.gnu.org, Boruch Baum 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 (-) >> In read-only buffers outline-minor-mode-highlight-buffer currently does: >> >> (let ((regexp (concat "^\\(?:" outline-regexp "\\).*$"))) >> (while (re-search-forward regexp nil t) >> (let ((overlay (make-overlay (match-beginning 0) (match-end 0)))) >> >> but can use anything including special properties instead of regexps. > > Well, we'd add a separate loop with (text-property-search-forward > 'outline-header) or something? Whether to use a re-search-forward loop or a text-property-search-forward loop could depend on a new buffer-local variable, like hi-lock-use-overlays added to hi-lock.el. From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 24 21:06:31 2022 Received: (at 31094) by debbugs.gnu.org; 25 Jan 2022 02:06:31 +0000 Received: from localhost ([127.0.0.1]:46414 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nCBE7-0006VH-4X for submit@debbugs.gnu.org; Mon, 24 Jan 2022 21:06:31 -0500 Received: from mout.web.de ([217.72.192.78]:50719) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nCBE1-0006Uy-TQ for 31094@debbugs.gnu.org; Mon, 24 Jan 2022 21:06:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1643076379; bh=WNZH19lKS5vVAQC6N9b9TobWz4egJWowYrEsQc5WSRk=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=RSaPFnbyVi+GW2iwVbX5k9moflKGhuCOdKJteRrvixZrVmD6BgOf+pEXuN7NxuGkU TuWpK9eJIbhB6C2LGwos1hia7VrksXx/oxLXWLe+R/HS0HjIqsjxjslMacFtQOT0Ii +WfaMN+AGVfKwckFQPwWjoyZuofLKBnAP9nPjaC4= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from drachen.dragon ([88.66.201.186]) by smtp.web.de (mrweb105 [213.165.67.124]) with ESMTPSA (Nemesis) id 1MjxeE-1mS9AZ19Im-00kfoR; Tue, 25 Jan 2022 03:06:19 +0100 From: Michael Heerdegen To: Boruch Baum Subject: Re: bug#31094: 25.2: Feature Reuqest: apropos-value: limit scope [CODE INCLUDED] References: <20180408073916.d5lsceul3gpj34l3@E15-2016.optimum.net> Date: Tue, 25 Jan 2022 03:06:18 +0100 In-Reply-To: <20180408073916.d5lsceul3gpj34l3@E15-2016.optimum.net> (Boruch Baum's message of "Sun, 8 Apr 2018 03:39:16 -0400") Message-ID: <87zgnkk1r9.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:WmhVgcgh+BFBFQGo0tjQ/Bv0OFWLpJruZbfvOTUHrETQeJ2pCHo mLx3N2LB3uYacEc9v93Kz8NEAdYf0IpczjzTyrAU9LE0cZBQFoNCAua8AIzSs2Wbve+CAra 7Z7PF1VJZjNivE3yOXElLQ574V54/xYfQyq4k6ML9CgxA3GcXTC183C3xwRTgk9iHdKNei3 OcCnyWuOyGHhXnU3ZHBHQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:dJT/i4scFWA=:ep9uQ1dCYQ5aQFl+l+nZs7 mKj/63KMyvG8KYSjUphHAomkho5UA2GsSO/uLwOZyqXM1vrs3dMiof7QIarGdpbhHLGwNBl6V 6ErVH3zN5hjs5UkVXjv8penzS6WrTD+CpUhFKnhqBPfj1+LsFDVO5Ekrz3gH+JhrVBThwO/wA CjmNR877sYfVf0I6YNNXLhteCqfr4AMG6mm9gMiV94whRM/hh1/JxCtGEGUqtT/Rdut46EIkf nxsb8pYNV1WipGWpqOf6LUwm9JWnWSsh6rVf0t3RWhykakKEWk5P6GyWIGI32AbMqDdC1VE72 d694c/EEL1P6cO7kK0sUd2ra2UOGbLQfpvzO3AyJX0/o+0uLI372LuKrQK20/IOKfZA9bbFQI kuOhaNvEybQy7tDKNc1ZVRT5GXWK7P2m6M44GKVeMVJl7JSRcft1wPAmLIESulw9IXUP9eKZk ccWFaKQU3hq4GXFDGUgeVu4IGLWlqkIyI5G+xnbaM6Qzhg9vOcrV3/PE9BTKl8a1c9DgP7vVQ dvQT+eMzLOgKENFew+cuTTEUSs2OB/uly5ZMfneYZSeCBmn/WGGWPih80RGNLwmuHPJd4Wqz7 dyW8Wq95hrtqDDYidi+EMU1l/4Avnj6KDuOixUJ4y9P+k03vT6JYgWRN3aiLvKjU0mVckfyjS RY96zDJH82g9IFf0AuxbEIpao0j2x/Fl43eq/qOJm+jBPK8Y3ugmSS64IoLHbMWZwvkbN59u+ OLu5Nc2kq0R9+R3N6vuhboEpdpxr2YR+h0fo0WIv1AkLEAXo1FY+6grZwou3KzQ1WqPuLYkFN CN+l7Aw4HWsDU+Rt4qfNGTcBSLCKSMGWnNXhlMvDlolbPjSSyeqwaPc/qLuRf7xbw/VDHLmTA /frst0BYiEl6VSGqLJtzk0ZDH6mY7axqQAxZ6yt0m9SKlcCnOg1heMwXziHhg8xLKsCmmahNM /Ok1/2VRSkAIXs0icXVtkz9+8G5FICG6kwnq+ud9HbwXFReG/Ll9L5fGhqJLj1exBPBtU6/bV o84bvfiT6eL2vv2Bg6h+lT97PZwsFE0jtHCMtR6clJ7sXlUKiL7FwLzh5NyIRW+VUYYoaWTZo eKXEPskaqJT5Jg= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 31094 Cc: 31094@debbugs.gnu.org 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 (-) Boruch Baum writes: > Some of this can be reduced when considegring that in most cases, I know > in advance that a value will be present in some very commonly used huge > variables, that won't be of use to me (eg. kill-ring, > minibuffer-history). If you are interested in alternative approaches: In my config I have added a query for a maximal length of the (printed) value. 0 means "use any", but a positive value filters all variables with bindings wider than the given limit. I chose this way because typically you get lots of results, too many to view them one by one, so most of the time I use isearch to find the stuff I'm interested in. With a folding approach, the output looks nicer, but it still contains a lot of stuff I'm surely not interested in. Most of the time these huge list values are irrelevant for what you are searching for. Michael. From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 25 07:03:45 2022 Received: (at 31094) by debbugs.gnu.org; 25 Jan 2022 12:03:45 +0000 Received: from localhost ([127.0.0.1]:47164 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nCKY5-0006B4-Mb for submit@debbugs.gnu.org; Tue, 25 Jan 2022 07:03:45 -0500 Received: from quimby.gnus.org ([95.216.78.240]:34244) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nCKY4-0006An-BN for 31094@debbugs.gnu.org; Tue, 25 Jan 2022 07:03:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=k7kX09IFBdNFdx8EIQzMfDm2SoGmMDEEz4oFfk7m/sc=; b=hBWcMsd63X6vc5Sm355uDPAKxL cF9qYO+qS/6B9QMEwUzUfpqvFuzdgjTL8PAMkJv1Lr46XStkwXtrX176anLDh+RhRAjUZBS6LCPcK 05JsD0uBdukAIKDUb2pnXFfyHgvdvO4F7KhM5IQbnrzTyXjr/4Iy0R/W4kEbWlVlzaRI=; Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nCKXv-00039L-Oz; Tue, 25 Jan 2022 13:03:38 +0100 From: Lars Ingebrigtsen To: Juri Linkov Subject: Re: bug#31094: 25.2: Feature Reuqest: apropos-value: limit scope [CODE INCLUDED] References: <20180408073916.d5lsceul3gpj34l3@E15-2016.optimum.net> <87czkia4ul.fsf@gnus.org> <86r18yuy8v.fsf@mail.linkov.net> <87ilua71bu.fsf@gnus.org> <86fsperzk0.fsf@mail.linkov.net> <871r0x5vs7.fsf@gnus.org> <86wnip14k6.fsf@mail.linkov.net> <87sftd2dc1.fsf@gnus.org> <86fspdx7pw.fsf@mail.linkov.net> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAFVBMVEViX1vk49D7+fQ4 ODqCgXurrp3///86tVd9AAAAAWJLR0QGYWa4fQAAAAd0SU1FB+YBGQsvCAwqPCQAAAGfSURBVDjL pdTNbsMgDABgV4F7jMoDYG33SHR3NsHdVPj9X2UmP2vapKehHqJ82CaOG4DTdQnwBuhfMExQeL22 e4hxMnICeh+gXk8iIOfiiI9QRKTieAYoOZ9E5CwtHYsXgCal8QEkQbK5yAkYLtmuyXZQk2U9lpxA YSnoD6e6ZGFTqiR9fjDlAV9JUhXhIT6BgRtni156j59TTZpcaw/Daw2NmAzIEvDUEjZWfIsLmH2v Jlv9GgDGwdY2MHHKKW7wiGh1iDEeoRJxh8rPYElXgwHWd/sH9w4UUAOX4aRdwLbGHbh5u8PgAtHn Ay59oy9e7j9+zUW7CvWDqmgRSq/g1fTS8R+4BT715yi4cQPTS3fAnw59GKcZvjs4qkGcAolfoc5n uoclISnzkiprwdB8WQDZ4scK38Fh4floqHNVNnABEWVJmEwG6/yjBtZlv0gDizzDcEPtT606O/q/ CR5MnSMG3eF6f4xUTerCCDhO63ME9DdVCqzMX+46R8RJJ7NFMDmn0vTFW49RPwBeM2iRprezKdJy wUDeEdCb9RZ+ARFAaMcbB71OAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIyLTAxLTI1VDExOjQ3OjA4 KzAwOjAwejh8lAAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wMS0yNVQxMTo0NzowOCswMDowMAtl xCgAAAAASUVORK5CYII= X-Now-Playing: David Bowie's _Brilliant Adventure (8): Toy_: "Toy (Your Turn To Drive)" Date: Tue, 25 Jan 2022 13:03:34 +0100 In-Reply-To: <86fspdx7pw.fsf@mail.linkov.net> (Juri Linkov's message of "Mon, 24 Jan 2022 21:19:07 +0200") Message-ID: <87ilu8yqcp.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Juri Linkov writes: > Whether to use a re-search-forward loop or a text-property-search-forward > loop could depend on a new buffer-local variable, like > hi-lock-use-overlays added to hi-lock.el. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 31094 Cc: 31094@debbugs.gnu.org, Boruch Baum 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: -3.3 (---) Juri Linkov writes: > Whether to use a re-search-forward loop or a text-property-search-forward > loop could depend on a new buffer-local variable, like > hi-lock-use-overlays added to hi-lock.el. Yes, that'd be OK. But I'm not sure it's really necessary -- outline-minor-mode could just do that always? Or perhaps modes that do this could just set outline-regexp to nil (or some other special value)... -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Sun Jun 22 17:18:08 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 22 Feb 2022 12:24:11 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator