From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jambunathan K Newsgroups: gmane.emacs.bugs Subject: bug#13687: 24.3.50; `read-regexp' should provide regex for symbol at point as defaults Date: Mon, 11 Feb 2013 11:58:35 +0530 Message-ID: <87r4kn5ppo.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1360564189 19453 80.91.229.3 (11 Feb 2013 06:29:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Feb 2013 06:29:49 +0000 (UTC) To: 13687@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 11 07:30:10 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U4mu1-0005Oa-F2 for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Feb 2013 07:30:09 +0100 Original-Received: from localhost ([::1]:56827 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U4mti-0002bu-6v for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Feb 2013 01:29:50 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:42142) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U4mte-0002bp-Be for bug-gnu-emacs@gnu.org; Mon, 11 Feb 2013 01:29:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U4mtd-00041y-2b for bug-gnu-emacs@gnu.org; Mon, 11 Feb 2013 01:29:46 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44241) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U4mtc-00041u-Va for bug-gnu-emacs@gnu.org; Mon, 11 Feb 2013 01:29:44 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1U4mtu-0004tP-R2 for bug-gnu-emacs@gnu.org; Mon, 11 Feb 2013 01:30:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jambunathan K Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Feb 2013 06:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 13687 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.136056417118726 (code B ref -1); Mon, 11 Feb 2013 06:30:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Feb 2013 06:29:31 +0000 Original-Received: from localhost ([127.0.0.1]:49705 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U4mtM-0004rw-9q for submit@debbugs.gnu.org; Mon, 11 Feb 2013 01:29:30 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:58907) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U4mtJ-0004ro-D4 for submit@debbugs.gnu.org; Mon, 11 Feb 2013 01:29:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U4msz-0003w1-NO for submit@debbugs.gnu.org; Mon, 11 Feb 2013 01:29:06 -0500 Original-Received: from lists.gnu.org ([208.118.235.17]:38169) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U4msz-0003vx-J3 for submit@debbugs.gnu.org; Mon, 11 Feb 2013 01:29:05 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:42027) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U4msy-0002Zn-5O for bug-gnu-emacs@gnu.org; Mon, 11 Feb 2013 01:29:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U4msw-0003ve-Qd for bug-gnu-emacs@gnu.org; Mon, 11 Feb 2013 01:29:04 -0500 Original-Received: from mail-pa0-f44.google.com ([209.85.220.44]:36209) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U4msw-0003vY-Jk for bug-gnu-emacs@gnu.org; Mon, 11 Feb 2013 01:29:02 -0500 Original-Received: by mail-pa0-f44.google.com with SMTP id kp1so2923111pab.3 for ; Sun, 10 Feb 2013 22:29:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:subject:date:message-id:mime-version :content-type; bh=9JFMbTRNzNUFMVQDcaOWmNmPOBRmTWQ1rnWnsj/xK/4=; b=aw5hiKhyQWrTrX3L29D+sjquVThjtBdEqSZk6xD5f8QOx+6RV3RNlqdgvYwP4GBLXz KuJXx9SLkBhY2j7F/ZZuDJNlL62UzsW79qVZiP+srLGnPg2nbZQUboznvmmB+cQ+QUeX BjPNkhJPv2XOsEs+4pLHHNIFujubNKUhw0VPJGPw1OwBg04gHl7BI95OeVerjIPEIDaA 27E0BMRi81zeJNr0+ksHg86YRkVIVkhnvUt+ghodWq+Eh4qPEIZrGexeVWgM6h7wbxkK gXr23CudS28KRA4eJ0859Zy/ofs71PRN42D1w9mOyNxyIgRXj1Mlg1mEi9r2PdHxdJop cSrg== X-Received: by 10.68.137.168 with SMTP id qj8mr16301930pbb.32.1360564141510; Sun, 10 Feb 2013 22:29:01 -0800 (PST) Original-Received: from debian-6.05 ([115.241.62.28]) by mx.google.com with ESMTPS id ps6sm6670461pbb.27.2013.02.10.22.28.59 (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Sun, 10 Feb 2013 22:29:00 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:71043 Archived-At: Spun from http://debbugs.gnu.org/cgi/bugreport.cgi?bug=11095 `read-regexp' should provide regex for symbol at point as one of the defaults. This should be the first of defaults while in any of the progmodes. I provided a patch which can be seen here: http://debbugs.gnu.org/cgi/bugreport.cgi?msg=32;filename=bug11095-r110503.diff;att=4;bug=11095 The key thing to note is this: 1. `find-tag-default' (when find-tag-default-function is nil) will pick up the symbol at point. 2. When tag is picked as above, surround it with beginning/end-of-symbol regexp delimiters and add it to defaults. In GNU Emacs 24.3.50.3 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2013-02-11 on debian-6.05 Bzr revision: 111730 rgm@gnu.org-20130211015045-19w1ceor0tkfxc8q Windowing system distributor `The X.Org Foundation', version 11.0.10707000 System Description: Debian GNU/Linux 6.0.5 (squeeze)