+2009-12-03 Juanma Barranquero <lekktu@gmail.com>
+
+ * progmodes/pascal.el: Require CL when compiling (for lexical-let).
+
2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
* hippie-exp.el (try-expand-dabbrev-visible): Preserve point in the
* comint.el (comint-insert-input): Ignore clicks to the right of
the field. Reported by Bob Nnamtrop <bobnnamtrop@gmail.com>.
- * vc.el (vc-print-log-internal): Don't wait for the prcess to
+ * vc.el (vc-print-log-internal): Don't wait for the process to
terminate before setting up the major mode.
* pcmpl-unix.el (pcomplete/cd): Complete more than one argument, just
\f
;;; Code:
+(eval-when-compile (require 'cl))
+
(defgroup pascal nil
"Major mode for editing Pascal source in Emacs."
:link '(custom-group-link :tag "Font Lock Faces group" font-lock-faces)
"\\<\\(" pascal-str "[a-zA-Z0-9_.]*\\)\\>"))
(pascal-all ())
match)
-
+
(if (not (looking-at "\\<\\(function\\|procedure\\)\\>"))
(re-search-backward "\\<\\(function\\|procedure\\)\\>" nil t))
(forward-char 1)
"[a-zA-Z_]"
pascal-str))))
(goto-char (point-min))
-
+
;; Build a list of all possible completions
(while (re-search-forward pascal-str nil t)
(push (match-string 2) pascal-all)))
(let* ((default (pascal-get-default-symbol))
(default (if (pascal-comp-defun default nil 'lambda)
default ""))
- (label
+ (label
;; Do completion with default
(completing-read (if (not (string= default ""))
(concat "Label (default " default "): ")