From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: John Mastro Newsgroups: gmane.emacs.bugs Subject: bug#26891: 26.0.50; Error using lisp-indent-line in eval-expression minibuffer Date: Thu, 11 May 2017 16:34:29 -0700 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1494545779 11578 195.159.176.226 (11 May 2017 23:36:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 11 May 2017 23:36:19 +0000 (UTC) To: 26891@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 12 01:36:10 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d8xcv-0002jv-ME for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 May 2017 01:36:09 +0200 Original-Received: from localhost ([::1]:50663 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d8xcw-0002T4-Jl for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 May 2017 19:36:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35934) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d8xcq-0002Sr-5M for bug-gnu-emacs@gnu.org; Thu, 11 May 2017 19:36:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d8xco-0001Fj-Sf for bug-gnu-emacs@gnu.org; Thu, 11 May 2017 19:36:04 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36722) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d8xco-0001F8-FT for bug-gnu-emacs@gnu.org; Thu, 11 May 2017 19:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d8xco-0000zl-9z for bug-gnu-emacs@gnu.org; Thu, 11 May 2017 19:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: John Mastro Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 May 2017 23:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 26891 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14945457033688 (code B ref -1); Thu, 11 May 2017 23:36:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 May 2017 23:35:03 +0000 Original-Received: from localhost ([127.0.0.1]:39391 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d8xbr-0000xP-75 for submit@debbugs.gnu.org; Thu, 11 May 2017 19:35:03 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44838) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d8xbp-0000wt-Eg for submit@debbugs.gnu.org; Thu, 11 May 2017 19:35:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d8xbi-0000iX-VH for submit@debbugs.gnu.org; Thu, 11 May 2017 19:34:56 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:35551) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d8xbi-0000iT-RA for submit@debbugs.gnu.org; Thu, 11 May 2017 19:34:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35809) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d8xbh-0002M5-6I for bug-gnu-emacs@gnu.org; Thu, 11 May 2017 19:34:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d8xbf-0000hR-TA for bug-gnu-emacs@gnu.org; Thu, 11 May 2017 19:34:53 -0400 Original-Received: from mail-qk0-x234.google.com ([2607:f8b0:400d:c09::234]:34627) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d8xbf-0000hF-OB for bug-gnu-emacs@gnu.org; Thu, 11 May 2017 19:34:51 -0400 Original-Received: by mail-qk0-x234.google.com with SMTP id k74so35763605qke.1 for ; Thu, 11 May 2017 16:34:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=FXF932VawOWxgB+pk68Dx2DN/YLgraJ/I5DanRsGJjI=; b=aTcvU/hSYs2k2sFZzkNd9lqOgK/gGAKUQpUgk6vmkTyWDhA2PwOMTTzNj8it/Uf9H2 t8/DWQn1Z5/7Ox+/JnktY9UDPJnFBKgPv7W1lnyMkJml+8lKDY+QaifdgVgMHdFUTFwh fKIFVqqzJJmSltOiWS93g7WQ8kDOLGTwWub+I6BnuO2okI7d6x5/5QhiFzD67Zgdqh1f w9GSCFKZ+3aUKSU6lynK3hyxZ+rCQGl2YMLOXCMmyvawfGT2IR2DZjAwIrd0lBQr407x FeE/7lR/OyQ/6whjwS4Q+Iixp+wLjQUmaV6P33vTCF2hpgQVueQu1YWLtnKTV/a67Z/q Z4hA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=FXF932VawOWxgB+pk68Dx2DN/YLgraJ/I5DanRsGJjI=; b=SL1YrIhbaUtUxwhs+l4Z3+G9yBQleVKZzJJ08m6+FcpVmv0Pibz/4bXxlo2yZ1XawY f2YL5gvRUEK1JXKltnbFNDbgRrHmbvJcRDO3cbH50GnGwKAIBeqQXHAvj1Gz+NPLxgUI z9zTHGZCycLFMILykzEPXtT/kiXvWUmd4r75DXCXk2BhOdfJ04GK9jOZX55LUniCqlir caS4Q7FwMc97sORDdSSu+7gezA7IpAQtmb/FYQz/BvmE9EJuadbRkYSuAWThLZAly2Wa 3YRZjmza+sNcHe+frmv5tNmsx0wqjiJqOsrGA3oa9CWO0vFx3rSlm2WpPCFEQgKFR2iR Fgcw== X-Gm-Message-State: AODbwcCBqN6dHD9KQpg3OaOaCe/CNIPpNq4ZEq0h2e0B7vVSImcbPynt s6fsBBlHPLb1Xj2zMdLhLoew17/cXTacOFY= X-Received: by 10.55.9.141 with SMTP id 135mr1083097qkj.20.1494545690506; Thu, 11 May 2017 16:34:50 -0700 (PDT) Original-Received: by 10.237.51.229 with HTTP; Thu, 11 May 2017 16:34:29 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:132449 Archived-At: Using lisp-indent-line in an eval-expression minibuffer (i.e. M-:) works in Emacs 25 but causes a "Text is read-only" error in Emacs 26. To reproduce: 1. Run emacs -Q 2. Evaluate the code below 3. Type M-: 4. Hit TAB Here's the code: (defun init-eval-expression-minibuffer () (setq-local indent-line-function #'lisp-indent-line) (local-set-key (kbd "TAB") #'indent-for-tab-command)) (add-hook 'eval-expression-minibuffer-setup-hook #'init-eval-expression-minibuffer) Point will move to the very beginning of the minibuffer (on the "E" in "Eval") and you'll see a "Text is read only" message. (I called it an error above but it doesn't actually invoke the debugger even with debug-on-error and debug-on-signal non-nil). It doesn't matter whether you have entered text or not before hitting TAB. Thanks, John In GNU Emacs 26.0.50 (build 4, x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2017-04-26 built on meta Repository revision: 8f2062d96b0319fc2a837ba9e2c6b67abf31c920 System Description: Fedora release 25 (Twenty Five) Recent messages: Loading /home/jbm/.emacs.d/defuns.el (source)...done Loading /home/jbm/.emacs.d/local.el (source)...done Loading /home/jbm/.emacs.d/custom.el (source)...done Loading /home/jbm/.emacs.d/var/recentf...done Cleaning up the recentf list...done (0 removed) Loading /home/jbm/.emacs.d/var/company-statistics-cache.el (source)...done Starting new Ispell process /usr/bin/aspell with default dictionary... Configured using: 'configure --with-xml2 --with-zlib --with-gnutls --with-x-toolkit=lucid --without-pop --without-compress-install' Configured features: XAW3D XPM JPEG TIFF GIF PNG SOUND NOTIFY GNUTLS LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS LUCID X11 Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: flycheck-mode: t flyspell-mode: t projectile-mode: t global-git-commit-mode: t async-bytecomp-package-mode: t shell-dirtrack-mode: t company-statistics-mode: t global-company-mode: t company-mode: t ido-vertical-mode: t flx-ido-mode: t ido-ubiquitous-mode: t ido-everywhere: t smartparens-global-strict-mode: t paredit-mode: t global-undo-tree-mode: t undo-tree-mode: t winner-mode: t which-key-mode: t minibuffer-depth-indicate-mode: t recentf-mode: t whitespace-mode: t savehist-mode: t save-place-mode: t global-auto-revert-mode: t show-paren-mode: t global-hl-line-mode: t delete-selection-mode: t auto-compile-on-load-mode: t auto-compile-on-save-mode: t auto-compile-mode: t override-global-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t size-indication-mode: t column-number-mode: t line-number-mode: t auto-fill-function: do-auto-fill transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort company-ispell mail-extr emacsbug sendmail term/xterm xterm flycheck find-func bug-reference flyspell ispell company-files company-keywords company-etags etags xref project company-gtags company-template company-dabbrev-code company-dabbrev company-capf dired+ image-dired image-mode image-file dired-x find-dired dired-aux projectile grep compile ibuffer-vc ibuf-ext ibuffer ibuffer-loaddefs ibuf-macs git-commit with-editor cl-extra async-bytecomp async tramp-sh tramp tramp-compat tramp-loaddefs trampver ucs-normalize shell pcomplete parse-time magit-utils crm log-edit message puny dired dired-loaddefs format-spec rfc822 mml mml-sec epa derived epg gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log cl-indent hippie-exp comint ansi-color company-statistics company smex ido-vertical-mode flx-ido ido-ubiquitous cus-edit cus-start cus-load ido-completing-read+ ido ace-link avy smartparens help-mode paredit undo-tree diff winner ring which-key help-at-pt solarized-moar-theme solarized-theme solarized-definitions mb-depth recentf tree-widget wid-edit whitespace savehist saveplace autorevert filenotify time-date paren hl-line server cursor-sensor xclip edmacro kmacro cc-engine cc-vars cc-defs ivy flx delsel ivy-overlay ffap thingatpt subr-x pcase auto-compile packed use-package diminish bind-key easy-mmode finder-inf gh-common gh-profile rx s marshal eieio-compat ht json map dash advice cl slime-autoloads info package easymenu epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote inotify dynamic-setting font-render-setting x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 634597 116951) (symbols 48 42964 3) (miscs 40 77 204) (strings 32 97335 116596) (string-bytes 1 3181935) (vectors 16 86537) (vector-slots 8 1896258 303457) (floats 8 145 535) (intervals 56 372 148) (buffers 976 11))