Mercurial > emacs
comparison lisp/emacs-lisp/lisp-mode.el @ 105765:db5e4a5897ec
* textmodes/tex-mode.el (tex-dvi-view-command)
(tex-show-queue-command, tex-open-quote):
* progmodes/ruby-mode.el (auto-mode-alist)
(interpreter-mode-alist): Purecopy strings.
* emacs-lisp/lisp-mode.el (emacs-lisp-mode-map): Purecopy item names.
* emacs-lisp/derived.el (define-derived-mode): Purecopy the doc
string for the hook, keymap and abbrev table.
* emacs-lisp/byte-run.el (make-obsolete): Purecopy the current name.
* x-dnd.el (x-dnd-xdnd-to-action):
* startup.el (fancy-startup-text, fancy-about-text): Change to
defconst from defvar.
* ps-print.el (ps-page-dimensions-database): Purecopy initial value.
* mouse.el (mouse-buffer-menu-mode-groups, x-fixed-font-alist):
Purecopy initialization strings.
* mail/sendmail.el (mail-header-separator)
(mail-personal-alias-file):
* mail/rmail.el (rmail-default-dont-reply-to-names)
(rmail-ignored-headers, rmail-retry-ignored-headers)
(rmail-highlighted-headers, rmail-secondary-file-directory)
(rmail-secondary-file-regexp):
* files.el (null-device, file-name-invalid-regexp)
(locate-dominating-stop-dir-regexp)
(inhibit-first-line-modes-regexps): Purecopy initialization
strings.
(interpreter-mode-alist): Use mapcar instead of mapc.
* buff-menu.el (Buffer-menu-mode-map): Purecopy name.
* bindings.el (mode-line-major-mode-keymap): Purecopy name.
(completion-ignored-extensions):
(debug-ignored-errors): Purecopy strings.
author | Dan Nicolaescu <dann@ics.uci.edu> |
---|---|
date | Mon, 26 Oct 2009 06:43:36 +0000 |
parents | b0a732611398 |
children | 26baacb565b0 |
comparison
equal
deleted
inserted
replaced
105764:a5db863758a8 | 105765:db5e4a5897ec |
---|---|
281 (tracing-map (make-sparse-keymap))) | 281 (tracing-map (make-sparse-keymap))) |
282 (set-keymap-parent map lisp-mode-shared-map) | 282 (set-keymap-parent map lisp-mode-shared-map) |
283 (define-key map "\e\t" 'lisp-complete-symbol) | 283 (define-key map "\e\t" 'lisp-complete-symbol) |
284 (define-key map "\e\C-x" 'eval-defun) | 284 (define-key map "\e\C-x" 'eval-defun) |
285 (define-key map "\e\C-q" 'indent-pp-sexp) | 285 (define-key map "\e\C-q" 'indent-pp-sexp) |
286 (define-key map [menu-bar emacs-lisp] (cons "Emacs-Lisp" menu-map)) | 286 (define-key map [menu-bar emacs-lisp] (cons (purecopy "Emacs-Lisp") menu-map)) |
287 (define-key menu-map [eldoc] | 287 (define-key menu-map [eldoc] |
288 `(menu-item ,(purecopy "Auto-Display Documentation Strings") eldoc-mode | 288 `(menu-item ,(purecopy "Auto-Display Documentation Strings") eldoc-mode |
289 :button (:toggle . (bound-and-true-p eldoc-mode)) | 289 :button (:toggle . (bound-and-true-p eldoc-mode)) |
290 :help ,(purecopy "Display the documentation string for the item under cursor"))) | 290 :help ,(purecopy "Display the documentation string for the item under cursor"))) |
291 (define-key menu-map [checkdoc] | 291 (define-key menu-map [checkdoc] |
292 `(menu-item ,(purecopy "Check Documentation Strings") checkdoc | 292 `(menu-item ,(purecopy "Check Documentation Strings") checkdoc |
293 :help ,(purecopy "Check documentation strings for style requirements"))) | 293 :help ,(purecopy "Check documentation strings for style requirements"))) |
294 (define-key menu-map [re-builder] | 294 (define-key menu-map [re-builder] |
295 `(menu-item ,(purecopy "Construct Regexp") re-builder | 295 `(menu-item ,(purecopy "Construct Regexp") re-builder |
296 :help ,(purecopy "Construct a regexp interactively"))) | 296 :help ,(purecopy "Construct a regexp interactively"))) |
297 (define-key menu-map [tracing] (cons "Tracing" tracing-map)) | 297 (define-key menu-map [tracing] (cons (purecopy "Tracing") tracing-map)) |
298 (define-key tracing-map [tr-a] | 298 (define-key tracing-map [tr-a] |
299 `(menu-item ,(purecopy "Untrace all") untrace-all | 299 `(menu-item ,(purecopy "Untrace all") untrace-all |
300 :help ,(purecopy "Untrace all currently traced functions"))) | 300 :help ,(purecopy "Untrace all currently traced functions"))) |
301 (define-key tracing-map [tr-uf] | 301 (define-key tracing-map [tr-uf] |
302 `(menu-item ,(purecopy "Untrace function...") untrace-function | 302 `(menu-item ,(purecopy "Untrace function...") untrace-function |
306 `(menu-item ,(purecopy "Trace function quietly...") trace-function-background | 306 `(menu-item ,(purecopy "Trace function quietly...") trace-function-background |
307 :help ,(purecopy "Trace the function with trace output going quietly to a buffer"))) | 307 :help ,(purecopy "Trace the function with trace output going quietly to a buffer"))) |
308 (define-key tracing-map [tr-f] | 308 (define-key tracing-map [tr-f] |
309 `(menu-item ,(purecopy "Trace function...") trace-function | 309 `(menu-item ,(purecopy "Trace function...") trace-function |
310 :help ,(purecopy "Trace the function given as an argument"))) | 310 :help ,(purecopy "Trace the function given as an argument"))) |
311 (define-key menu-map [profiling] (cons "Profiling" prof-map)) | 311 (define-key menu-map [profiling] (cons (purecopy "Profiling") prof-map)) |
312 (define-key prof-map [prof-restall] | 312 (define-key prof-map [prof-restall] |
313 `(menu-item ,(purecopy "Remove Instrumentation for All Functions") elp-restore-all | 313 `(menu-item ,(purecopy "Remove Instrumentation for All Functions") elp-restore-all |
314 :help ,(purecopy "Restore the original definitions of all functions being profiled"))) | 314 :help ,(purecopy "Restore the original definitions of all functions being profiled"))) |
315 (define-key prof-map [prof-restfunc] | 315 (define-key prof-map [prof-restfunc] |
316 `(menu-item ,(purecopy "Remove Instrumentation for Function...") elp-restore-function | 316 `(menu-item ,(purecopy "Remove Instrumentation for Function...") elp-restore-function |
330 `(menu-item ,(purecopy "Instrument Package...") elp-instrument-package | 330 `(menu-item ,(purecopy "Instrument Package...") elp-instrument-package |
331 :help ,(purecopy "Instrument for profiling all function that start with a prefix"))) | 331 :help ,(purecopy "Instrument for profiling all function that start with a prefix"))) |
332 (define-key prof-map [prof-func] | 332 (define-key prof-map [prof-func] |
333 `(menu-item ,(purecopy "Instrument Function...") elp-instrument-function | 333 `(menu-item ,(purecopy "Instrument Function...") elp-instrument-function |
334 :help ,(purecopy "Instrument a function for profiling"))) | 334 :help ,(purecopy "Instrument a function for profiling"))) |
335 (define-key menu-map [lint] (cons "Linting" lint-map)) | 335 (define-key menu-map [lint] (cons (purecopy "Linting") lint-map)) |
336 (define-key lint-map [lint-di] | 336 (define-key lint-map [lint-di] |
337 `(menu-item ,(purecopy "Lint Directory...") elint-directory | 337 `(menu-item ,(purecopy "Lint Directory...") elint-directory |
338 :help ,(purecopy "Lint a directory"))) | 338 :help ,(purecopy "Lint a directory"))) |
339 (define-key lint-map [lint-f] | 339 (define-key lint-map [lint-f] |
340 `(menu-item ,(purecopy "Lint File...") elint-file | 340 `(menu-item ,(purecopy "Lint File...") elint-file |
454 (let ((map (make-sparse-keymap)) | 454 (let ((map (make-sparse-keymap)) |
455 (menu-map (make-sparse-keymap "Lisp"))) | 455 (menu-map (make-sparse-keymap "Lisp"))) |
456 (set-keymap-parent map lisp-mode-shared-map) | 456 (set-keymap-parent map lisp-mode-shared-map) |
457 (define-key map "\e\C-x" 'lisp-eval-defun) | 457 (define-key map "\e\C-x" 'lisp-eval-defun) |
458 (define-key map "\C-c\C-z" 'run-lisp) | 458 (define-key map "\C-c\C-z" 'run-lisp) |
459 (define-key map [menu-bar lisp] (cons "Lisp" menu-map)) | 459 (define-key map [menu-bar lisp] (cons (purecopy "Lisp") menu-map)) |
460 (define-key menu-map [run-lisp] | 460 (define-key menu-map [run-lisp] |
461 `(menu-item ,(purecopy "Run inferior Lisp") run-lisp | 461 `(menu-item ,(purecopy "Run inferior Lisp") run-lisp |
462 :help ,(purecopy "Run an inferior Lisp process, input and output via buffer `*inferior-lisp*'"))) | 462 :help ,(purecopy "Run an inferior Lisp process, input and output via buffer `*inferior-lisp*'"))) |
463 (define-key menu-map [ev-def] | 463 (define-key menu-map [ev-def] |
464 `(menu-item ,(purecopy "Eval defun") lisp-eval-defun | 464 `(menu-item ,(purecopy "Eval defun") lisp-eval-defun |
518 (set-keymap-parent map lisp-mode-shared-map) | 518 (set-keymap-parent map lisp-mode-shared-map) |
519 (define-key map "\e\C-x" 'eval-defun) | 519 (define-key map "\e\C-x" 'eval-defun) |
520 (define-key map "\e\C-q" 'indent-pp-sexp) | 520 (define-key map "\e\C-q" 'indent-pp-sexp) |
521 (define-key map "\e\t" 'lisp-complete-symbol) | 521 (define-key map "\e\t" 'lisp-complete-symbol) |
522 (define-key map "\n" 'eval-print-last-sexp) | 522 (define-key map "\n" 'eval-print-last-sexp) |
523 (define-key map [menu-bar lisp-interaction] (cons "Lisp-Interaction" menu-map)) | 523 (define-key map [menu-bar lisp-interaction] (cons (purecopy "Lisp-Interaction") menu-map)) |
524 (define-key menu-map [eval-defun] | 524 (define-key menu-map [eval-defun] |
525 `(menu-item ,(purecopy "Evaluate Defun") eval-defun | 525 `(menu-item ,(purecopy "Evaluate Defun") eval-defun |
526 :help ,(purecopy "Evaluate the top-level form containing point, or after point"))) | 526 :help ,(purecopy "Evaluate the top-level form containing point, or after point"))) |
527 (define-key menu-map [eval-print-last-sexp] | 527 (define-key menu-map [eval-print-last-sexp] |
528 `(menu-item ,(purecopy "Evaluate and print") eval-print-last-sexp | 528 `(menu-item ,(purecopy "Evaluate and print") eval-print-last-sexp |