From unknown Sun Aug 10 00:25:11 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#10916 <10916@debbugs.gnu.org> To: bug#10916 <10916@debbugs.gnu.org> Subject: Status: Using occur to list occurrencies of the symbol at point Reply-To: bug#10916 <10916@debbugs.gnu.org> Date: Sun, 10 Aug 2025 07:25:11 +0000 retitle 10916 Using occur to list occurrencies of the symbol at point reassign 10916 emacs submitter 10916 nisse@lysator.liu.se (Niels M=C3=B6ller) severity 10916 wishlist tag 10916 wontfix thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 01 05:11:05 2012 Received: (at submit) by debbugs.gnu.org; 1 Mar 2012 10:11:05 +0000 Received: from localhost ([127.0.0.1]:56778 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S32yW-0003mL-Tf for submit@debbugs.gnu.org; Thu, 01 Mar 2012 05:11:05 -0500 Received: from eggs.gnu.org ([208.118.235.92]:57892) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S32yL-0003lu-2x for submit@debbugs.gnu.org; Thu, 01 Mar 2012 05:10:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S32xr-0006dF-3A for submit@debbugs.gnu.org; Thu, 01 Mar 2012 05:10:28 -0500 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 autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:55648) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S32xq-0006dB-WB for submit@debbugs.gnu.org; Thu, 01 Mar 2012 05:10:23 -0500 Received: from eggs.gnu.org ([208.118.235.92]:60749) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S32xk-0001sj-PG for bug-gnu-emacs@gnu.org; Thu, 01 Mar 2012 05:10:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S32xe-0006Wy-73 for bug-gnu-emacs@gnu.org; Thu, 01 Mar 2012 05:10:16 -0500 Received: from mail.lysator.liu.se ([130.236.254.3]:38341) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S32xe-0006V3-07 for bug-gnu-emacs@gnu.org; Thu, 01 Mar 2012 05:10:10 -0500 Received: from mail.lysator.liu.se (localhost [127.0.0.1]) by mail.lysator.liu.se (Postfix) with ESMTP id 0B54B4000A for ; Thu, 1 Mar 2012 11:10:07 +0100 (CET) Received: from stalhein.lysator.liu.se (stalhein.lysator.liu.se [IPv6:2001:6b0:17:f0a0::cc]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.lysator.liu.se (Postfix) with ESMTPS id EFA9D40004 for ; Thu, 1 Mar 2012 11:10:06 +0100 (CET) Received: from stalhein.lysator.liu.se (localhost [127.0.0.1]) by stalhein.lysator.liu.se (8.14.4+Sun/8.14.4) with ESMTP id q21AA6tc014449 for ; Thu, 1 Mar 2012 11:10:06 +0100 (MET) Received: (from nisse@localhost) by stalhein.lysator.liu.se (8.14.4+Sun/8.14.4/Submit) id q21AA6uL014448; Thu, 1 Mar 2012 11:10:06 +0100 (MET) X-Authentication-Warning: stalhein.lysator.liu.se: nisse set sender to nisse@lysator.liu.se using -f From: nisse@lysator.liu.se (Niels =?iso-8859-1?Q?M=F6ller?=) To: bug-gnu-emacs@gnu.org Subject: Using occur to list occurrencies of the symbol at point Date: Thu, 01 Mar 2012 11:10:06 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (usg-unix-v) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Virus-Scanned: ClamAV using ClamSMTP Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: 1.6 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi, I'm using both M-x grep and M-x occur quite a lot. I have been a bit annoyed that they interpret a prefix argument very differently. With C-u M-x grep, it searches for the symbol (or word or tag; I'm not sure exactly how it's delimited) under point, which is a feature I find very useful. [...] Content analysis details: (1.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 2.7 RCVD_IN_PSBL RBL: Received via a relay in PSBL [208.118.235.92 listed in psbl.surriel.com] 0.8 SPF_NEUTRAL SPF: sender does not match SPF record (neutral) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 1.6 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi, I'm using both M-x grep and M-x occur quite a lot. I have been a bit annoyed that they interpret a prefix argument very differently. With C-u M-x grep, it searches for the symbol (or word or tag; I'm not sure exactly how it's delimited) under point, which is a feature I find very useful. [...] Content analysis details: (1.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 2.7 RCVD_IN_PSBL RBL: Received via a relay in PSBL [208.118.235.92 listed in psbl.surriel.com] 0.8 SPF_NEUTRAL SPF: sender does not match SPF record (neutral) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Hi, I'm using both M-x grep and M-x occur quite a lot. I have been a bit annoyed that they interpret a prefix argument very differently. With C-u M-x grep, it searches for the symbol (or word or tag; I'm not sure exactly how it's delimited) under point, which is a feature I find very useful. I first expected C-u M-x occur to behave the same way, but instead it interprets the prefix argument as the amount of additional context to include in the output buffer. This is a feature I don't need very often. I'm not sure it's a good idea to change the behaviour of M-x occur, so instead I wrote the following function to do what I want: (defun occur-tag (regexp nlines) (interactive (let ((tag (funcall (or find-tag-default-function (get major-mode 'find-tag-default-function) 'find-tag-default)))) (if tag (list (concat "\\_<" (regexp-quote tag) "\\_>") (when current-prefix-arg (prefix-numeric-value current-prefix-arg))) (occur-read-primary-args)))) (occur regexp nlines)) It gets the symbol under point in the same way as M-x grep, and constructs a regexp to use with occur. I this it mainly for searching in source files, which is why I use \_< and \_> rather than \< and \> when constructing the regexp. Maybe it would make sense to add something like this to emacs, either as a separate function like above, or in response to an "empty" prefix argument to M-x occur. Or maybe there's already some emacs function which does this and does it better, which I'm not aware of... BTW, I think it would also make some sense with a helper function for the logic involving find-tag-default-function, since this seems to be duplicated in find-tag-tag, complete-tag, grep-tag-default, and possibly other places. Or movee it inside find-tag-default, if those variables always should be consulted. Best regards, /Niels M=F6ller --=20 Niels M=F6ller. PGP-encrypted email is preferred. Keyid C0B98E26. Internet email is subject to wholesale government surveillance. From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 01 05:44:47 2012 Received: (at 10916) by debbugs.gnu.org; 1 Mar 2012 10:44:47 +0000 Received: from localhost ([127.0.0.1]:56819 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S33V9-0004Xi-9V for submit@debbugs.gnu.org; Thu, 01 Mar 2012 05:44:47 -0500 Received: from ps18281.dreamhost.com ([69.163.218.105]:58850 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S33Uw-0004XM-Ci for 10916@debbugs.gnu.org; Thu, 01 Mar 2012 05:44:35 -0500 Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id EFB6F451C206; Thu, 1 Mar 2012 02:42:26 -0800 (PST) From: Juri Linkov To: nisse@lysator.liu.se (Niels =?iso-8859-1?Q?M=F6ller?=) Subject: Re: bug#10916: Using occur to list occurrencies of the symbol at point Organization: JURTA References: Date: Thu, 01 Mar 2012 12:42:41 +0200 In-Reply-To: ("Niels \=\?iso-8859-1\?Q\?M\=F6ller\=22's\?\= message of "Thu, 01 Mar 2012 11:10:06 +0100") Message-ID: <87399ssiu6.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 10916 Cc: 10916@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) > I first expected C-u M-x occur to behave the same way, but instead it > interprets the prefix argument as the amount of additional context to > include in the output buffer. This is a feature I don't need very often. `C-u M-x occur' doesn't interpret the prefix argument as the amount of additional context. `C-u M-x occur' collects strings matching regexp. It is like grep command line argument `-o --only-matching' that prints only the matched parts of a matching line, with each such part on a separate output line. > Or maybe there's already some emacs function which does this and does it > better, which I'm not aware of... Have you tried `M-x occur M-n RET'? From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 01 07:19:00 2012 Received: (at 10916) by debbugs.gnu.org; 1 Mar 2012 12:19:00 +0000 Received: from localhost ([127.0.0.1]:56879 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S34yJ-0006jD-2l for submit@debbugs.gnu.org; Thu, 01 Mar 2012 07:19:00 -0500 Received: from mail.lysator.liu.se ([130.236.254.3]:40458) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S34xv-0006ie-4Q for 10916@debbugs.gnu.org; Thu, 01 Mar 2012 07:18:47 -0500 Received: from mail.lysator.liu.se (localhost [127.0.0.1]) by mail.lysator.liu.se (Postfix) with ESMTP id 529B840004; Thu, 1 Mar 2012 13:18:10 +0100 (CET) Received: from stalhein.lysator.liu.se (stalhein.lysator.liu.se [IPv6:2001:6b0:17:f0a0::cc]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.lysator.liu.se (Postfix) with ESMTPS id 262BE40003; Thu, 1 Mar 2012 13:18:10 +0100 (CET) Received: from stalhein.lysator.liu.se (localhost [127.0.0.1]) by stalhein.lysator.liu.se (8.14.4+Sun/8.14.4) with ESMTP id q21CI9Au019566; Thu, 1 Mar 2012 13:18:09 +0100 (MET) Received: (from nisse@localhost) by stalhein.lysator.liu.se (8.14.4+Sun/8.14.4/Submit) id q21CI9ch019565; Thu, 1 Mar 2012 13:18:09 +0100 (MET) X-Authentication-Warning: stalhein.lysator.liu.se: nisse set sender to nisse@lysator.liu.se using -f From: nisse@lysator.liu.se (Niels =?iso-8859-1?Q?M=F6ller?=) To: Juri Linkov Subject: Re: bug#10916: Using occur to list occurrencies of the symbol at point References: <87399ssiu6.fsf@mail.jurta.org> Date: Thu, 01 Mar 2012 13:18:09 +0100 In-Reply-To: <87399ssiu6.fsf@mail.jurta.org> (Juri Linkov's message of "Thu, 01 Mar 2012 12:42:41 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (usg-unix-v) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Virus-Scanned: ClamAV using ClamSMTP Content-Transfer-Encoding: quoted-printable X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 10916 Cc: 10916@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Juri Linkov writes: > `C-u M-x occur' doesn't interpret the prefix argument as the amount of > additional context. `C-u M-x occur' collects strings matching regexp. I'm not following you. If I type C-u M-x occur RET gcd_hook RET, I get an *Occur* buffer looking like this: 3 matches for "gcd_hook" in buffer: gcd.c : mp_size_t gn; :}; : :static void 61:gcd_hook (void *p, mp_srcptr gp, mp_size_t gn, : mp_srcptr qp, mp_size_t qn, int d) :{ : struct gcd_ctx *ctx =3D (struct gcd_ctx *) p; : MPN_COPY (ctx->gp, gp, gn); ------- : } : else : { : /* Temporary storage n */ 209: n =3D mpn_gcd_subdiv_step (up, vp, n, gcd_hook, &ctx, tp); : if (n =3D=3D 0) : goto done; : } : } ------- : small, or the difference is very small. Perform one : subtraction followed by one division. */ : : /* Temporary storage n */ 253: n =3D mpn_gcd_subdiv_step (up, vp, n, &gcd_hook, &ctx, tp); : if (n =3D=3D 0) : goto done; : } : } ------- This is with emacs-23.2, but I think it's the same in other emacs versions I have used. The documentation string for occur says Each line is displayed with NLINES lines before and after, or -NLINES before if NLINES is negative. NLINES defaults to `list-matching-lines-default-context-lines'. Interactively it is the prefix arg. > Have you tried `M-x occur M-n RET'? Now I have. Seems to give the symbol at point in recent emacs versions. Slightly less convenient than a prefix argument, but I think that does what I want. Regards, /Niels --=20 Niels M=F6ller. PGP-encrypted email is preferred. Keyid C0B98E26. Internet email is subject to wholesale government surveillance. From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 01 07:41:15 2012 Received: (at 10916) by debbugs.gnu.org; 1 Mar 2012 12:41:15 +0000 Received: from localhost ([127.0.0.1]:56884 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S35Jr-000802-4S for submit@debbugs.gnu.org; Thu, 01 Mar 2012 07:41:15 -0500 Received: from ps18281.dreamhost.com ([69.163.218.105]:55574 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S35JV-0007zG-3K for 10916@debbugs.gnu.org; Thu, 01 Mar 2012 07:41:03 -0500 Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 2C132451C206; Thu, 1 Mar 2012 04:38:44 -0800 (PST) From: Juri Linkov To: nisse@lysator.liu.se (Niels =?iso-8859-1?Q?M=F6ller?=) Subject: Re: bug#10916: Using occur to list occurrencies of the symbol at point Organization: JURTA References: <87399ssiu6.fsf@mail.jurta.org> Date: Thu, 01 Mar 2012 14:28:07 +0200 In-Reply-To: ("Niels \=\?iso-8859-1\?Q\?M\=F6ller\=22's\?\= message of "Thu, 01 Mar 2012 13:18:09 +0100") Message-ID: <87aa40pkcx.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 10916 Cc: 10916@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) > This is with emacs-23.2, but I think it's the same in other emacs > versions I have used. `C-u M-x occur' is a new feature in 24.1. You can read about it in http://bzr.sv.gnu.org/lh/emacs/trunk/annotate/head:/etc/NEWS#L968 >> Have you tried `M-x occur RET M-n RET'? > > Now I have. Seems to give the symbol at point in recent emacs versions. > Slightly less convenient than a prefix argument, but I think that does > what I want. It's less convenient because the default value (displayed in parens) for `occur' is not the symbol under point, but the last history element (that is also easy to get via `M-p'). This is for historical reasons. From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 01 18:33:40 2019 Received: (at 10916) by debbugs.gnu.org; 1 Nov 2019 22:33:41 +0000 Received: from localhost ([127.0.0.1]:57430 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQfUC-0002pH-K1 for submit@debbugs.gnu.org; Fri, 01 Nov 2019 18:33:40 -0400 Received: from host.gofardesign.uk ([208.79.239.190]:41522) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQfUA-0002p0-Ob for 10916@debbugs.gnu.org; Fri, 01 Nov 2019 18:33:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=marxist.se; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To: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=zrGn3A/Q1x9inwiP7AoCFSU/7xMSVyl5oKJ2LeKvm68=; b=oYrIlSdkXdhsZKT4nhWEt05B3b ApF8of6k+9LdhPTZ9Wgo2KkwwSunwNhASn36dZLRxkENJgvKwza1c/2C4NvR0bu2dzjPC+ruKkI1L Wqyl5pWecxRW1ZKe5F1/BLSWZoBFzxqucRiQpQILJ9b2jsF8bHsQepTqLpX0EDFe3J7s=; Received: from h-70-69.a785.priv.bahnhof.se ([155.4.70.69]:42232 helo=localhost) by host.gofardesign.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1iQfTz-00042X-Ut; Fri, 01 Nov 2019 17:33:28 -0500 From: Stefan Kangas To: Juri Linkov Subject: Re: bug#10916: Using occur to list occurrencies of the symbol at point In-Reply-To: <87aa40pkcx.fsf@mail.jurta.org> (Juri Linkov's message of "Thu, 01 Mar 2012 14:28:07 +0200") References: <87399ssiu6.fsf@mail.jurta.org> <87aa40pkcx.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Date: Fri, 01 Nov 2019 23:33:26 +0100 Message-ID: <87sgn7w7k9.fsf@marxist.se> MIME-Version: 1.0 Content-Type: text/plain X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host.gofardesign.uk X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - marxist.se X-Get-Message-Sender-Via: host.gofardesign.uk: authenticated_id: stefan@marxist.se X-Authenticated-Sender: host.gofardesign.uk: stefan@marxist.se X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 10916 Cc: 10916@debbugs.gnu.org, Niels =?utf-8?Q?M=C3=B6ller?= 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.0 (-) Juri Linkov writes: >>> Have you tried `M-x occur RET M-n RET'? >> >> Now I have. Seems to give the symbol at point in recent emacs versions. >> Slightly less convenient than a prefix argument, but I think that does >> what I want. > > It's less convenient because the default value (displayed in parens) > for `occur' is not the symbol under point, but the last history element > (that is also easy to get via `M-p'). This is for historical reasons. If this is how the command has worked for a long time, perhaps it's too late to change now? In that case, I guess this is a wontfix? Best regards, Stefan Kangas From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 13 16:49:43 2019 Received: (at 10916) by debbugs.gnu.org; 13 Nov 2019 21:49:43 +0000 Received: from localhost ([127.0.0.1]:60252 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iV0WE-0007oE-GN for submit@debbugs.gnu.org; Wed, 13 Nov 2019 16:49:42 -0500 Received: from aye.elm.relay.mailchannels.net ([23.83.212.6]:53761) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iV0WC-0007o5-6G for 10916@debbugs.gnu.org; Wed, 13 Nov 2019 16:49:40 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 1D5633C133A; Wed, 13 Nov 2019 21:49:39 +0000 (UTC) Received: from pdx1-sub0-mail-a44.g.dreamhost.com (100-96-169-194.trex.outbound.svc.cluster.local [100.96.169.194]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 27B563C0B6F; Wed, 13 Nov 2019 21:49:38 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from pdx1-sub0-mail-a44.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.5); Wed, 13 Nov 2019 21:49:39 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Wipe-Trouble: 68675d9d0d6f78bd_1573681778403_3138160322 X-MC-Loop-Signature: 1573681778403:1257089938 X-MC-Ingress-Time: 1573681778402 Received: from pdx1-sub0-mail-a44.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a44.g.dreamhost.com (Postfix) with ESMTP id C76B685222; Wed, 13 Nov 2019 13:49:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jurta.org; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=jurta.org; bh=QtZ/X9yf+ikvVUqCUDlJbYqe/cE=; b=L ncFw0B/z6KZ4CwLMB1dcHIrh/S5TDoWc9K+JZDkcsj1C87VOPSELvnXKDh+dF9sO uXwqqy6nFjSQfTp/CBQE0Vbf896inaBDRI6/dKGgi9oaNdrRwya+kQmkopmjrpHt 7Dwif7YYlXw2bmhwBMkPpMKg3rYOlF4qlG+ehEiomQ= Received: from mail.jurta.org (m91-129-102-1.cust.tele2.ee [91.129.102.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a44.g.dreamhost.com (Postfix) with ESMTPSA id 0810285224; Wed, 13 Nov 2019 13:49:29 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a44 From: Juri Linkov To: Stefan Kangas Subject: Re: bug#10916: Using occur to list occurrencies of the symbol at point Organization: LINKOV.NET References: <87399ssiu6.fsf@mail.jurta.org> <87aa40pkcx.fsf@mail.jurta.org> <87sgn7w7k9.fsf@marxist.se> Date: Wed, 13 Nov 2019 22:58:41 +0200 In-Reply-To: <87sgn7w7k9.fsf@marxist.se> (Stefan Kangas's message of "Fri, 01 Nov 2019 23:33:26 +0100") Message-ID: <87d0dvo63a.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 10916 Cc: 10916@debbugs.gnu.org, Niels =?iso-8859-1?Q?M=F6ller?= 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: -0.8 (/) >>>> Have you tried `M-x occur RET M-n RET'? >>> >>> Now I have. Seems to give the symbol at point in recent emacs versions. >>> Slightly less convenient than a prefix argument, but I think that does >>> what I want. >> >> It's less convenient because the default value (displayed in parens) >> for `occur' is not the symbol under point, but the last history element >> (that is also easy to get via `M-p'). This is for historical reasons. > > If this is how the command has worked for a long time, perhaps it's > too late to change now? In that case, I guess this is a wontfix? Agreed. From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 05 06:04:48 2019 Received: (at 10916) by debbugs.gnu.org; 5 Dec 2019 11:04:48 +0000 Received: from localhost ([127.0.0.1]:43060 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1icowC-0002pE-3k for submit@debbugs.gnu.org; Thu, 05 Dec 2019 06:04:48 -0500 Received: from ted.gofardesign.uk ([67.225.143.91]:43072) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1icowA-0002oy-UN; Thu, 05 Dec 2019 06:04:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=marxist.se; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To: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=PudjI6hgSjcKne9+w8E7Fz5CTp07m0MWn3MHKCx8EJ4=; b=MF6eSolYJIFrRUJgNMU2+qnsc8 zs5lg7JZUc4Xjaq6sGCAy7U+tKkWlIBuRWMZEgh3N+XQbkSWBBFel6SsG69zfkQVP28s7Dl/dcq0l vNyJRxfw4VJ+oCaioJDvgJMD3IM+O9a8dma+GM8O5aRSwHB0oRaw56HBFQ5jCYDWsKooYGvUobylg AKLNcfm9JToXABpGmp8Ziy5Sm10hVLwnaVbg8OoPUi/bCVyrcXMkus2hJnUa+LWgjbUELVA4yCSR/ toTMu+ORNO72Dv49Gb5XIbhg5Hsefh8zFEizDVualP893KQlrvXetuVMz86yF/p+hQd3b3zex96ET AJ0X51vw==; Received: from h-70-69.a785.priv.bahnhof.se ([155.4.70.69]:45186 helo=localhost) by ted.gofardesign.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1icow2-001DK6-QY; Thu, 05 Dec 2019 06:04:39 -0500 From: Stefan Kangas To: Juri Linkov Subject: Re: bug#10916: Using occur to list occurrencies of the symbol at point In-Reply-To: <87d0dvo63a.fsf@mail.linkov.net> (Juri Linkov's message of "Wed, 13 Nov 2019 22:58:41 +0200") References: <87399ssiu6.fsf@mail.jurta.org> <87aa40pkcx.fsf@mail.jurta.org> <87sgn7w7k9.fsf@marxist.se> <87d0dvo63a.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Date: Thu, 05 Dec 2019 12:04:36 +0100 Message-ID: <87lfrrghiz.fsf@marxist.se> MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ted.gofardesign.uk X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - marxist.se X-Get-Message-Sender-Via: ted.gofardesign.uk: authenticated_id: stefan@marxist.se X-Authenticated-Sender: ted.gofardesign.uk: stefan@marxist.se X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 10916 Cc: 10916@debbugs.gnu.org, Niels =?utf-8?Q?M=C3=B6ller?= 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.0 (-) tags 10916 + wontfix close 10916 thanks Juri Linkov writes: >>>>> Have you tried `M-x occur RET M-n RET'? >>>> >>>> Now I have. Seems to give the symbol at point in recent emacs versions. >>>> Slightly less convenient than a prefix argument, but I think that does >>>> what I want. >>> >>> It's less convenient because the default value (displayed in parens) >>> for `occur' is not the symbol under point, but the last history element >>> (that is also easy to get via `M-p'). This is for historical reasons. >> >> If this is how the command has worked for a long time, perhaps it's >> too late to change now? In that case, I guess this is a wontfix? > > Agreed. No further comments within 3 weeks, so I'm now closing this bug as wontfix. Best regards, Stefan Kangas From unknown Sun Aug 10 00:25:11 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 02 Jan 2020 12:24:04 +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