unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#42160: Issue with Man-kill and background process.
       [not found] <20200702022309.bpj4t77e73n23c4y.ref@ergus>
@ 2020-07-02  2:23 ` Ergus via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2020-07-03  8:02   ` Eli Zaretskii
       [not found]   ` <handler.42160.D42160.159566142122750.notifdone@debbugs.gnu.org>
  0 siblings, 2 replies; 6+ messages in thread
From: Ergus via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2020-07-02  2:23 UTC (permalink / raw)
  To: 42160

When using man with big manuals (like gcc). There is an error when
trying to quit with k just after opening the manual.
This seems to be related with the formating process that is running in
the background.

To reproduce the issue:

emacs -Q
M-x toggle-debug-on-error RET
M-x man RET
gcc RET
k

And I get this error message:

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  Man-bgproc-filter(#<process man> "nt, there is no need to use address spaces like \"_...")


In GNU Emacs 28.0.50 (build 8, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw scroll bars)
 of 2020-06-30 built on ergus
Repository revision: 519e64f98140b984e10a9567017c7e5c4a81ff89
Repository branch: master
System Description: Debian GNU/Linux 10 (buster)

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Debug on Error enabled globally
Invoking man gcc in the background
next-line: End of buffer [4 times]
Entering debugger...

Configured using:
 'configure --prefix=/home/ergus/.local/ --with-mailutils'

Configured features:
XPM JPEG TIFF GIF PNG CAIRO SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY
LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS
LUCID X11 XDBE XIM MODULES THREADS PDUMPER GMP

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

Major mode: Debugger

Minor modes in effect:
  tooltip-mode: t
  global-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
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs
rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util
rmail rmail-loaddefs text-property-search time-date subr-x seq mm-decode
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader
sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils
cl-print debug backtrace help-mode find-func cl-seq imenu man easymenu
cl-loaddefs cl-lib ansi-color cus-start cus-load term/tmux term/xterm
xterm byte-opt gv bytecomp byte-compile cconv 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 loaddefs
button faces cus-face macroexp files text-properties overlay sha1 md5
base64 format env code-pages mule custom widget hashtable-print-readable
backquote threads dbusbind inotify dynamic-setting system-font-setting
font-render-setting cairo x-toolkit x multi-tty make-network-process
emacs)

Memory information:
((conses 16 62396 7811)
 (symbols 48 7549 1)
 (strings 32 19068 1764)
 (string-bytes 1 597034)
 (vectors 16 8450)
 (vector-slots 8 93078 6052)
 (floats 8 32 570)
 (intervals 56 197 5)
 (buffers 992 11))





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#42160: Issue with Man-kill and background process.
  2020-07-02  2:23 ` bug#42160: Issue with Man-kill and background process Ergus via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2020-07-03  8:02   ` Eli Zaretskii
  2020-07-10  6:59     ` Eli Zaretskii
       [not found]   ` <handler.42160.D42160.159566142122750.notifdone@debbugs.gnu.org>
  1 sibling, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2020-07-03  8:02 UTC (permalink / raw)
  To: Ergus; +Cc: 42160

