;;; -*- Emacs-Lisp -*- ;;; Perl mode plus ;;; (c) 1995-2000, 2005 by HIROSE Yuuji [yuuji>at (+ len (length w) 2) ww) (setq w (concat "\n" w " ") len (+ (length w) 2)) (setq w (concat w " ") len (+ len (+ (length w) 2)))) (setq cand (concat cand w) list (cdr list))) (perlplus-flash-string (format "== Matches with %s\n%s\n%s" (make-string (- (window-width) 16) ?=) cand (make-string (1- (window-width)) ?=)))) (delete-region b p) (insert word) (setq abr word) (setq word (try-completion word (funcall listfunc abr))) (if (eq t word) (if (eolp) (cond ((assoc abr perlplus-control-structure-alist) (insert " (")) (ps (insert ps))))) )) ((null word) (error "No matches found for `%s'" abr)) ((eq word t) (message "Sole completion") (cond ((assoc abr perlplus-control-structure-alist) (insert " (")) (ps (insert ps))))))) (defun perlplus-setup () (make-local-variable 'perlplus-external-variables) (make-local-variable 'perlplus-external-functions) (make-local-variable 'perlplus-inc-path-alist) (make-local-variable 'perlplus-perl5) (let ((symlist (perlplus-collect-imported-symbols)) (st (syntax-table))) (set-syntax-table (standard-syntax-table)) (unwind-protect (setq perlplus-external-variables (car symlist) perlplus-external-functions (car (cdr symlist))) (set-syntax-table st))) ) (provide 'perlplus) ;;; Local variables: ;;; fill-prefix: ";;; " ;;; End: