* language independant way to locate beginning of enclosing scope ?
@ 2007-12-13 18:45 Mike Mattie
0 siblings, 0 replies; only message in thread
From: Mike Mattie @ 2007-12-13 18:45 UTC (permalink / raw)
To: emacs users
[-- Attachment #1.1: Type: text/plain, Size: 752 bytes --]
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.
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=array[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
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 152 bytes --]
_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-12-13 18:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-13 18:45 language independant way to locate beginning of enclosing scope ? Mike Mattie
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.