From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Basil L. Contovounesios" Newsgroups: gmane.emacs.bugs Subject: bug#44629: 28.0.50; Eglot noisy with gfm-view-mode and view-read-only Date: Sat, 14 Nov 2020 10:58:04 +0000 Message-ID: <875z68p5mr.fsf@tcd.ie> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38945"; mail-complaints-to="usenet@ciao.gmane.io" Cc: =?UTF-8?Q?jo=C3=A3o_?= =?UTF-8?Q?t=C3=A1vora?= To: 44629@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 14 11:59:32 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 1kdtHH-0009z4-I9 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 14 Nov 2020 11:59:31 +0100 Original-Received: from localhost ([::1]:48498 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kdtHG-0007Ck-0U for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 14 Nov 2020 05:59:30 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33650) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kdtGo-0007CQ-VH for bug-gnu-emacs@gnu.org; Sat, 14 Nov 2020 05:59:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38311) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kdtGo-0000LE-Lw for bug-gnu-emacs@gnu.org; Sat, 14 Nov 2020 05:59:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kdtGo-000783-Ke; Sat, 14 Nov 2020 05:59:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: joaotavora@gmail.com, bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Nov 2020 10:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 44629 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org X-Debbugs-Original-Xcc: "=?UTF-8?Q?jo=C3=A3o_?= =?UTF-8?Q?t=C3=A1vora?=" Original-Received: via spool by submit@debbugs.gnu.org id=B.160535150327354 (code B ref -1); Sat, 14 Nov 2020 10:59:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Nov 2020 10:58:23 +0000 Original-Received: from localhost ([127.0.0.1]:49857 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kdtGB-000778-CA for submit@debbugs.gnu.org; Sat, 14 Nov 2020 05:58:23 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:37252) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kdtGA-000770-0n for submit@debbugs.gnu.org; Sat, 14 Nov 2020 05:58:22 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33590) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kdtG9-00079W-Nd for bug-gnu-emacs@gnu.org; Sat, 14 Nov 2020 05:58:21 -0500 Original-Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]:43353) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kdtG7-00007I-0z for bug-gnu-emacs@gnu.org; Sat, 14 Nov 2020 05:58:21 -0500 Original-Received: by mail-wr1-x430.google.com with SMTP id s8so13110259wrw.10 for ; Sat, 14 Nov 2020 02:58:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=R8wz++uCWD5PS5o2ynxSA+r3iCuin29pqRsUt6YXwbo=; b=y/EotiPrgWunyEn6/0fCgmNr+0e/vYmBmDjU73YhntBIb6yuBXn51LFDTHcksf4Hkc 8i2lSyMysBxofNlAciRf39oj4XUkw8qoxsbL3pKzgg5vYGdWh8ujWSrpnhPj5wqGBGpe ZCh6ETIsoj1fcgUI7/HQbL5AKrOKqTJfw1CP6AKk+IeRCm1fi3BmYFj//rxFC/M9azoD aktiw8073OraTwolezOxvwpKydtW/92eBq9xPYMjDQfbnbq9+Hagh3zxCwGsvQoaHrxt x5M/lQkjJO1ZY0jxXzKkbBuWOh/gV4U8/k7Yf0XtP+jT5KMnDCnEx5Ptq/aJNXfIn3At eRFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=R8wz++uCWD5PS5o2ynxSA+r3iCuin29pqRsUt6YXwbo=; b=Z8E1BBbTpSVTL2H5ryGgb8J6Oh4y+M9W8F3WwRP2fTQp5lOOY+UcPU1507pMRB6v3F EOy16goMC0fMT4vBm/Mo+ksUmi97WLjUh5oOglpgjzHGZp8tE1d+ongAeM0da+Jb14aV 3oH1vfSArCJzzZzwV3FbqP4fKMk+zbN13wFPHajuQlzm1DtpU+AD7VAkSbVIqfdAjyt+ s9vS0688JFuE637+gx+UW4gd4iOCSwtfcrLJpAMpFlaCbksoQ/5X5cPUfSUPqCI8hXTu kUo2Mm/OWOkpyxrws5i5RkHWb2Qb3BSLYKwRPymaCPSyx/Td3NTbxYrVv/YEJxxZE82c nA/g== X-Gm-Message-State: AOAM5317H1FSXOKWLsA9tfhGSAjMOLeY9cwwh7IEuOg6QR2TCT1BTgVE M4j+yyOawZbmHtVsldukHgWQH5spInpn0w== X-Google-Smtp-Source: ABdhPJyqQn/ifV01VtepBRDCd2GZSW9SeDnKbztol+geDwsX8Y/iXefz7iBMk5IONItFB6ZRok7mEw== X-Received: by 2002:adf:9d49:: with SMTP id o9mr9048167wre.413.1605351495501; Sat, 14 Nov 2020 02:58:15 -0800 (PST) Original-Received: from localhost ([2a02:8084:20e2:c380:fef1:a98a:87ca:e0e6]) by smtp.gmail.com with ESMTPSA id a17sm15594985wra.61.2020.11.14.02.58.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Nov 2020 02:58:14 -0800 (PST) Received-SPF: none client-ip=2a00:1450:4864:20::430; envelope-from=contovob@tcd.ie; helo=mail-wr1-x430.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:193262 Archived-At: X-Debbugs-Cc: "Jo=C3=A3o T=C3=A1vora" Severity: minor With Eglot, gfm-view-mode, and non-nil view-read-only, the echo area becomes quite congested. Here's an example that assumes you have previously installed the eglot (GNU ELPA) and markdown-mode (MELPA) packages using a vanilla package.el configuration, as well as pyls, the default Python language server that Eglot expects: 0. emacs -Q 1. (setq view-read-only t) C-j 2. M-x package-initialize RET 3. C-x C-f /tmp/foo.py RET 4. Enter the following Python: def foo(): bar =3D 1 5. M-x eglot RET (and wait for things to settle down) 6. M-x flymake-goto-next-error RET (and wait for things to settle down) The echo area is now taken over by the view-mode-enter message "View mode: type C-h for help, h for commands, q to quit." This message also appears at various other stages of editing, but when hovering over variables or flymake errors it seems to be the last one standing in the echo area. This happens because eglot--format-markup calls gfm-view-mode, which in turn enables read-only-mode, which in turn calls view-mode-enter. I can't disable this by setting view-read-only or view-inhibit-help-message locally, since Eglot does its doc processing in a different buffer. Perhaps Eglot could/should bind view-inhibit-help-message around gfm-view-mode? Any other ideas? Thanks, --=20 Basil In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo versio= n 1.16.0, Xaw3d scroll bars) of 2020-11-11 built on thunk Repository revision: e7b4f465e8b2ec1c8d54a611db7eca44ae350711 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12008000 System Description: Debian GNU/Linux bullseye/sid Configured using: 'configure 'CC=3Dccache gcc' 'CFLAGS=3D-O2 -march=3Dnative' --config-cache --prefix=3D/home/blc/.local --with-x-toolkit=3Dlucid --with-file-notification=3Dyes --with-x' Configured features: XAW3D XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB TOOLKIT_SCROLL_BARS LUCID X11 XDBE XIM MODULES THREADS LIBSYSTEMD JSON PDUMPER LCMS2 Important settings: value of $LANG: en_IE.UTF-8 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix Major mode: Python Minor modes in effect: eglot--managed-mode: t flymake-mode: t shell-dirtrack-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-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 transient-mark-mode: t Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils markdown-mode color noutline outline cl-extra view vc-mtn vc-hg vc-git diff-mode easy-mmode vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs vc vc-dispatcher eglot array filenotify jsonrpc ert pp ewoc debug backtrace help-mode find-func xref flymake-proc flymake thingatpt warnings compile text-property-search pcase project imenu python tramp-sh tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat shell pcomplete parse-time iso8601 time-date ls-lisp format-spec comint ring ansi-color finder-inf tex-site debian-el edmacro kmacro rx w3m-load info package easymenu browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib 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 tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer 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 cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo x-toolkit x multi-tty make-network-process emacs)