From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pablo Aguado Newsgroups: gmane.emacs.bugs Subject: bug#43460: 26.3; Package install fails if read-only-mode hooked to find-file Date: Wed, 16 Sep 2020 21:57:00 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23644"; mail-complaints-to="usenet@ciao.gmane.io" To: 43460@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 17 01:13:10 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kIgbt-00061C-V6 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 17 Sep 2020 01:13:10 +0200 Original-Received: from localhost ([::1]:60484 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kIgbt-0003YS-0Y for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 16 Sep 2020 19:13:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36106) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kIgbm-0003WN-Gk for bug-gnu-emacs@gnu.org; Wed, 16 Sep 2020 19:13:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53561) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kIgbm-000525-6C for bug-gnu-emacs@gnu.org; Wed, 16 Sep 2020 19:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kIgbm-0006rb-2V for bug-gnu-emacs@gnu.org; Wed, 16 Sep 2020 19:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Pablo Aguado Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 16 Sep 2020 23:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 43460 X-GNU-PR-Package: emacs X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" Original-Received: via spool by submit@debbugs.gnu.org id=B.160029797726369 (code B ref -1); Wed, 16 Sep 2020 23:13:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Sep 2020 23:12:57 +0000 Original-Received: from localhost ([127.0.0.1]:36874 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kIgbg-0006rE-KW for submit@debbugs.gnu.org; Wed, 16 Sep 2020 19:12:57 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:48750) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kIfer-0005Ob-2f for submit@debbugs.gnu.org; Wed, 16 Sep 2020 18:12:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53886) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kIfeq-000747-3G for bug-gnu-emacs@gnu.org; Wed, 16 Sep 2020 18:12:08 -0400 Original-Received: from mail-dm6nam08olkn2072.outbound.protection.outlook.com ([40.92.45.72]:23904 helo=NAM04-DM6-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kIfen-0006Sd-H7 for bug-gnu-emacs@gnu.org; Wed, 16 Sep 2020 18:12:07 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XC2BY2ZroQcuftcrq3OTwJuY1ljWEQSYVLIeo+hzb5KyKkwoUI8H+0Qblz1wtdd7Sy4QPszwmZW6k8HSIFogFa4rs6D4KuIen/SLQ1/UtgHJxaOTgU/KTr3tjX4IFYsDtKUFkEFtxEqX/GX5bAmAUCSvZaDxNDVzO823VqCe3MNhRdbzBVNOUYfIhM9i4lua8MeMd4Q05RpKfLybnW9nO1I4SrO+qh4aMpGPv5yVCFO53SYPa/i6AxY1WH1zGTqCxwIL632JojdTSNTxR/kpcqllFBrwPIc9fG3cvQlA2cN4r5so7uG2viI3ANtbF/zMalKyeIGfgJ1QlA2s60C06w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AogQ2poiAKsPLzPfZkCJ6CNlEbrVmXJOmsuOfghlP/Y=; b=GqXpn/BgxwFN5QD/k3Omgk0pgRVP993rEM5rcM7UqGdnmCg8Cjdf2Cpc9nn2dPDI+cq8NBsH/XNtwI9pwKCRWG/LZUdLWK8KmUgix0BEDXecL9+6YkJ5NWFkS4h0CV3oRyogqvRdBGBuvLpoi3LBcyrMkNWDyCp6VpI3tTJVej9kJAgfMuLwFs6ZaDXnT6v+jY3tW7eY8wcGaa7mUfOQDz88wu94XPCNUNMufzFCQAhb//G/3Tqgm5jVUNzDkGyISWms5XLEpm47Txc7937F7Vk5JIdHNXLbd7xq9KmVJe1maPIylCad6QMROHwFzO6d0tlfHmNvUxQWF2RS6SGibg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AogQ2poiAKsPLzPfZkCJ6CNlEbrVmXJOmsuOfghlP/Y=; b=T4Yx8RkO+V73+2QAwP8FPcL8S5tS74gNOB3E6gHhmVQatfhGZXCRVWNQLXs1zf43bCU9yWDQ7sTa2CDdH45KcRVFZu6mecompAVKG1EFv9WTw3eS4XBsGaxF8eiKoTnmyLNp8dL5NP3PuUv2vMTjowudEw6cXpUipVrfgUT0hwt4VS7CU5GjUT0eOI0YneF7itNfp5pACvfqvKW3bnm0IjqGTG3ZQ+zw6M1bn2N72DY1aLfgv5CfHjE9o/sKcptlgewQqShxQpUj2xtSNsrgM0h6o08Y3UIJ5Bqb2SHAkguePf9hliDe+noSeZoE4K2hgjprgHUP4UpzeaVH+DECJg== Original-Received: from DM6NAM04FT064.eop-NAM04.prod.protection.outlook.com (2a01:111:e400:7ea3::50) by DM6NAM04HT033.eop-NAM04.prod.protection.outlook.com (2a01:111:e400:7ea3::368) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3370.16; Wed, 16 Sep 2020 21:57:00 +0000 Original-Received: from BL0PR05MB4595.namprd05.prod.outlook.com (2a01:111:e400:7ea3::4c) by DM6NAM04FT064.mail.protection.outlook.com (2a01:111:e400:7ea3::354) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3370.16 via Frontend Transport; Wed, 16 Sep 2020 21:57:00 +0000 Original-Received: from BL0PR05MB4595.namprd05.prod.outlook.com ([fe80::7d7a:5222:a73b:2b2b]) by BL0PR05MB4595.namprd05.prod.outlook.com ([fe80::7d7a:5222:a73b:2b2b%7]) with mapi id 15.20.3391.009; Wed, 16 Sep 2020 21:57:00 +0000 Thread-Topic: 26.3; Package install fails if read-only-mode hooked to find-file Thread-Index: AQHWjHQlyHpkfvXq/02ZHQAVXTuaeQ== Accept-Language: es-AR, en-US Content-Language: es-AR x-incomingtopheadermarker: OriginalChecksum:6DC51A3438CE6DC0127294B374BD1018B391669B3695DCA62EEFE28AC7DCCD13; UpperCasedChecksum:A6E39511194DA6AE7145C210CDD261F042F90C5BCC3BBDA49482D74F3D549D47; SizeAsReceived:6678; Count:41 x-tmn: [QYM5iKu6pDyfOLoNaqvSv0JjyPj+9THs] x-ms-publictraffictype: Email x-incomingheadercount: 41 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: 837b5ba0-81a2-417c-b211-08d85a8b7076 x-ms-traffictypediagnostic: DM6NAM04HT033: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: H6SKZL5qKHZCpW/EA+aaTz/8+N/6MKTa2ohDyx2xNpe8jnzGOid68O1oaAFnR/oQY5ZuAYuRbskCDraRfT5Uf7agimYL6OJc59OkTAXHibG5sCXqdBWDf1emQJa10uIprBt5ECT2U+3FZ/KKghDSrphw+fMB48tJOmMfviHD0dBS1+QK3n/AQV/Pn2e/OeDCfGQ/Bps99NzYCkFMA5F+dDKPk4BrmA6dOn5HbSZ3k8jIUUuhbbCbix9fVJs8CipZ x-ms-exchange-antispam-messagedata: hBm7aobqyBImR0jIyoNfcZ0fIRxO0xVLAmcYeYzMN4Pdo2RPrtBFYqjoKeFeCvTMgVmRl6fAvxw/OeI+vpZTDMltRGQeY8HsU/bg83QcuQoCpjc+Qz+Fx1C9ionCnoVJ2ezlpKZYQecGxc91xuQFYw== x-ms-exchange-transport-forked: True X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-AuthSource: DM6NAM04FT064.eop-NAM04.prod.protection.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 837b5ba0-81a2-417c-b211-08d85a8b7076 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Sep 2020 21:57:00.5912 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6NAM04HT033 Received-SPF: pass client-ip=40.92.45.72; envelope-from=aguadopd@hotmail.com; helo=NAM04-DM6-obe.outbound.protection.outlook.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/16 18:12:03 X-ACL-Warn: Detected OS = Windows NT kernel [generic] [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 16 Sep 2020 19:12:55 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:188184 Archived-At: I have set the following to always open files in read-only-mode:=0A= (add-hook 'find-file-hook 'read-only-mode)=0A= =0A= When I tried to install a new package through package-install, I got=0A= (buffer-read-only #)=0A= =0A= In https://emacs.stackexchange.com/a/46655 I found a working solution=0A= for someone else having the same problem,=0A= that seems to be telling package-install to inhibit read-only-mode:=0A= (advice-add=0A= 'package-install-from-archive=0A= :around (lambda (orig-fun &rest args)=0A= (let ((inhibit-read-only t))=0A= (apply orig-fun args))))=0A= =0A= This worked but I think the behavior I expected should be a default.=0A= =0A= Thanks!=0A= =0A= --------=0A= =0A= In GNU Emacs 26.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20)=0A= of 2020-05-19 built on felixonmars2=0A= Windowing system distributor 'The X.Org Foundation', version 11.0.12008000= =0A= System Description: Manjaro Linux=0A= =0A= =0A= Configured using:=0A= 'configure --prefix=3D/usr --sysconfdir=3D/etc --libexecdir=3D/usr/lib=0A= --localstatedir=3D/var --with-x-toolkit=3Dgtk3 --with-xft --with-wide-int= =0A= --with-modules 'CFLAGS=3D-march=3Dx86-64 -mtune=3Dgeneric -O2 -pipe -fno-p= lt'=0A= CPPFLAGS=3D-D_FORTIFY_SOURCE=3D2=0A= LDFLAGS=3D-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now'=0A= =0A= Configured features:=0A= XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB=0A= NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB=0A= TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD LCMS2=0A= =0A= Important settings:=0A= value of $LC_MONETARY: es_AR.UTF-8=0A= value of $LC_NUMERIC: es_AR.UTF-8=0A= value of $LC_TIME: es_AR.UTF-8=0A= value of $LANG: es_AR.utf8=0A= locale-coding-system: utf-8-unix=0A= =0A= Major mode: Emacs-Lisp=0A= =0A= Minor modes in effect:=0A= shell-dirtrack-mode: t=0A= winner-mode: t=0A= show-paren-mode: t=0A= on-screen-global-mode: t=0A= global-undo-tree-mode: t=0A= undo-tree-mode: t=0A= global-superword-mode: t=0A= superword-mode: t=0A= electric-pair-mode: t=0A= display-battery-mode: t=0A= tooltip-mode: t=0A= global-eldoc-mode: t=0A= eldoc-mode: t=0A= electric-quote-mode: t=0A= electric-indent-mode: t=0A= mouse-wheel-mode: t=0A= tool-bar-mode: t=0A= menu-bar-mode: t=0A= file-name-shadow-mode: t=0A= global-font-lock-mode: t=0A= font-lock-mode: t=0A= blink-cursor-mode: t=0A= auto-composition-mode: t=0A= auto-encryption-mode: t=0A= auto-compression-mode: t=0A= line-number-mode: t=0A= global-visual-line-mode: t=0A= visual-line-mode: t=0A= transient-mark-mode: t=0A=