summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2006-07-07 14:40:35 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2006-07-07 14:40:35 +0000
commite2536e57f9dbb227eb198a678fe0052cded82952 (patch)
treecf14e5b68dae0ffc7a71e345e6a1b57fcd88e30a /lisp
parent898cfc1d8a8ac22ccc7727d61b6cbb1cfb8c89b6 (diff)
downloademacs-e2536e57f9dbb227eb198a678fe0052cded82952.tar.gz
Remove spurious * in docstrings.
(inferior-octave-mode): Only change the buffer-local value of comint-dynamic-complete-functions. (inferior-octave-mode-map, inferior-octave-mode-syntax-table): Move the initialization to the declaration. (inferior-octave-complete): Remove unused var `filter'.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog12
-rw-r--r--lisp/progmodes/octave-inf.el40
2 files changed, 30 insertions, 22 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index a8532e7143c..47871e2daaa 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,15 @@
+2006-07-07 Stefan Monnier <monnier@iro.umontreal.ca>
+
+ * progmodes/octave-inf.el: Remove spurious * in docstrings.
+ (inferior-octave-mode): Only change the buffer-local value of
+ comint-dynamic-complete-functions.
+ (inferior-octave-mode-map, inferior-octave-mode-syntax-table):
+ Move the initialization to the declaration.
+ (inferior-octave-complete): Remove unused var `filter'.
+
+ * shell.el (shell-mode): Only change the buffer-local value of
+ comint-dynamic-complete-functions.
+
2006-07-07 Carsten Dominik <dominik@science.uva.nl>
* textmodes/org.el (org-agenda-get-todos): Skip subtree also if
diff --git a/lisp/progmodes/octave-inf.el b/lisp/progmodes/octave-inf.el
index b6e6e4fc456..863f972086e 100644
--- a/lisp/progmodes/octave-inf.el
+++ b/lisp/progmodes/octave-inf.el
@@ -37,18 +37,18 @@
:group 'octave)
(defcustom inferior-octave-program "octave"
- "*Program invoked by `inferior-octave'."
+ "Program invoked by `inferior-octave'."
:type 'string
:group 'octave-inferior)
(defcustom inferior-octave-prompt
"\\(^octave\\(\\|.bin\\)\\(-[.0-9]+\\)?\\(:[0-9]+\\)?\\|^debug\\|^\\)>+ "
- "*Regexp to match prompts for the inferior Octave process."
+ "Regexp to match prompts for the inferior Octave process."
:type 'regexp
:group 'octave-inferior)
(defcustom inferior-octave-startup-file nil
- "*Name of the inferior Octave startup file.
+ "Name of the inferior Octave startup file.
The contents of this file are sent to the inferior Octave process on
startup."
:type '(choice (const :tag "None" nil)
@@ -56,34 +56,31 @@ startup."
:group 'octave-inferior)
(defcustom inferior-octave-startup-args nil
- "*List of command line arguments for the inferior Octave process.
+ "List of command line arguments for the inferior Octave process.
For example, for suppressing the startup message and using `traditional'
mode, set this to (\"-q\" \"--traditional\")."
:type '(repeat string)
:group 'octave-inferior)
-(defvar inferior-octave-mode-map nil
- "Keymap used in Inferior Octave mode.")
-(if inferior-octave-mode-map
- ()
- (let ((map (copy-keymap comint-mode-map)))
+(defvar inferior-octave-mode-map
+ (let ((map (make-sparse-keymap)))
+ (set-keymap-parent map comint-mode-map)
(define-key map "\t" 'comint-dynamic-complete)
(define-key map "\M-?" 'comint-dynamic-list-filename-completions)
(define-key map "\C-c\C-l" 'inferior-octave-dynamic-list-input-ring)
(define-key map [menu-bar inout list-history]
'("List Input History" . inferior-octave-dynamic-list-input-ring))
(define-key map "\C-c\C-h" 'octave-help)
- (setq inferior-octave-mode-map map)))
+ map)
+ "Keymap used in Inferior Octave mode.")
-(defvar inferior-octave-mode-syntax-table nil
- "Syntax table in use in inferior-octave-mode buffers.")
-(if inferior-octave-mode-syntax-table
- ()
+(defvar inferior-octave-mode-syntax-table
(let ((table (make-syntax-table)))
(modify-syntax-entry ?\` "w" table)
(modify-syntax-entry ?\# "<" table)
(modify-syntax-entry ?\n ">" table)
- (setq inferior-octave-mode-syntax-table table)))
+ table)
+ "Syntax table in use in inferior-octave-mode buffers.")
(defcustom inferior-octave-mode-hook nil
"*Hook to be run when Inferior Octave mode is started."
@@ -154,9 +151,9 @@ Entry to this mode successively runs the hooks `comint-mode-hook' and
(setq comint-input-ring-file-name
(or (getenv "OCTAVE_HISTFILE") "~/.octave_hist")
comint-input-ring-size (or (getenv "OCTAVE_HISTSIZE") 1024)
- comint-input-filter-functions '(inferior-octave-directory-tracker)
- comint-dynamic-complete-functions
- inferior-octave-dynamic-complete-functions)
+ comint-input-filter-functions '(inferior-octave-directory-tracker))
+ (set (make-local-variable 'comint-dynamic-complete-functions)
+ inferior-octave-dynamic-complete-functions)
(comint-read-input-ring t)
(run-mode-hooks 'inferior-octave-mode-hook))
@@ -272,8 +269,7 @@ is NOT available with versions of Octave prior to 2.0."
(save-excursion
(skip-syntax-backward "w_" (comint-line-beginning-position))
(buffer-substring-no-properties (point) end)))
- (proc (get-buffer-process inferior-octave-buffer))
- (filter (process-filter proc)))
+ (proc (get-buffer-process inferior-octave-buffer)))
(cond (inferior-octave-complete-impossible
(error (concat
"Your Octave does not have `completion_matches'. "
@@ -299,7 +295,7 @@ is NOT available with versions of Octave prior to 2.0."
command inferior-octave-output-list)))))
(defun inferior-octave-dynamic-list-input-ring ()
- "List the buffer's input history in a help buffer"
+ "List the buffer's input history in a help buffer."
;; We cannot use `comint-dynamic-list-input-ring', because it replaces
;; "completion" by "history reference" ...
(interactive)
@@ -394,5 +390,5 @@ directory and makes this the current buffer's default directory."
(provide 'octave-inf)
-;;; arch-tag: bdce0395-24d1-4bb4-bfba-6fb1eeb1a660
+;; arch-tag: bdce0395-24d1-4bb4-bfba-6fb1eeb1a660
;;; octave-inf.el ends here