Commit a5d38e34 authored by Glenn Morris's avatar Glenn Morris

* lisp/progmodes/sh-script.el (sh-mark-line, sh-learn-buffer-indent):

Occur buffers are read-only.  http://bugs.debian.org/720775
parent 9148ee92
2013-10-13 Glenn Morris <rgm@gnu.org>
* progmodes/sh-script.el (sh-mark-line, sh-learn-buffer-indent):
Occur buffers are read-only. http://bugs.debian.org/720775
* emacs-lisp/authors.el (authors-fixed-entries):
Comment out old alpha stuff.
......
......@@ -3438,26 +3438,23 @@ so that `occur-next' and `occur-prev' will work."
)
(goto-char (point-max))
(setq start (point))
(insert line)
(if occur-point
(setq occur-point (point)))
(insert message)
(if point
(add-text-properties
start (point)
'(mouse-face highlight
help-echo "mouse-2: go to the line where I learned this")))
(insert "\n")
(if point
(progn
(put-text-property start (point) 'occur-target m1)
(if occur-point
(put-text-property start occur-point
'occur-match t))
))
)))
(let ((inhibit-read-only t))
(insert line)
(if occur-point
(setq occur-point (point)))
(insert message)
(if point
(add-text-properties
start (point)
'(mouse-face highlight
help-echo "mouse-2: go to the line where I learned this")))
(insert "\n")
(when point
(put-text-property start (point) 'occur-target m1)
(if occur-point
(put-text-property start occur-point
'occur-match t))
)))))
;; Is this really worth having?
(defvar sh-learned-buffer-hook nil
......@@ -3689,15 +3686,15 @@ This command can often take a long time to run."
(nth 2 learned-var) out-buffer)))
(with-current-buffer out-buffer
(goto-char (point-min))
(insert
(format "Indentation values for buffer %s.\n" name)
(format "%d indentation variable%s different values%s\n\n"
num-diffs
(if (= num-diffs 1)
" has" "s have")
(if (zerop num-diffs)
"." ":"))
)))
(let ((inhibit-read-only t))
(insert
(format "Indentation values for buffer %s.\n" name)
(format "%d indentation variable%s different values%s\n\n"
num-diffs
(if (= num-diffs 1)
" has" "s have")
(if (zerop num-diffs)
"." ":"))))))
;; Are abnormal hooks considered bad form?
(run-hook-with-args 'sh-learned-buffer-hook learned-var-list)
(and (called-interactively-p 'any)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment