GNU bug report logs - #33269
25.2; cli pinentry disrupts screen display and navigation

Previous Next

Package: emacs;

Reported by: Boruch Baum <boruch_baum <at> gmx.com>

Date: Mon, 5 Nov 2018 08:34:02 UTC

Severity: normal

Tags: moreinfo

Found in version 25.2

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 33269 in the body.
You can then email your comments to 33269 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#33269; Package emacs. (Mon, 05 Nov 2018 08:34:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Boruch Baum <boruch_baum <at> gmx.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 05 Nov 2018 08:34:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Boruch Baum <boruch_baum <at> gmx.com>
To: Emacs Bug Reporting <bug-gnu-emacs <at> gnu.org>
Subject: 25.2; cli pinentry disrupts screen display and navigation
Date: Mon, 5 Nov 2018 03:32:46 -0500
When using non-GUI emacs and attempting to open a gpg encrypted file,
emacs seems to pass control to the external pinentry program (debian
package `pinentry-curses', version 1.1.0+b1); however:

1) Doing so renders most of the pinentry program's display off the
botton of screen. The top line of the pinentry ncurses input box
displays along the bottom of the terminal's display, and the prior emacs
display is scrolled up so the mini-buffer line is about one-fifth along
the top.

2) Entering the passphrase in that situation doesn't provide any visible
feedback, and doesn't seem to function. No response occurs when pressing
return.

3) Control could be restored to emacs via some quasi-desperate
quasi-random combination of C-c, C-g, RET, ESC; however, the screen
rendering of emacs at that point remained mostly 'off-screen', and was
recovered only by forcing complete screen redraws, which was done by
some quasi-desperate quasi-random combination of `C-x 0', `C-x 3', and
`C-x C-b'.

Two work-arounds were found:

A) Open the file externally, directly on the command-line. In that case,
emacs does not ask for a passphrase when re-opening the file within the
timeout interval.

B) Setting emacs variable `epa-pinentry-mode' to 'loopback, which has
emacs itself prompt for the gpg passphrase in the mini-buffer.




In GNU Emacs 25.2.2 (x86_64-pc-linux-gnu, GTK+ Version 3.22.30)
 of 2018-08-26, modified by Debian built on x86-csail-01
System Description:	Devuan GNU/Linux 2.0.0 (ascii)

Configured using:
 'configure --build x86_64-linux-gnu --prefix=/usr
 --sharedstatedir=/var/lib --libexecdir=/usr/lib
 --localstatedir=/var/lib --infodir=/usr/share/info
 --mandir=/usr/share/man --with-pop=yes
 --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/25.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/25.2/site-lisp:/usr/share/emacs/site-lisp
 --with-sound=alsa --without-gconf --build x86_64-linux-gnu
 --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib
 --localstatedir=/var/lib --infodir=/usr/share/info
 --mandir=/usr/share/man --with-pop=yes
 --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/25.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/25.2/site-lisp:/usr/share/emacs/site-lisp
 --with-sound=alsa --without-gconf --with-x=yes --with-x-toolkit=gtk3
 --with-toolkit-scroll-bars 'CFLAGS=-g -O2
 -fdebug-prefix-map=/build/emacs-7bZ65w/emacs-25.2+1=.
 -fstack-protector-strong -Wformat -Werror=format-security -Wall'
 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' LDFLAGS=-Wl,-z,relro'

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY
ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix


-- 
hkp://keys.gnupg.net
CA45 09B5 5351 7C11 A9D1  7286 0036 9E45 1595 8BC0




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#33269; Package emacs. (Thu, 26 Nov 2020 12:49:01 GMT) Full text and rfc822 format available.

Message #8 received at 33269 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Boruch Baum <boruch_baum <at> gmx.com>
Cc: 33269 <at> debbugs.gnu.org
Subject: Re: bug#33269: 25.2; cli pinentry disrupts screen display and
 navigation
Date: Thu, 26 Nov 2020 13:48:45 +0100
[Message part 1 (text/plain, inline)]
Boruch Baum <boruch_baum <at> gmx.com> writes:

> When using non-GUI emacs and attempting to open a gpg encrypted file,
> emacs seems to pass control to the external pinentry program (debian
> package `pinentry-curses', version 1.1.0+b1); however:
>
> 1) Doing so renders most of the pinentry program's display off the
> botton of screen.

(This bug report unfortunately got no response at the time.)

I tried reproducing this by saying

emacs -Q foo.gpg

I was then presented with this display:

[Message part 2 (image/png, inline)]
[Message part 3 (text/plain, inline)]

And I could then read the encrypted file.  This is on Debian bullseye,
and the terminal is gnome-terminal, in Emacs 28.

Are do you still see this problem in Emacs 28?  If so, do you have a
recipe to reproduce it?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no

Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 26 Nov 2020 12:50:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#33269; Package emacs. (Thu, 26 Nov 2020 18:48:01 GMT) Full text and rfc822 format available.

Message #13 received at 33269 <at> debbugs.gnu.org (full text, mbox):

From: Boruch Baum <boruch_baum <at> gmx.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 33269 <at> debbugs.gnu.org
Subject: Re: bug#33269: 25.2; cli pinentry disrupts screen display and
 navigation
Date: Thu, 26 Nov 2020 13:47:06 -0500
On 2020-11-26 13:48, Lars Ingebrigtsen wrote:
> ...
> Are do you still see this problem in Emacs 28?

No, nor in emacs 26. So, I guess this can be closed, then.

--
hkp://keys.gnupg.net
CA45 09B5 5351 7C11 A9D1  7286 0036 9E45 1595 8BC0




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#33269; Package emacs. (Fri, 27 Nov 2020 08:18:01 GMT) Full text and rfc822 format available.

Message #16 received at 33269 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Boruch Baum <boruch_baum <at> gmx.com>
Cc: 33269 <at> debbugs.gnu.org
Subject: Re: bug#33269: 25.2; cli pinentry disrupts screen display and
 navigation
Date: Fri, 27 Nov 2020 09:17:47 +0100
Boruch Baum <boruch_baum <at> gmx.com> writes:

> No, nor in emacs 26. So, I guess this can be closed, then.

OK; done.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug closed, send any further explanations to 33269 <at> debbugs.gnu.org and Boruch Baum <boruch_baum <at> gmx.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 27 Nov 2020 08:18:02 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, 25 Dec 2020 12:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 122 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.