emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [elpa] externals/ess 2b13c10ebf 2/2: Delete new-line check with arbi


From: Stefan Monnier
Subject: Re: [elpa] externals/ess 2b13c10ebf 2/2: Delete new-line check with arbitrary prompts
Date: Tue, 08 Nov 2022 12:07:21 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

> -               (string-match-p (concat "^" inferior-ess-primary-prompt 
> "\\'") string))
> +               (string-match-p (concat ".*" inferior-ess-primary-prompt 
> "\\'") string))

".*" at the beginning of a `string-match(-p)` is useless and just makes
the match slower.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]