Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
13973643
Commit
13973643
authored
May 15, 2010
by
Stefan Monnier
Browse files
* progmodes/prolog.el (prolog-mode): Use define-derived-mode.
parent
c26ea4b2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
10 deletions
+4
-10
lisp/ChangeLog
lisp/ChangeLog
+2
-0
lisp/progmodes/prolog.el
lisp/progmodes/prolog.el
+2
-10
No files found.
lisp/ChangeLog
View file @
13973643
2010-05-15 Stefan Monnier <monnier@iro.umontreal.ca>
* 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.
...
...
lisp/progmodes/prolog.el
View file @
13973643
...
...
@@ -136,26 +136,18 @@ When nil, send actual operating system end of file."
))
;;;###autoload
(
def
un
prolog-mode
()
(
def
ine-derived-mode
prolog-mode
prog-mode
"Prolog"
"Major mode for editing Prolog code for Prologs.
Blank lines and `%%...' separate paragraphs. `%'s start comments.
Commands:
\\{prolog-mode-map}
Entry to this mode calls the value of `prolog-mode-hook'
if that value is non-nil."
(
interactive
)
(
kill-all-local-variables
)
(
use-local-map
prolog-mode-map
)
(
set-syntax-table
prolog-mode-syntax-table
)
(
setq
major-mode
'prolog-mode
)
(
setq
mode-name
"Prolog"
)
(
prolog-mode-variables
)
(
set
(
make-local-variable
'comment-add
)
1
)
;; font lock
(
setq
font-lock-defaults
'
(
prolog-font-lock-keywords
nil
nil
nil
beginning-of-line
))
(
run-mode-hooks
'prolog-mode-hook
))
beginning-of-line
)))
(
defun
prolog-indent-line
()
"Indent current line as Prolog code.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment