Package: emacs24-common
Version: 24.3+1-1.1
Severity: normal
sh-learn-buffer-indent run on a shell script buffer fails with:
sh-learn-buffer-indent: Buffer is read-only: #<buffer *indent*>
That's because buffer *indent* is a read-only occur-mode buffer,
created by function sh-mark-init (in sh-script.el), called from function
sh-learn-buffer-indent and being written to by function sh-mark-line.
This looks like like an upstream bug (Cc:ed).
I wrote a piece of advice that works around that problem:
(defadvice occur-mode (after occur-mode-buffer-writable activate)
"Make the *indent* buffer writable"
(if (string-equal "*indent*" (buffer-name))
(read-only-mode -1)))
Still, the proper solution would be to correct the code in sh-script.el.
I recall sh-learn-buffer-indent worked fine in emacs 23.4, but don't
take my word for it.
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.10-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Versions of packages emacs24-common depends on:
ii dpkg 1.17.1
ii emacsen-common 2.0.5
ii install-info 5.1.dfsg.1-4
emacs24-common recommends no packages.
Versions of packages emacs24-common suggests:
ii emacs24-common-non-dfsg 24.3+1-1
ii emacs24-el 24.3+1-1.1
-- no debconf information
--
Cristian
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]