comparison lisp/packages/mic-paren.el @ 30:ec9a17fef872 r19-15b98

Import from CVS: tag r19-15b98
author cvs
date Mon, 13 Aug 2007 08:52:29 +0200
parents 441bb1e64a06
children
comparison
equal deleted inserted replaced
29:7976500f47f9 30:ec9a17fef872
297 ((and (boundp 'post-command-idle-hook) 297 ((and (boundp 'post-command-idle-hook)
298 (boundp 'post-command-idle-delay)) 298 (boundp 'post-command-idle-delay))
299 (if paren-delay 299 (if paren-delay
300 (add-hook 'post-command-idle-hook 'mic-paren-command-idle-hook) 300 (add-hook 'post-command-idle-hook 'mic-paren-command-idle-hook)
301 (add-hook 'post-command-hook 'mic-paren-command-hook))) 301 (add-hook 'post-command-hook 'mic-paren-command-hook)))
302 ;; Check if we (at least) have a post-comand-hook, and use it 302 ;; Check if we (at least) have a post-command-hook, and use it
303 ;; (Emacs 19.29 and below) 303 ;; (Emacs 19.29 and below)
304 ((boundp 'post-command-hook) 304 ((boundp 'post-command-hook)
305 (add-hook 'post-command-hook 'mic-paren-command-hook)) 305 (add-hook 'post-command-hook 'mic-paren-command-hook))
306 ;; Not possible to install mic-paren hooks 306 ;; Not possible to install mic-paren hooks
307 (t (error "Cannot activate mic-paren in this Emacs version")))) 307 (t (error "Cannot activate mic-paren in this Emacs version"))))