GNU bug report logs - #60024
28.2; rgrep as part of function don't work

Previous Next

Package: emacs;

Reported by: Einar Largenius <jaadu <at> lysator.liu.se>

Date: Mon, 12 Dec 2022 22:15:02 UTC

Severity: normal

Tags: confirmed, patch

Found in versions 29.0.60, 28.2

Fixed in version 29.1

Done: Stefan Kangas <stefankangas <at> gmail.com>

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 60024 in the body.
You can then email your comments to 60024 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#60024; Package emacs. (Mon, 12 Dec 2022 22:15:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Einar Largenius <jaadu <at> lysator.liu.se>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 12 Dec 2022 22:15:03 GMT) Full text and rfc822 format available.

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

From: Einar Largenius <jaadu <at> lysator.liu.se>
To: bug-gnu-emacs <at> gnu.org
Subject: 28.2; rgrep as part of function don't work
Date: Mon, 12 Dec 2022 19:11:17 +0100
Hello.

I have the following function:

(defun search-journal (regexp)
  "Searches journal for `regexp'."
  (interactive "sSök i journalen: ")
  (rgrep regexp "* .*" org-directory))

When I run it after startup. It gives me an error:

rgrep-default-command: Wrong type argument: stringp, nil

After I run M-x rgrep<RET>C-g. The above command works just fine. I tested with emacs -Q and the same thing happens.

In GNU Emacs 28.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.30, cairo version 1.16.0)
Windowing system distributor 'The X.Org Foundation', version 11.0.12014000
System Description: Fedora Linux 35 (Workstation Edition)

Configured using:
 'configure
 CONFIG_SHELL=/gnu/store/4y5m9lb8k3qkb1y9m02sw9w9a6hacd16-bash-minimal-5.1.8/bin/bash
 SHELL=/gnu/store/4y5m9lb8k3qkb1y9m02sw9w9a6hacd16-bash-minimal-5.1.8/bin/bash
 --prefix=/gnu/store/58yz6w0ggx5r6vf2p1inv9i9dpibp75h-emacs-28.2
 --enable-fast-install --with-modules --with-cairo
 --with-native-compilation --disable-build-details'

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES
NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF
TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM GTK3 ZLIB

-- 
Med vänliga hälsningar Einar




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#60024; Package emacs. (Tue, 13 Dec 2022 00:33:02 GMT) Full text and rfc822 format available.

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

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Einar Largenius <jaadu <at> lysator.liu.se>, 60024 <at> debbugs.gnu.org
Subject: Re: bug#60024: 28.2; rgrep as part of function don't work
Date: Mon, 12 Dec 2022 16:32:30 -0800
[Message part 1 (text/plain, inline)]
tags 60024 + patch confirmed
found 60024 29.0.60
thanks

Einar Largenius <jaadu <at> lysator.liu.se> writes:

> I have the following function:
>
> (defun search-journal (regexp)
>   "Searches journal for `regexp'."
>   (interactive "sSök i journalen: ")
>   (rgrep regexp "* .*" org-directory))
>
> When I run it after startup. It gives me an error:
>
> rgrep-default-command: Wrong type argument: stringp, nil
>
> After I run M-x rgrep<RET>C-g. The above command works just fine. I
> tested with emacs -Q and the same thing happens.

Could you please test the attached patch and see if it fixes your
problem?

Thanks.
[0001-Fix-bug-when-calling-rgrep-non-interactively.patch (text/x-diff, attachment)]

Added tag(s) patch and confirmed. Request was from Stefan Kangas <stefankangas <at> gmail.com> to control <at> debbugs.gnu.org. (Tue, 13 Dec 2022 01:22:02 GMT) Full text and rfc822 format available.

bug Marked as found in versions 29.0.60. Request was from Stefan Kangas <stefankangas <at> gmail.com> to control <at> debbugs.gnu.org. (Tue, 13 Dec 2022 01:22:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#60024; Package emacs. (Tue, 13 Dec 2022 15:36:02 GMT) Full text and rfc822 format available.

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

From: Einar Largenius <jaadu <at> lysator.liu.se>
To: Stefan Kangas <stefankangas <at> gmail.com>
Cc: 60024 <at> debbugs.gnu.org
Subject: Re: bug#60024: 28.2; rgrep as part of function don't work
Date: Tue, 13 Dec 2022 16:33:27 +0100
The patch you suggested works fine for me.

-- 
Med vänliga hälsningar Einar




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#60024; Package emacs. (Tue, 13 Dec 2022 19:25:01 GMT) Full text and rfc822 format available.

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

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Einar Largenius <jaadu <at> lysator.liu.se>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 60024 <at> debbugs.gnu.org
Subject: Re: bug#60024: 28.2; rgrep as part of function don't work
Date: Tue, 13 Dec 2022 11:24:10 -0800
Einar Largenius <jaadu <at> lysator.liu.se> writes:

> The patch you suggested works fine for me.

Thanks.  Eli, okay to install this on emacs-29?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#60024; Package emacs. (Tue, 13 Dec 2022 20:16:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Kangas <stefankangas <at> gmail.com>
Cc: 60024 <at> debbugs.gnu.org, jaadu <at> lysator.liu.se
Subject: Re: bug#60024: 28.2; rgrep as part of function don't work
Date: Tue, 13 Dec 2022 22:15:36 +0200
> From: Stefan Kangas <stefankangas <at> gmail.com>
> Date: Tue, 13 Dec 2022 11:24:10 -0800
> Cc: 60024 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>
> 
> Einar Largenius <jaadu <at> lysator.liu.se> writes:
> 
> > The patch you suggested works fine for me.
> 
> Thanks.  Eli, okay to install this on emacs-29?

Yes, thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#60024; Package emacs. (Tue, 13 Dec 2022 21:15:01 GMT) Full text and rfc822 format available.

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

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 60024 <at> debbugs.gnu.org, jaadu <at> lysator.liu.se
Subject: Re: bug#60024: 28.2; rgrep as part of function don't work
Date: Tue, 13 Dec 2022 13:14:13 -0800
close 60024 29.1
thanks

Eli Zaretskii <eliz <at> gnu.org> writes:

>> Thanks.  Eli, okay to install this on emacs-29?
>
> Yes, thanks.

Thanks, done (commit 189c93e585).




bug marked as fixed in version 29.1, send any further explanations to 60024 <at> debbugs.gnu.org and Einar Largenius <jaadu <at> lysator.liu.se> Request was from Stefan Kangas <stefankangas <at> gmail.com> to control <at> debbugs.gnu.org. (Tue, 13 Dec 2022 21:15: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. (Wed, 11 Jan 2023 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 217 days ago.

Previous Next


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