unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* goto-mode-abbrev-table
@ 2007-10-26 19:31 Andreas Röhler
  0 siblings, 0 replies; only message in thread
From: Andreas Röhler @ 2007-10-26 19:31 UTC (permalink / raw)
  To: help-gnu-emacs; +Cc: Stefan Monnier


Editing abbrevs is a lot easier since I use this:

(defun goto-mode-abbrev-table (&optional ispec)
  "Goto mode abbrevs in \"\*Abbrevs\*\" "
  (interactive "p")
  (save-excursion
    (let ((mat (abbrev-table-name local-abbrev-table)))
      (prepare-abbrev-list-buffer)
      (set-buffer "*Abbrevs*")
      (when ispec 
	(switch-to-buffer (current-buffer))) 
      (widen)
      (goto-char (point-min)) 
      (search-forward (concat "(" (format "%s" mat))))))

Maybe it's useful for others too.


Andreas Röhler

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-10-26 19:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-26 19:31 goto-mode-abbrev-table Andreas Röhler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).