aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Steingold2001-01-12 18:07:31 +0000
committerSam Steingold2001-01-12 18:07:31 +0000
commitca2ddd8ed551b1ffb4ecc0142add2c642b79adce (patch)
treeaf42b8688e3c99075eddff14695708789999d9c5
parentb30623bee027d57e63925e8b0d00505bc07625ac (diff)
downloademacs-ca2ddd8ed551b1ffb4ecc0142add2c642b79adce.tar.gz
emacs-ca2ddd8ed551b1ffb4ecc0142add2c642b79adce.zip
(lisp-mode-shared-map): Bind `backspace' to `backward-delete-char-untabify'.
-rw-r--r--lisp/ChangeLog49
-rw-r--r--lisp/emacs-lisp/lisp-mode.el29
2 files changed, 42 insertions, 36 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index f49dcde765a..1fc654fc1a1 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12001-01-12 Sam Steingold <sds@gnu.org>
2
3 * emacs-lisp/lisp-mode.el (lisp-mode-shared-map): Bind `backspace'
4 to `backward-delete-char-untabify'.
5
12001-01-12 Dave Love <fx@gnu.org> 62001-01-12 Dave Love <fx@gnu.org>
2 7
3 * cus-edit.el (customize-menu-create): Fix the :filter following 8 * cus-edit.el (customize-menu-create): Fix the :filter following
@@ -64,7 +69,7 @@
64 69
652001-01-11 Richard M. Stallman <rms@gnu.org> 702001-01-11 Richard M. Stallman <rms@gnu.org>
66 71
67 * isearch.el (isearch-lazy-highlight-update): 72 * isearch.el (isearch-lazy-highlight-update):
68 Don't look for more potential matches once maximum is exceeded. 73 Don't look for more potential matches once maximum is exceeded.
69 Use overlays-in to check correctly for overlap with current match. 74 Use overlays-in to check correctly for overlap with current match.
70 Ignore empty matches. 75 Ignore empty matches.
@@ -315,7 +320,7 @@
315 320
3162001-01-08 Andre Spiegel <spiegel@gnu.org> 3212001-01-08 Andre Spiegel <spiegel@gnu.org>
317 322
318 * vc.el (vc-default-latest-on-branch-p): New function, replaces 323 * vc.el (vc-default-latest-on-branch-p): New function, replaces
319 constant implementations in backends. 324 constant implementations in backends.
320 325
321 * vc-cvs.el (vc-cvs-latest-on-branch-p): Removed. 326 * vc-cvs.el (vc-cvs-latest-on-branch-p): Removed.
@@ -358,7 +363,7 @@
358 recognized.) Embed Window Manager name into name of the generated 363 recognized.) Embed Window Manager name into name of the generated
359 EDT Emulation initialization file since the initialization file is 364 EDT Emulation initialization file since the initialization file is
360 Window Manager specific. Add Commentary section to file header. 365 Window Manager specific. Add Commentary section to file header.
361 366
3622001-01-07 Eli Zaretskii <eliz@is.elta.co.il> 3672001-01-07 Eli Zaretskii <eliz@is.elta.co.il>
363 368
364 * mail/sendmail.el (mail-mode): Doc fix. 369 * mail/sendmail.el (mail-mode): Doc fix.
@@ -412,7 +417,7 @@
412 417
4132001-01-04 Gerd Moellmann <gerd@gnu.org> 4182001-01-04 Gerd Moellmann <gerd@gnu.org>
414 419
415 * tooltip.el (tooltip-cancel-delayed-tip) 420 * tooltip.el (tooltip-cancel-delayed-tip)
416 (tooltip-start-delayed-tip): Renamed from tooltip-disable-timeout 421 (tooltip-start-delayed-tip): Renamed from tooltip-disable-timeout
417 and tooltip-add-timeout. 422 and tooltip-add-timeout.
418 (tooltip-show): Set border color from faces's foreground. 423 (tooltip-show): Set border color from faces's foreground.
@@ -535,7 +540,7 @@
535 (ps-setup, ps-prologue-file, ps-begin-job, ps-begin-page) 540 (ps-setup, ps-prologue-file, ps-begin-job, ps-begin-page)
536 (ps-next-line, ps-continue-line, ps-plot-region) 541 (ps-next-line, ps-continue-line, ps-plot-region)
537 (ps-generate-postscript-with-faces, ps-end-job): Code fix. 542 (ps-generate-postscript-with-faces, ps-end-job): Code fix.
538 543
5392000-12-29 Kenichi Handa <handa@etl.go.jp> 5442000-12-29 Kenichi Handa <handa@etl.go.jp>
540 545
541 * international/fontset.el (x-complement-fontset-spec): Resolve 546 * international/fontset.el (x-complement-fontset-spec): Resolve
@@ -551,7 +556,7 @@
551 556
5522000-12-28 Richard M. Stallman <rms@gnu.org> 5572000-12-28 Richard M. Stallman <rms@gnu.org>
553 558
554 * dired-x.el (dired-guess-shell-alist-default): 559 * dired-x.el (dired-guess-shell-alist-default):
555 Use xpdf instead of acroread. 560 Use xpdf instead of acroread.
556 561
5572000-12-28 Kenichi Handa <handa@etl.go.jp> 5622000-12-28 Kenichi Handa <handa@etl.go.jp>
@@ -571,7 +576,7 @@
571 * ls-lisp.el: Better support for the Mac and MS-Windows. 576 * ls-lisp.el: Better support for the Mac and MS-Windows.
572 (ls-lisp): New defgroup. 577 (ls-lisp): New defgroup.
573 (ls-lisp-emulation, ls-lisp-ignore-case, ls-lisp-dirs-first) 578 (ls-lisp-emulation, ls-lisp-ignore-case, ls-lisp-dirs-first)
574 (ls-lisp-verbosity, ls-lisp-use-insert-directory-program) 579 (ls-lisp-verbosity, ls-lisp-use-insert-directory-program)
575 (ls-lisp-support-shell-wildcards): New defcustoms. 580 (ls-lisp-support-shell-wildcards): New defcustoms.
576 (ls-lisp-parse-symlink): New function. 581 (ls-lisp-parse-symlink): New function.
577 (insert-directory): Code to convert switches to a list and set up 582 (insert-directory): Code to convert switches to a list and set up
@@ -579,7 +584,7 @@
579 (ls-lisp-insert-directory): New argument TIME-INDEX. Add support 584 (ls-lisp-insert-directory): New argument TIME-INDEX. Add support
580 for -C and -R switches. 585 for -C and -R switches.
581 (ls-lisp-column-format): New function. 586 (ls-lisp-column-format): New function.
582 (ls-lisp-delete-matching, ls-lisp-handle-switches) 587 (ls-lisp-delete-matching, ls-lisp-handle-switches)
583 (ls-lisp-format-time): Add doc strings. 588 (ls-lisp-format-time): Add doc strings.
584 (ls-lisp-handle-switches): Handle -U, -S, -X, and -F switches. 589 (ls-lisp-handle-switches): Handle -U, -S, -X, and -F switches.
585 Support ls-lisp-dirs-first. 590 Support ls-lisp-dirs-first.
@@ -611,19 +616,19 @@
611 characters to 'term-send-raw in term-raw-map. 616 characters to 'term-send-raw in term-raw-map.
612 617
6132000-12-25 Michael Kifer <kifer@cs.sunysb.edu> 6182000-12-25 Michael Kifer <kifer@cs.sunysb.edu>
614 619
615 * viper-init (viper-restore-cursor-type): Added condition-case 620 * viper-init (viper-restore-cursor-type): Added condition-case
616 guard. 621 guard.
617 622
618 * ediff-init.el (ediff-quit-hook,ediff-suspend-hook): Changed 623 * ediff-init.el (ediff-quit-hook,ediff-suspend-hook): Changed
619 initialization; use add-hook. 624 initialization; use add-hook.
620 (ediff-file-remote-p): Use file-local-copy. 625 (ediff-file-remote-p): Use file-local-copy.
621 626
622 * ediff-ptch.el (ediff-prompt-for-patch-buffer): Improved defaults. 627 * ediff-ptch.el (ediff-prompt-for-patch-buffer): Improved defaults.
623 628
624 * ediff.el (ediff-patch-buffer): Bug fix. 629 * ediff.el (ediff-patch-buffer): Bug fix.
625 (ediff-revision): Allow selection of the file at the prompt. 630 (ediff-revision): Allow selection of the file at the prompt.
626 631
6272000-12-23 Stefan Monnier <monnier@cs.yale.edu> 6322000-12-23 Stefan Monnier <monnier@cs.yale.edu>
628 633
629 * subr.el (combine-run-hooks): Remove. 634 * subr.el (combine-run-hooks): Remove.
@@ -697,7 +702,7 @@
6972000-12-21 Dave Pearson <davep@davep.org> 7022000-12-21 Dave Pearson <davep@davep.org>
698 703
699 * quickurl.el: Commentry change, I've moved my web site. 704 * quickurl.el: Commentry change, I've moved my web site.
700 705
7012000-12-21 Vinicius Jose Latorre <vinicius@cpqd.com.br> 7062000-12-21 Vinicius Jose Latorre <vinicius@cpqd.com.br>
702 707
703 * ebnf2ps.el: Fix a problem with skip-chars-forward: it doesn't accept 708 * ebnf2ps.el: Fix a problem with skip-chars-forward: it doesn't accept
@@ -723,12 +728,12 @@
723 entry. Doc fix. 728 entry. Doc fix.
724 (ebnf-yac-skip-code): Code fix. 729 (ebnf-yac-skip-code): Code fix.
725 (ebnf-yac-comment-chars): Const fix. 730 (ebnf-yac-comment-chars): Const fix.
726 731
7272000-12-21 Eli Zaretskii <eliz@is.elta.co.il> 7322000-12-21 Eli Zaretskii <eliz@is.elta.co.il>
728 733
729 * files.el (insert-directory-safely): New function. 734 * files.el (insert-directory-safely): New function.
730 (recover-file): Use it instead of insert-directory. From Markus 735 (recover-file): Use it instead of insert-directory. From Markus
731 Rost <markus.rost@mathematik.uni-regensburg.de> 736 Rost <markus.rost@mathematik.uni-regensburg.de>
732 737
7332000-12-21 Kenichi Handa <handa@etl.go.jp> 7382000-12-21 Kenichi Handa <handa@etl.go.jp>
734 739
@@ -839,7 +844,7 @@
839 844
840 * image-file.el (image-file-name-extensions): Add "pgm" and "ppm". 845 * image-file.el (image-file-name-extensions): Add "pgm" and "ppm".
841 846
842 * textmodes/artist.el (artist-replace-chars, artist-replace-char): 847 * textmodes/artist.el (artist-replace-chars, artist-replace-char):
843 Check that emacs-major-version is `=' to 20, not `>='. 848 Check that emacs-major-version is `=' to 20, not `>='.
844 (artist-replace-chars): Use `make-string' instead of a loop. 849 (artist-replace-chars): Use `make-string' instead of a loop.
845 850
@@ -915,7 +920,7 @@
915 notation, and at least will yield a better error message). 920 notation, and at least will yield a better error message).
916 921
917 * window.el (mode-line-window-height-fudge): Function removed. 922 * window.el (mode-line-window-height-fudge): Function removed.
918 (height-affecting-face-attributes, mode-line-window-height-fudge): 923 (height-affecting-face-attributes, mode-line-window-height-fudge):
919 Variables removed. 924 Variables removed.
920 * textmodes/ispell.el (ispell-overlay-window): Ensure that the new 925 * textmodes/ispell.el (ispell-overlay-window): Ensure that the new
921 window is really the right size. Use vertical-motion 926 window is really the right size. Use vertical-motion
@@ -925,7 +930,7 @@
925 ispell-choices-win-default-height, rather than the function. 930 ispell-choices-win-default-height, rather than the function.
926 (ispell-choices-win-default-height): Function removed. 931 (ispell-choices-win-default-height): Function removed.
927 (ispell-mode-line-window-height-fudge): Function removed. 932 (ispell-mode-line-window-height-fudge): Function removed.
928 933
9292000-12-14 Stefan Monnier <monnier@cs.yale.edu> 9342000-12-14 Stefan Monnier <monnier@cs.yale.edu>
930 935
931 * add-log.el (add-change-log-entry): Only expand-file-name if non-nil. 936 * add-log.el (add-change-log-entry): Only expand-file-name if non-nil.
@@ -973,7 +978,7 @@
973 * tooltip.el (tooltip-show): If an error is signaled in 978 * tooltip.el (tooltip-show): If an error is signaled in
974 x-show-tip, display that error, and display the help in the 979 x-show-tip, display that error, and display the help in the
975 echo area. 980 echo area.
976 981
9772000-12-14 Kenichi Handa <handa@etl.go.jp> 9822000-12-14 Kenichi Handa <handa@etl.go.jp>
978 983
979 * international/ja-dic-cnv.el (skkdic-set-okuri-nasi): Show 984 * international/ja-dic-cnv.el (skkdic-set-okuri-nasi): Show
@@ -1064,7 +1069,7 @@
1064 * obsolete/c-mode.el: Moved from lisp/progmodes. 1069 * obsolete/c-mode.el: Moved from lisp/progmodes.
1065 * obsolete/auto-show.el: Moved from lisp. 1070 * obsolete/auto-show.el: Moved from lisp.
1066 * obsolete/ooutline.el: Moved from lisp/textmodes. 1071 * obsolete/ooutline.el: Moved from lisp/textmodes.
1067 1072
10682000-12-11 Carsten Dominik <dominik@strw.leidenuniv.nl> 10732000-12-11 Carsten Dominik <dominik@strw.leidenuniv.nl>
1069 1074
1070 * progmodes/idlwave.el: Updated to IDLWAVE version 4.7. Too many 1075 * progmodes/idlwave.el: Updated to IDLWAVE version 4.7. Too many
@@ -1083,7 +1088,7 @@
1083 * simple.el (kill-new): Don't try to setcar kill-ring if it is 1088 * simple.el (kill-new): Don't try to setcar kill-ring if it is
1084 nil. 1089 nil.
1085 1090
1086 * cus-edit.el (custom-save-variables, custom-save-faces): 1091 * cus-edit.el (custom-save-variables, custom-save-faces):
1087 Comment fix. 1092 Comment fix.
1088 1093
1089 * hscroll.el: Moved to `obsolete' subdir. 1094 * hscroll.el: Moved to `obsolete' subdir.
diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el
index d788404c47f..b457fa624f0 100644
--- a/lisp/emacs-lisp/lisp-mode.el
+++ b/lisp/emacs-lisp/lisp-mode.el
@@ -82,15 +82,15 @@
82 82
83(defvar lisp-imenu-generic-expression 83(defvar lisp-imenu-generic-expression
84 (list 84 (list
85 (list nil 85 (list nil
86 (purecopy "^\\s-*(def\\(un\\*?\\|subst\\|macro\\|advice\\|\ 86 (purecopy "^\\s-*(def\\(un\\*?\\|subst\\|macro\\|advice\\|\
87ine-skeleton\\|ine-minor-mode\\)\\s-+\\(\\sw\\(\\sw\\|\\s_\\)+\\)") 2) 87ine-skeleton\\|ine-minor-mode\\)\\s-+\\(\\sw\\(\\sw\\|\\s_\\)+\\)") 2)
88 (list (purecopy "Variables") 88 (list (purecopy "Variables")
89 (purecopy "^\\s-*(def\\(var\\|const\\|custom\\)\\s-+\ 89 (purecopy "^\\s-*(def\\(var\\|const\\|custom\\)\\s-+\
90\\(\\sw\\(\\sw\\|\\s_\\)+\\)") 2) 90\\(\\sw\\(\\sw\\|\\s_\\)+\\)") 2)
91 (list (purecopy "Types") 91 (list (purecopy "Types")
92 (purecopy "^\\s-*(def\\(group\\|type\\|struct\\|class\\|\ 92 (purecopy "^\\s-*(def\\(group\\|type\\|struct\\|class\\|\
93ine-condition\\|ine-widget\\|face\\)\\s-+'?\\(\\sw\\(\\sw\\|\\s_\\)+\\)") 93ine-condition\\|ine-widget\\|face\\)\\s-+'?\\(\\sw\\(\\sw\\|\\s_\\)+\\)")
94 2)) 94 2))
95 95
96 "Imenu generic expression for Lisp mode. See `imenu-generic-expression'.") 96 "Imenu generic expression for Lisp mode. See `imenu-generic-expression'.")
@@ -153,11 +153,12 @@ ine-condition\\|ine-widget\\|face\\)\\s-+'?\\(\\sw\\(\\sw\\|\\s_\\)+\\)")
153 (looking-at outline-regexp) 153 (looking-at outline-regexp)
154 (- (match-end 0) (match-beginning 0)))) 154 (- (match-end 0) (match-beginning 0))))
155 155
156 156
157(defvar lisp-mode-shared-map 157(defvar lisp-mode-shared-map
158 (let ((map (make-sparse-keymap))) 158 (let ((map (make-sparse-keymap)))
159 (define-key map "\e\C-q" 'indent-sexp) 159 (define-key map "\e\C-q" 'indent-sexp)
160 (define-key map "\177" 'backward-delete-char-untabify) 160 (define-key map "\177" 'backward-delete-char-untabify)
161 (define-key map [backspace] 'backward-delete-char-untabify)
161 map) 162 map)
162 "Keymap for commands shared by all sorts of Lisp modes.") 163 "Keymap for commands shared by all sorts of Lisp modes.")
163 164
@@ -306,7 +307,7 @@ if that value is non-nil.")
306 (terpri) 307 (terpri)
307 (eval-last-sexp t) 308 (eval-last-sexp t)
308 (terpri))) 309 (terpri)))
309 310
310(defun eval-last-sexp-1 (eval-last-sexp-arg-internal) 311(defun eval-last-sexp-1 (eval-last-sexp-arg-internal)
311 "Evaluate sexp before point; print value in minibuffer. 312 "Evaluate sexp before point; print value in minibuffer.
312With argument, print output into current buffer." 313With argument, print output into current buffer."
@@ -331,7 +332,7 @@ With argument, print output into current buffer."
331 (forward-char -1) 332 (forward-char -1)
332 (when (eq (preceding-char) ??) 333 (when (eq (preceding-char) ??)
333 (forward-char -1))) 334 (forward-char -1)))
334 335
335 ;; Skip over `#N='s. 336 ;; Skip over `#N='s.
336 (when (eq (preceding-char) ?=) 337 (when (eq (preceding-char) ?=)
337 (let (labeled-p) 338 (let (labeled-p)
@@ -344,7 +345,7 @@ With argument, print output into current buffer."
344 (save-restriction 345 (save-restriction
345 ;; vladimir@cs.ualberta.ca 30-Jul-1997: skip ` in 346 ;; vladimir@cs.ualberta.ca 30-Jul-1997: skip ` in
346 ;; `variable' so that the value is returned, not the 347 ;; `variable' so that the value is returned, not the
347 ;; name 348 ;; name
348 (if (and ignore-quotes 349 (if (and ignore-quotes
349 (eq (following-char) ?`)) 350 (eq (following-char) ?`))
350 (forward-char)) 351 (forward-char))
@@ -381,7 +382,7 @@ With argument, print output into current buffer."
381 (unless (eq old-value new-value) 382 (unless (eq old-value new-value)
382 (setq debug-on-error new-value)) 383 (setq debug-on-error new-value))
383 value))) 384 value)))
384 385
385(defun eval-defun-1 (form) 386(defun eval-defun-1 (form)
386 "Change defvar into defconst within FORM. 387 "Change defvar into defconst within FORM.
387Likewise for other constructs as necessary." 388Likewise for other constructs as necessary."
@@ -423,7 +424,7 @@ Return the result of evaluation."
423 ;; variable. Re-written using `apply' to avoid capturing 424 ;; variable. Re-written using `apply' to avoid capturing
424 ;; variables like `end'. 425 ;; variables like `end'.
425 (apply 426 (apply
426 #'eval-region 427 #'eval-region
427 (let ((standard-output t) 428 (let ((standard-output t)
428 beg end form) 429 beg end form)
429 ;; Read the form from the buffer, and record where it ends. 430 ;; Read the form from the buffer, and record where it ends.
@@ -475,7 +476,7 @@ the minibuffer."
475 (setq debug-on-error new-value)) 476 (setq debug-on-error new-value))
476 value))))) 477 value)))))
477 478
478 479
479(defun lisp-comment-indent () 480(defun lisp-comment-indent ()
480 (if (looking-at "\\s<\\s<\\s<") 481 (if (looking-at "\\s<\\s<\\s<")
481 (current-column) 482 (current-column)
@@ -733,7 +734,7 @@ is the buffer position of the start of the containing expression."
733 (goto-char (car (cdr state))) 734 (goto-char (car (cdr state)))
734 (+ lisp-body-indent (current-column))))) 735 (+ lisp-body-indent (current-column)))))
735 736
736 737
737;; (put 'progn 'lisp-indent-function 0), say, causes progn to be indented 738;; (put 'progn 'lisp-indent-function 0), say, causes progn to be indented
738;; like defun if the first form is placed on the next line, otherwise 739;; like defun if the first form is placed on the next line, otherwise
739;; it is indented like any other form (i.e. forms line up under first). 740;; it is indented like any other form (i.e. forms line up under first).
@@ -876,7 +877,7 @@ ENDPOS is encountered."
876 (lisp-indent-line)) 877 (lisp-indent-line))
877 (indent-sexp endmark) 878 (indent-sexp endmark)
878 (set-marker endmark nil)))) 879 (set-marker endmark nil))))
879 880
880;;;; Lisp paragraph filling commands. 881;;;; Lisp paragraph filling commands.
881 882
882(defun lisp-fill-paragraph (&optional justify) 883(defun lisp-fill-paragraph (&optional justify)
@@ -986,7 +987,7 @@ and initial semicolons."
986 (re-search-forward comment-start-skip) 987 (re-search-forward comment-start-skip)
987 (point)))))))) 988 (point))))))))
988 t)) 989 t))
989 990
990(defun indent-code-rigidly (start end arg &optional nochange-regexp) 991(defun indent-code-rigidly (start end arg &optional nochange-regexp)
991 "Indent all lines of code, starting in the region, sideways by ARG columns. 992 "Indent all lines of code, starting in the region, sideways by ARG columns.
992Does not affect lines starting inside comments or strings, assuming that 993Does not affect lines starting inside comments or strings, assuming that