> Date: Thu, 2 Jul 2020 04:23:09 +0200
> From: Ergus via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
> 
> When using man with big manuals (like gcc). There is an error when
> trying to quit with k just after opening the manual.
> This seems to be related with the formating process that is running in
> the background.
> 
> To reproduce the issue:
> 
> emacs -Q
> M-x toggle-debug-on-error RET
> M-x man RET
> gcc RET
> k
> 
> And I get this error message:
> 
> Debugger entered--Lisp error: (wrong-type-argument stringp nil)
>   Man-bgproc-filter(#<process man> "nt, there is no need to use address spaces like \"_...")

Thanks.  Does the patch below fix this?

diff --git a/lisp/man.el b/lisp/man.el
index 5278a1a..bc8fd45 100644
--- a/lisp/man.el
+++ b/lisp/man.el
@@ -1392,7 +1392,7 @@ Man-bgproc-filter
 command is run.  Second argument STRING is the entire string of output."
   (save-excursion
     (let ((Man-buffer (process-buffer process)))
-      (if (null (buffer-name Man-buffer)) ;; deleted buffer
+      (if (not (buffer-live-p Man-buffer)) ;; deleted buffer
 	  (set-process-buffer process nil)
 
 	(with-current-buffer Man-buffer
@@ -1426,7 +1426,7 @@ Man-bgproc-sentinel
 	(delete-buff nil)
 	message)
 
-    (if (null (buffer-name Man-buffer)) ;; deleted buffer
+    (if (not (buffer-live-p Man-buffer)) ;; deleted buffer
 	(or (stringp process)
 	    (set-process-buffer process nil))
 





^ permalink raw reply related	[flat|nested] 6+ messages in thread

* bug#42160: Issue with Man-kill and background process.
  2020-07-03  8:02   ` Eli Zaretskii
@ 2020-07-10  6:59     ` Eli Zaretskii
  2020-07-18  7:46       ` Eli Zaretskii
  0 siblings, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2020-07-10  6:59 UTC (permalink / raw)
  To: spacibba; +Cc: 42160

Ping!

> Date: Fri, 03 Jul 2020 11:02:08 +0300
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: 42160@debbugs.gnu.org
> 
> > Date: Thu, 2 Jul 2020 04:23:09 +0200
> > From: Ergus via "Bug reports for GNU Emacs,
> >  the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
> > 
> > When using man with big manuals (like gcc). There is an error when
> > trying to quit with k just after opening the manual.
> > This seems to be related with the formating process that is running in
> > the background.
> > 
> > To reproduce the issue:
> > 
> > emacs -Q
> > M-x toggle-debug-on-error RET
> > M-x man RET
> > gcc RET
> > k
> > 
> > And I get this error message:
> > 
> > Debugger entered--Lisp error: (wrong-type-argument stringp nil)
> >   Man-bgproc-filter(#<process man> "nt, there is no need to use address spaces like \"_...")
> 
> Thanks.  Does the patch below fix this?
> 
> diff --git a/lisp/man.el b/lisp/man.el
> index 5278a1a..bc8fd45 100644
> --- a/lisp/man.el
> +++ b/lisp/man.el
> @@ -1392,7 +1392,7 @@ Man-bgproc-filter
>  command is run.  Second argument STRING is the entire string of output."
>    (save-excursion
>      (let ((Man-buffer (process-buffer process)))
> -      (if (null (buffer-name Man-buffer)) ;; deleted buffer
> +      (if (not (buffer-live-p Man-buffer)) ;; deleted buffer
>  	  (set-process-buffer process nil)
>  
>  	(with-current-buffer Man-buffer
> @@ -1426,7 +1426,7 @@ Man-bgproc-sentinel
>  	(delete-buff nil)
>  	message)
>  
> -    (if (null (buffer-name Man-buffer)) ;; deleted buffer
> +    (if (not (buffer-live-p Man-buffer)) ;; deleted buffer
>  	(or (stringp process)
>  	    (set-process-buffer process nil))
>  
> 
> 
> 
> 





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#42160: Issue with Man-kill and background process.
  2020-07-10  6:59     ` Eli Zaretskii
@ 2020-07-18  7:46       ` Eli Zaretskii
  2020-07-25  7:16         ` Eli Zaretskii
  0 siblings, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2020-07-18  7:46 UTC (permalink / raw)
  To: spacibba; +Cc: 42160

Ping! Ping!

Jimmy, could you please try this patch and see if it fixes your
problems?  If it does, I' d like to install it.

> Date: Fri, 10 Jul 2020 09:59:58 +0300
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: 42160@debbugs.gnu.org
> 
> Ping!
> 
> > Date: Fri, 03 Jul 2020 11:02:08 +0300
> > From: Eli Zaretskii <eliz@gnu.org>
> > Cc: 42160@debbugs.gnu.org
> > 
> > > Date: Thu, 2 Jul 2020 04:23:09 +0200
> > > From: Ergus via "Bug reports for GNU Emacs,
> > >  the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
> > > 
> > > When using man with big manuals (like gcc). There is an error when
> > > trying to quit with k just after opening the manual.
> > > This seems to be related with the formating process that is running in
> > > the background.
> > > 
> > > To reproduce the issue:
> > > 
> > > emacs -Q
> > > M-x toggle-debug-on-error RET
> > > M-x man RET
> > > gcc RET
> > > k
> > > 
> > > And I get this error message:
> > > 
> > > Debugger entered--Lisp error: (wrong-type-argument stringp nil)
> > >   Man-bgproc-filter(#<process man> "nt, there is no need to use address spaces like \"_...")
> > 
> > Thanks.  Does the patch below fix this?
> > 
> > diff --git a/lisp/man.el b/lisp/man.el
> > index 5278a1a..bc8fd45 100644
> > --- a/lisp/man.el
> > +++ b/lisp/man.el
> > @@ -1392,7 +1392,7 @@ Man-bgproc-filter
> >  command is run.  Second argument STRING is the entire string of output."
> >    (save-excursion
> >      (let ((Man-buffer (process-buffer process)))
> > -      (if (null (buffer-name Man-buffer)) ;; deleted buffer
> > +      (if (not (buffer-live-p Man-buffer)) ;; deleted buffer
> >  	  (set-process-buffer process nil)
> >  
> >  	(with-current-buffer Man-buffer
> > @@ -1426,7 +1426,7 @@ Man-bgproc-sentinel
> >  	(delete-buff nil)
> >  	message)
> >  
> > -    (if (null (buffer-name Man-buffer)) ;; deleted buffer
> > +    (if (not (buffer-live-p Man-buffer)) ;; deleted buffer
> >  	(or (stringp process)
> >  	    (set-process-buffer process nil))
> >  
> > 
> > 
> > 
> > 
> 
> 
> 
> 





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#42160: Issue with Man-kill and background process.
  2020-07-18  7:46       ` Eli Zaretskii
@ 2020-07-25  7:16         ` Eli Zaretskii
  0 siblings, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2020-07-25  7:16 UTC (permalink / raw)
  To: spacibba; +Cc: 42160-done

> Date: Sat, 18 Jul 2020 10:46:07 +0300
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: 42160@debbugs.gnu.org
> 
> Ping! Ping!
> 
> Jimmy, could you please try this patch and see if it fixes your
> problems?  If it does, I' d like to install it.

No comments, so I installed the changes, and I'm closing this bug
report.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#42160: closed (Re: bug#42160: Issue with Man-kill and background process.)
       [not found]   ` <handler.42160.D42160.159566142122750.notifdone@debbugs.gnu.org>
@ 2020-07-25 11:16     ` Ergus via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 0 replies; 6+ messages in thread
From: Ergus via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2020-07-25 11:16 UTC (permalink / raw)
  To: eliz@gnu.org; +Cc: 42160@debbugs.gnu.org

[-- Attachment #1: Type: text/plain, Size: 4900 bytes --]

Hi Eli:
 Sorry for not replying your messages on time. I just checked that all your previous messages went to the Spam folder... (except the closing bug report one) I just fixed that. 

Your patch seems to fix the issue successfully. 

Very thanks
Best



-----Original Message-----
From: GNU bug Tracking System <help-debbugs@gnu.org>
To: Ergus <spacibba@aol.com>
Sent: Sat, Jul 25, 2020 9:17 am
Subject: bug#42160: closed (Re: bug#42160: Issue with Man-kill and background process.)

Your bug report

#42160: Issue with Man-kill and background process.

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 42160@debbugs.gnu.org.

-- 
42160: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=42160
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems> Date: Sat, 18 Jul 2020 10:46:07 +0300
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: 42160@debbugs.gnu.org
> 
> Ping! Ping!
> 
> Jimmy, could you please try this patch and see if it fixes your
> problems?  If it does, I' d like to install it.

No comments, so I installed the changes, and I'm closing this bug
report.


When using man with big manuals (like gcc). There is an error when
trying to quit with k just after opening the manual.
This seems to be related with the formating process that is running in
the background.

To reproduce the issue:

emacs -Q
M-x toggle-debug-on-error RET
M-x man RET
gcc RET
k

And I get this error message:

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  Man-bgproc-filter(#<process man> "nt, there is no need to use address spaces like \"_...")


In GNU Emacs 28.0.50 (build 8, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw scroll bars)
 of 2020-06-30 built on ergus
Repository revision: 519e64f98140b984e10a9567017c7e5c4a81ff89
Repository branch: master
System Description: Debian GNU/Linux 10 (buster)

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Debug on Error enabled globally
Invoking man gcc in the background
next-line: End of buffer [4 times]
Entering debugger...

Configured using:
 'configure --prefix=/home/ergus/.local/ --with-mailutils'

Configured features:
XPM JPEG TIFF GIF PNG CAIRO SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY
LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS
LUCID X11 XDBE XIM MODULES THREADS PDUMPER GMP

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

Major mode: Debugger

Minor modes in effect:
  tooltip-mode: t
  global-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
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs
rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util
rmail rmail-loaddefs text-property-search time-date subr-x seq mm-decode
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader
sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils
cl-print debug backtrace help-mode find-func cl-seq imenu man easymenu
cl-loaddefs cl-lib ansi-color cus-start cus-load term/tmux term/xterm
xterm byte-opt gv bytecomp byte-compile cconv 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 loaddefs
button faces cus-face macroexp files text-properties overlay sha1 md5
base64 format env code-pages mule custom widget hashtable-print-readable
backquote threads dbusbind inotify dynamic-setting system-font-setting
font-render-setting cairo x-toolkit x multi-tty make-network-process
emacs)

Memory information:
((conses 16 62396 7811)
 (symbols 48 7549 1)
 (strings 32 19068 1764)
 (string-bytes 1 597034)
 (vectors 16 8450)
 (vector-slots 8 93078 6052)
 (floats 8 32 570)
 (intervals 56 197 5)
 (buffers 992 11))




[-- Attachment #2: Type: text/html, Size: 6609 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-07-25 11:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20200702022309.bpj4t77e73n23c4y.ref@ergus>
2020-07-02  2:23 ` bug#42160: Issue with Man-kill and background process Ergus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-07-03  8:02   ` Eli Zaretskii
2020-07-10  6:59     ` Eli Zaretskii
2020-07-18  7:46       ` Eli Zaretskii
2020-07-25  7:16         ` Eli Zaretskii
     [not found]   ` <handler.42160.D42160.159566142122750.notifdone@debbugs.gnu.org>
2020-07-25 11:16     ` bug#42160: closed (Re: bug#42160: Issue with Man-kill and background process.) Ergus via Bug reports for GNU Emacs, the Swiss army knife of text editors

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).