diff yatexlib.el @ 168:191cffccc912 dev

Replace all \ref{LABEL} when changing \label{LABEL}. Move YaTeX-yatex-buffer-list to yatexlib.el
author yuuji@gentei.org
date Wed, 16 Feb 2011 20:08:05 +0900
parents b65b3dc543d1
children ab02213f5683
line wrap: on
line diff
--- a/yatexlib.el	Mon Feb 14 14:50:33 2011 +0900
+++ b/yatexlib.el	Wed Feb 16 20:08:05 2011 +0900
@@ -2,7 +2,7 @@
 ;;; YaTeX and yahtml common libraries, general functions and definitions
 ;;; yatexlib.el
 ;;; (c)1994-2009 by HIROSE Yuuji.[yuuji@yatex.org]
-;;; Last modified Sat Sep 11 11:40:11 2010 on firestorm
+;;; Last modified Wed Feb 16 19:58:33 2011 on firestorm
 ;;; $Id$
 
 ;; General variables
@@ -665,6 +665,13 @@
     (self-insert-command 1)
     (YaTeX-minibuffer-complete)))
 
+(defun YaTeX-yatex-buffer-list ()
+  (save-excursion
+    (delq nil (mapcar (function (lambda (buf)
+				  (set-buffer buf)
+				  (if (eq major-mode 'yatex-mode) buf)))
+		      (buffer-list)))))
+
 (defun foreach-buffers (pattern job)
   "For each buffer which matches with PATTERN, do JOB."
   (let ((list (buffer-list)))

yatex.org