comparison lisp/packages/mic-paren.el @ 108:360340f9fd5f r20-1b6

Import from CVS: tag r20-1b6
author cvs
date Mon, 13 Aug 2007 09:18:39 +0200
parents cf808b4c4290
children
comparison
equal deleted inserted replaced
107:523141596bda 108:360340f9fd5f
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"))))