From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.devel Subject: Re: Per-language project-search-path, was: Re: Unified project interface Date: Sun, 02 Aug 2015 19:14:39 +0200 Message-ID: <87oaiptxxc.fsf@web.de> References: <557039DB.4060607@yandex.ru> <868ua5caz6.fsf@stephe-leake.org> <55B441DD.9060806@yandex.ru> <86zj2jb1tx.fsf@stephe-leake.org> <55B517AC.5020401@yandex.ru> <86oaiybvbf.fsf@stephe-leake.org> <55B62B53.5060003@yandex.ru> <861tftaxgx.fsf@stephe-leake.org> <55B78F49.6010101@yandex.ru> <868ua09s1y.fsf@stephe-leake.org> <55B7CD86.20306@yandex.ru> <86oaiv8zqn.fsf@stephe-leake.org> <55B9590C.3080108@yandex.ru> <86wpxi6ovl.fsf@stephe-leake.org> <55BABE27.4040105@yandex.ru> <868u9wz4mw.fsf@stephe-leake.org> <55BC1D5F.4010502@yandex.ru> <86d1z7jnl9.fsf@stephe-leake.org> <55BCD3E9.40606@yandex.ru> <55BD807B.5030206@gmail.com> <877fpef4pl.fsf@esperi.org.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1438535713 16940 80.91.229.3 (2 Aug 2015 17:15:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 2 Aug 2015 17:15:13 +0000 (UTC) Cc: Eric Ludlam , emacs-devel@gnu.org, Stephen Leake , Dmitry Gutov To: Nix Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 02 19:15:04 2015 Return-path: Envelope-to: ged-emacs-devel@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 1ZLwqm-000423-8P for ged-emacs-devel@m.gmane.org; Sun, 02 Aug 2015 19:15:04 +0200 Original-Received: from localhost ([::1]:56476 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZLwql-0008Ly-8E for ged-emacs-devel@m.gmane.org; Sun, 02 Aug 2015 13:15:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34530) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZLwqY-0008Li-Iq for emacs-devel@gnu.org; Sun, 02 Aug 2015 13:14:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZLwqU-0002KA-Gt for emacs-devel@gnu.org; Sun, 02 Aug 2015 13:14:50 -0400 Original-Received: from mout.web.de ([212.227.15.14]:53142) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZLwqU-0002IZ-59 for emacs-devel@gnu.org; Sun, 02 Aug 2015 13:14:46 -0400 Original-Received: from drachen.dragon ([90.187.7.100]) by smtp.web.de (mrweb003) with ESMTPSA (Nemesis) id 0MAMkU-1ZARb72eJ0-00BYDI; Sun, 02 Aug 2015 19:14:43 +0200 In-Reply-To: <877fpef4pl.fsf@esperi.org.uk> (nix@esperi.org.uk's message of "Sun, 02 Aug 2015 09:57:10 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-Provags-ID: V03:K0:QNuk1tdzJvJKhOtK/3G4nuX5bJziVMg/Xq7f+eIoQI8oWpWSnlM wqM1AyJQzpjedmlBW4wyo9i3UcwimJOYtr3/8TwcEYRE0EmHD6qNAkttKVWi+0Jcd0YGDPu ofQ75hoSRnvge6B3ZskFka/8p/4n+E4o7ORyMNqypkkaJmv8o4bJgdoEwCeayVz4aphp6Xy yrpuK7tdWGv3BRW5Sa4Hg== X-UI-Out-Filterresults: notjunk:1;V01:K0:zylDn7gRoDA=:2cdcRZYe00M2HpFgF+iPpH IBScl1e8RwYI5BonJwDdyhFNQqQEtTGmzdTLNyzuyb3pgXGKU6Tpg/nDvngg8hvZio1ERcBkO K8KhaGYJ9IhKdmm1+moK4CuE9sa85ldLDXBrcpvmTkJa7mHSZm62Qdl8MYT3fLmioTL4GUzTQ 1+rIUntXWqBGT48zY6cI+TPZ8z2X+8NSuOOGAKk2GiRB9stlSjwaEPLi0mnqqxYmTXZEcRfDA ZkB8dTrcrSwO6KIJGwEdWeVPZNhOFykQrpwqhP7c/fr02bpZ0YyckMXtSfJQ1VnkratYP4W0Q UZx2Xy96UHiZqZ63EXtFebIDBDiOprQXBLsEoP8ps7WuBJDDIfrY2K1EINZx8qFGZpKRW5vIO kUrrl14gHf1GYP0uRsrFkCxgoQQ/K7mIQcE0Q33ngE4599ord7t4cSZsefCfh2bYQdNQSZ3Zv EWm9Ogra9ddT+BUqIY/zcIknJX/aW6Wy2oYRr7FTukirPkXuBTHYiXwFJMdILEOP16LcC/vK0 BObjy60DjZ6ypP5nmVZnjJtngg4FNlcdHZzZ+szJdu/lUg5zAGA7bj1KVamf3qtU5RSACVHXN M0/nNm2NcrvAUYUHQUCLC/TO94OT3Xvdv0GRpUvs+XiWjhsToKpJW9PvEYef6C9PppVsi3SDG C/MMP6379kbcHZm/HbCLk4BJTuX7Sx4YDhRZhK3bl9y9vPdTqcOcsBd4sZE7DvH0ZhUA= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.15.14 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:188295 Archived-At: Nix writes: > (What I'd really like is something like the el-search pcase-based > searcher Michael Heerdegen recently proposed, only for everything > supported by Semantic, but with most language grammars not being very > amenable to ML-style pattern-matching I doubt this is possible...) I agree that would be very useful. But I don't know much about Semantic, and the info pages seem to be outdated. Is there some function in semantic that parses the expression at point and returns a parse tree represented as (Lisp) list? The outdated info page mentions ast.el which seems to do that, but I can't find it anymore. I guess one could try the following, more or less: go through the buffer and parse it on the fly to ast expressions. The search command prompts for a "pattern" using the syntax of the buffer's language plus placeholders. The input is parsed and converted to a an ast as well. Then the matching could be done in Elisp like el-search does. Michael.