GNU bug report logs -
#43460
26.3; Package install fails if read-only-mode hooked to find-file
Previous Next
Reported by: Pablo Aguado <aguadopd <at> hotmail.com>
Date: Wed, 16 Sep 2020 23:13:01 UTC
Severity: normal
Tags: fixed
Found in version 26.3
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 43460 in the body.
You can then email your comments to 43460 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#43460
; Package
emacs
.
(Wed, 16 Sep 2020 23:13:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Pablo Aguado <aguadopd <at> hotmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Wed, 16 Sep 2020 23:13:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
I have set the following to always open files in read-only-mode:
(add-hook 'find-file-hook 'read-only-mode)
When I tried to install a new package through package-install, I got
(buffer-read-only #<buffer adaptive-wrap-autoloads.el>)
In https://emacs.stackexchange.com/a/46655 I found a working solution
for someone else having the same problem,
that seems to be telling package-install to inhibit read-only-mode:
(advice-add
'package-install-from-archive
:around (lambda (orig-fun &rest args)
(let ((inhibit-read-only t))
(apply orig-fun args))))
This worked but I think the behavior I expected should be a default.
Thanks!
--------
In GNU Emacs 26.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20)
of 2020-05-19 built on felixonmars2
Windowing system distributor 'The X.Org Foundation', version 11.0.12008000
System Description: Manjaro Linux
Configured using:
'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib
--localstatedir=/var --with-x-toolkit=gtk3 --with-xft --with-wide-int
--with-modules 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt'
CPPFLAGS=-D_FORTIFY_SOURCE=2
LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now'
Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB
NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD LCMS2
Important settings:
value of $LC_MONETARY: es_AR.UTF-8
value of $LC_NUMERIC: es_AR.UTF-8
value of $LC_TIME: es_AR.UTF-8
value of $LANG: es_AR.utf8
locale-coding-system: utf-8-unix
Major mode: Emacs-Lisp
Minor modes in effect:
shell-dirtrack-mode: t
winner-mode: t
show-paren-mode: t
on-screen-global-mode: t
global-undo-tree-mode: t
undo-tree-mode: t
global-superword-mode: t
superword-mode: t
electric-pair-mode: t
display-battery-mode: t
tooltip-mode: t
global-eldoc-mode: t
eldoc-mode: t
electric-quote-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
global-visual-line-mode: t
visual-line-mode: t
transient-mark-mode: t
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#43460
; Package
emacs
.
(Thu, 17 Sep 2020 16:04:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 43460 <at> debbugs.gnu.org (full text, mbox):
Pablo Aguado <aguadopd <at> hotmail.com> writes:
> I have set the following to always open files in read-only-mode:
> (add-hook 'find-file-hook 'read-only-mode)
>
> When I tried to install a new package through package-install, I got
> (buffer-read-only #<buffer adaptive-wrap-autoloads.el>)
I've now made package install autoload generation ignore find-file-hook
in Emacs 28, which seems to fix the problem there.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Added tag(s) fixed.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Thu, 17 Sep 2020 16:04:02 GMT)
Full text and
rfc822 format available.
bug marked as fixed in version 28.1, send any further explanations to
43460 <at> debbugs.gnu.org and Pablo Aguado <aguadopd <at> hotmail.com>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Thu, 17 Sep 2020 16:04:03 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 16 Oct 2020 11:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 4 years and 249 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.