From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mike Mattie Newsgroups: gmane.emacs.help Subject: language independant way to locate beginning of enclosing scope ? Date: Thu, 13 Dec 2007 10:45:09 -0800 Message-ID: <20071213104509.139daf02@reforged> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2100246637==" X-Trace: ger.gmane.org 1197571844 8429 80.91.229.12 (13 Dec 2007 18:50:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Dec 2007 18:50:44 +0000 (UTC) To: emacs users Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 13 19:50:54 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1J2t8t-0007wD-Ch for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Dec 2007 19:50:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J2t8b-0006WZ-4C for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Dec 2007 13:50:25 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J2t8I-0006WK-Ab for help-gnu-emacs@gnu.org; Thu, 13 Dec 2007 13:50:06 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J2t8F-0006W8-Rz for help-gnu-emacs@gnu.org; Thu, 13 Dec 2007 13:50:05 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J2t8F-0006W5-Ph for help-gnu-emacs@gnu.org; Thu, 13 Dec 2007 13:50:03 -0500 Original-Received: from wa-out-1112.google.com ([209.85.146.181]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J2t8F-0007jk-Bz for help-gnu-emacs@gnu.org; Thu, 13 Dec 2007 13:50:03 -0500 Original-Received: by wa-out-1112.google.com with SMTP id k34so1249836wah.10 for ; Thu, 13 Dec 2007 10:50:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject:message-id:x-mailer:mime-version:content-type; bh=DUUheiFP6WbMb3A6mfVSiMyDUC5xnETF4IbZ7NGNQ44=; b=JxXuQziinydm4hnJ3cpqLQrVIKW49UCfOkQS3T3qzqWl0lK9BWLIhb7oon0NwU5zxrXuOx90cp2XEaypiueDqBYcvzb2y5XPv278b4LQStttdCCJEL2SWYhA2SIiqT2OpgNZpexkmRHSAJpthA9XT230gUOw8zjYYA5ezRkuyOo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:x-mailer:mime-version:content-type; b=sE00Buqlw9uZTUWeW1uAu6P/isADUU/3XitsIzxsIYUU/oTCDQlFCCeoM91quidaLHrW82tLlzzFvXcsuUcRZuJ7UREoR41ZFFZFprOzKQXFRcAugtMiDfwSC7W3k3D7LsUoSg89MLlN++vktlbx9KGDtT/NGhxxXRvCMYFWdO4= Original-Received: by 10.114.60.19 with SMTP id i19mr2603009waa.142.1197571801826; Thu, 13 Dec 2007 10:50:01 -0800 (PST) Original-Received: from reforged ( [71.217.198.62]) by mx.google.com with ESMTPS id k26sm5393057waf.2007.12.13.10.49.59 (version=SSLv3 cipher=OTHER); Thu, 13 Dec 2007 10:50:01 -0800 (PST) X-Mailer: Claws Mail 3.0.2 (GTK+ 2.12.1; i686-pc-linux-gnu) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:50077 Archived-At: --===============2100246637== Content-Type: multipart/signed; boundary="Sig_/Dq7mIeHLSzXrMLz80lBTaZQ"; protocol="application/pgp-signature"; micalg=PGP-SHA1 --Sig_/Dq7mIeHLSzXrMLz80lBTaZQ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hello, I am looking for a language independent way to locate the beginning of the = enclosing scope. Something along the lines of beginning-of-defun, in that the mode provides = a language specific version. My goal is to be able to set up hippie-expand tables that are scoped. A bit= more context may help understand my goal.=20 I have templates that grind out code for imperative languages, the classic = example being the for loop. I can generate code fragments along with the loop body fairly= easily. for ( i , i < array, i++ ) { // elem=3Darray[i] } assuming that the cursor is within the loop body it would be nice to expand= "elem" and have it plug in the indexing fragment. Any suggestions appreciated. Thanks, Mike Mattie --Sig_/Dq7mIeHLSzXrMLz80lBTaZQ Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFHYX21dfRchrkBInkRAmuwAJ9i2V6D29OP3DswkMxVdL9FCNZKWQCgqwq4 +cenzlrR9bS+qgNaZOL2nu0= =rMMg -----END PGP SIGNATURE----- --Sig_/Dq7mIeHLSzXrMLz80lBTaZQ-- --===============2100246637== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ help-gnu-emacs mailing list help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs --===============2100246637==--