aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/progmodes/sh-script.el55
2 files changed, 29 insertions, 29 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index e47360b6cfc..1f74b3b2d1f 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12013-10-13 Glenn Morris <rgm@gnu.org> 12013-10-13 Glenn Morris <rgm@gnu.org>
2 2
3 * progmodes/sh-script.el (sh-mark-line, sh-learn-buffer-indent):
4 Occur buffers are read-only. http://bugs.debian.org/720775
5
3 * emacs-lisp/authors.el (authors-fixed-entries): 6 * emacs-lisp/authors.el (authors-fixed-entries):
4 Comment out old alpha stuff. 7 Comment out old alpha stuff.
5 8
diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el
index dfd3fc0026c..ec73a06955c 100644
--- a/lisp/progmodes/sh-script.el
+++ b/lisp/progmodes/sh-script.el
@@ -3438,26 +3438,23 @@ so that `occur-next' and `occur-prev' will work."
3438 ) 3438 )
3439 (goto-char (point-max)) 3439 (goto-char (point-max))
3440 (setq start (point)) 3440 (setq start (point))
3441 (insert line) 3441 (let ((inhibit-read-only t))
3442 (if occur-point 3442 (insert line)
3443 (setq occur-point (point))) 3443 (if occur-point
3444 (insert message) 3444 (setq occur-point (point)))
3445 (if point 3445 (insert message)
3446 (add-text-properties 3446 (if point
3447 start (point) 3447 (add-text-properties
3448 '(mouse-face highlight 3448 start (point)
3449 help-echo "mouse-2: go to the line where I learned this"))) 3449 '(mouse-face highlight
3450 (insert "\n") 3450 help-echo "mouse-2: go to the line where I learned this")))
3451 (if point 3451 (insert "\n")
3452 (progn 3452 (when point
3453 (put-text-property start (point) 'occur-target m1) 3453 (put-text-property start (point) 'occur-target m1)
3454 (if occur-point 3454 (if occur-point
3455 (put-text-property start occur-point 3455 (put-text-property start occur-point
3456 'occur-match t)) 3456 'occur-match t))
3457 )) 3457 )))))
3458 )))
3459
3460
3461 3458
3462;; Is this really worth having? 3459;; Is this really worth having?
3463(defvar sh-learned-buffer-hook nil 3460(defvar sh-learned-buffer-hook nil
@@ -3689,15 +3686,15 @@ This command can often take a long time to run."
3689 (nth 2 learned-var) out-buffer))) 3686 (nth 2 learned-var) out-buffer)))
3690 (with-current-buffer out-buffer 3687 (with-current-buffer out-buffer
3691 (goto-char (point-min)) 3688 (goto-char (point-min))
3692 (insert 3689 (let ((inhibit-read-only t))
3693 (format "Indentation values for buffer %s.\n" name) 3690 (insert
3694 (format "%d indentation variable%s different values%s\n\n" 3691 (format "Indentation values for buffer %s.\n" name)
3695 num-diffs 3692 (format "%d indentation variable%s different values%s\n\n"
3696 (if (= num-diffs 1) 3693 num-diffs
3697 " has" "s have") 3694 (if (= num-diffs 1)
3698 (if (zerop num-diffs) 3695 " has" "s have")
3699 "." ":")) 3696 (if (zerop num-diffs)
3700 ))) 3697 "." ":"))))))
3701 ;; Are abnormal hooks considered bad form? 3698 ;; Are abnormal hooks considered bad form?
3702 (run-hook-with-args 'sh-learned-buffer-hook learned-var-list) 3699 (run-hook-with-args 'sh-learned-buffer-hook learned-var-list)
3703 (and (called-interactively-p 'any) 3700 (and (called-interactively-p 'any)