Commit 13973643 authored by Stefan Monnier's avatar Stefan Monnier
Browse files

* progmodes/prolog.el (prolog-mode): Use define-derived-mode.

parent c26ea4b2
2010-05-15 Stefan Monnier <>
* progmodes/prolog.el (prolog-mode): Use define-derived-mode.
* pcomplete.el (pcomplete-completions-at-point): New function,
extracted from pcomplete-std-complete.
(pcomplete-std-complete): Use it.
......@@ -136,26 +136,18 @@ When nil, send actual operating system end of file."
(defun prolog-mode ()
(define-derived-mode prolog-mode prog-mode "Prolog"
"Major mode for editing Prolog code for Prologs.
Blank lines and `%%...' separate paragraphs. `%'s start comments.
Entry to this mode calls the value of `prolog-mode-hook'
if that value is non-nil."
(use-local-map prolog-mode-map)
(set-syntax-table prolog-mode-syntax-table)
(setq major-mode 'prolog-mode)
(setq mode-name "Prolog")
(set (make-local-variable 'comment-add) 1)
;; font lock
(setq font-lock-defaults '(prolog-font-lock-keywords
nil nil nil
(run-mode-hooks 'prolog-mode-hook))
(defun prolog-indent-line ()
"Indent current line as Prolog code.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment