[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r112784: Silence ielm compilation
From: |
Glenn Morris |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r112784: Silence ielm compilation |
Date: |
Wed, 29 May 2013 20:30:34 -0700 |
User-agent: |
Bazaar (2.6b2) |
------------------------------------------------------------
revno: 112784
committer: Glenn Morris <address@hidden>
branch nick: trunk
timestamp: Wed 2013-05-29 20:30:34 -0700
message:
Silence ielm compilation
* lisp/ielm.el (ielm-map, ielm-complete-symbol):
Use completion-at-point rather than obsolete functions.
(inferior-emacs-lisp-mode): Doc fix.
Set completion-at-point-functions, rather than
comint-dynamic-complete-functions.
modified:
lisp/ChangeLog
lisp/ielm.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog 2013-05-30 03:27:46 +0000
+++ b/lisp/ChangeLog 2013-05-30 03:30:34 +0000
@@ -1,5 +1,11 @@
2013-05-30 Glenn Morris <address@hidden>
+ * ielm.el (ielm-map, ielm-complete-symbol):
+ Use completion-at-point rather than obsolete functions.
+ (inferior-emacs-lisp-mode): Doc fix.
+ Set completion-at-point-functions, rather than
+ comint-dynamic-complete-functions.
+
* eshell/em-cmpl.el (eshell-complete-lisp-symbol): New function.
(eshell-cmpl-initialize, eshell-complete-parse-arguments):
Replace obsolete lisp-complete-symbol with eshell-complete-lisp-symbol.
=== modified file 'lisp/ielm.el'
--- a/lisp/ielm.el 2013-05-23 15:27:48 +0000
+++ b/lisp/ielm.el 2013-05-30 03:30:34 +0000
@@ -167,7 +167,7 @@
(defvar ielm-map
(let ((map (make-sparse-keymap)))
- (define-key map "\t" 'comint-dynamic-complete)
+ (define-key map "\t" 'completion-at-point)
(define-key map "\C-m" 'ielm-return)
(define-key map "\C-j" 'ielm-send-input)
(define-key map "\e\C-x" 'eval-defun) ; for consistency with
@@ -209,12 +209,13 @@
(defun ielm-complete-symbol nil
"Complete the Lisp symbol before point."
- ;; A wrapper for lisp-complete symbol that returns non-nil if
+ ;; A wrapper for completion-at-point that returns non-nil if
;; completion has occurred
(let* ((btick (buffer-modified-tick))
(cbuffer (get-buffer "*Completions*"))
- (ctick (and cbuffer (buffer-modified-tick cbuffer))))
- (lisp-complete-symbol)
+ (ctick (and cbuffer (buffer-modified-tick cbuffer)))
+ (completion-at-point-functions '(lisp-completion-at-point)))
+ (completion-at-point)
;; completion has occurred if:
(or
;; the buffer has been modified
@@ -461,7 +462,7 @@
Inputs longer than one line are moved to the line following the
prompt (but see variable `ielm-dynamic-multiline-inputs').
-* \\[comint-dynamic-complete] completes Lisp symbols (or filenames, within
strings),
+* \\[completion-at-point] completes Lisp symbols (or filenames, within
strings),
or indents the line if there is nothing to complete.
The current working buffer may be changed (with a call to `set-buffer',
@@ -498,7 +499,7 @@
(set (make-local-variable 'paragraph-start) comint-prompt-regexp)
(setq comint-input-sender 'ielm-input-sender)
(setq comint-process-echoes nil)
- (set (make-local-variable 'comint-dynamic-complete-functions)
+ (set (make-local-variable 'completion-at-point-functions)
'(ielm-tab comint-replace-by-expanded-history
ielm-complete-filename ielm-complete-symbol))
(set (make-local-variable 'ielm-prompt-internal) ielm-prompt)
@@ -513,8 +514,6 @@
(set (make-local-variable 'indent-line-function) 'ielm-indent-line)
(set (make-local-variable 'ielm-working-buffer) (current-buffer))
(set (make-local-variable 'fill-paragraph-function) 'lisp-fill-paragraph)
- (add-hook 'completion-at-point-functions
- 'lisp-completion-at-point nil 'local)
;; Value holders
(set (make-local-variable '*) nil)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r112784: Silence ielm compilation,
Glenn Morris <=