Mercurial > emacs
comparison lisp/emacs-lisp/lisp-mode.el @ 94167:3f795454be96
(lisp-comment-indent): Add WHEN to obsolescence declaration.
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Fri, 18 Apr 2008 10:32:16 +0000 |
parents | e3bcfa0ca892 |
children | 72eb648a4690 |
comparison
equal
deleted
inserted
replaced
94166:024f6c12a147 | 94167:3f795454be96 |
---|---|
268 ;; function-key-map, this should remain disabled!! | 268 ;; function-key-map, this should remain disabled!! |
269 ;;;(define-key map [backspace] 'backward-delete-char-untabify) | 269 ;;;(define-key map [backspace] 'backward-delete-char-untabify) |
270 map) | 270 map) |
271 "Keymap for commands shared by all sorts of Lisp modes.") | 271 "Keymap for commands shared by all sorts of Lisp modes.") |
272 | 272 |
273 (defvar emacs-lisp-mode-map | 273 (defvar emacs-lisp-mode-map |
274 (let ((map (make-sparse-keymap "Emacs-Lisp")) | 274 (let ((map (make-sparse-keymap "Emacs-Lisp")) |
275 (menu-map (make-sparse-keymap "Emacs-Lisp")) | 275 (menu-map (make-sparse-keymap "Emacs-Lisp")) |
276 (prof-map (make-sparse-keymap)) | 276 (prof-map (make-sparse-keymap)) |
277 (tracing-map (make-sparse-keymap))) | 277 (tracing-map (make-sparse-keymap))) |
278 (set-keymap-parent map lisp-mode-shared-map) | 278 (set-keymap-parent map lisp-mode-shared-map) |
354 :help "Execute the current buffer as Lisp code")) | 354 :help "Execute the current buffer as Lisp code")) |
355 (define-key menu-map [eval-region] | 355 (define-key menu-map [eval-region] |
356 '(menu-item "Evaluate Region" eval-region | 356 '(menu-item "Evaluate Region" eval-region |
357 :help "Execute the region as Lisp code" | 357 :help "Execute the region as Lisp code" |
358 :enable mark-active)) | 358 :enable mark-active)) |
359 (define-key menu-map [eval-sexp] | 359 (define-key menu-map [eval-sexp] |
360 '(menu-item "Evaluate Last S-expression" eval-last-sexp | 360 '(menu-item "Evaluate Last S-expression" eval-last-sexp |
361 :help "Evaluate sexp before point; print value in minibuffer")) | 361 :help "Evaluate sexp before point; print value in minibuffer")) |
362 (define-key menu-map [separator-format] '("--")) | 362 (define-key menu-map [separator-format] '("--")) |
363 (define-key menu-map [comment-region] | 363 (define-key menu-map [comment-region] |
364 '(menu-item "Comment Out Region" comment-region | 364 '(menu-item "Comment Out Region" comment-region |
491 (define-key map "\e\C-x" 'eval-defun) | 491 (define-key map "\e\C-x" 'eval-defun) |
492 (define-key map "\e\C-q" 'indent-pp-sexp) | 492 (define-key map "\e\C-q" 'indent-pp-sexp) |
493 (define-key map "\e\t" 'lisp-complete-symbol) | 493 (define-key map "\e\t" 'lisp-complete-symbol) |
494 (define-key map "\n" 'eval-print-last-sexp) | 494 (define-key map "\n" 'eval-print-last-sexp) |
495 (define-key map [menu-bar lisp-interaction] (cons "Lisp-Interaction" menu-map)) | 495 (define-key map [menu-bar lisp-interaction] (cons "Lisp-Interaction" menu-map)) |
496 (define-key menu-map [eval-defun] | 496 (define-key menu-map [eval-defun] |
497 '(menu-item "Evaluate Defun" eval-defun | 497 '(menu-item "Evaluate Defun" eval-defun |
498 :help "Evaluate the top-level form containing point, or after point")) | 498 :help "Evaluate the top-level form containing point, or after point")) |
499 (define-key menu-map [eval-print-last-sexp] | 499 (define-key menu-map [eval-print-last-sexp] |
500 '(menu-item "Evaluate and print" eval-print-last-sexp | 500 '(menu-item "Evaluate and print" eval-print-last-sexp |
501 :help "Evaluate sexp before point; print value into current buffer")) | 501 :help "Evaluate sexp before point; print value into current buffer")) |
851 (unless (eq old-value new-value) | 851 (unless (eq old-value new-value) |
852 (setq debug-on-error new-value)) | 852 (setq debug-on-error new-value)) |
853 value))))) | 853 value))))) |
854 | 854 |
855 ;; May still be used by some external Lisp-mode variant. | 855 ;; May still be used by some external Lisp-mode variant. |
856 (define-obsolete-function-alias 'lisp-comment-indent 'comment-indent-default) | 856 (define-obsolete-function-alias 'lisp-comment-indent |
857 'comment-indent-default "22.1") | |
857 | 858 |
858 ;; This function just forces a more costly detection of comments (using | 859 ;; This function just forces a more costly detection of comments (using |
859 ;; parse-partial-sexp from beginning-of-defun). I.e. It avoids the problem of | 860 ;; parse-partial-sexp from beginning-of-defun). I.e. It avoids the problem of |
860 ;; taking a `;' inside a string started on another line for a comment starter. | 861 ;; taking a `;' inside a string started on another line for a comment starter. |
861 ;; Note: `newcomment' gets it right now since we set comment-use-global-state | 862 ;; Note: `newcomment' gets it right now since we set comment-use-global-state |