bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#27706: MacOS: decode-time hang


From: Alan Third
Subject: bug#27706: MacOS: decode-time hang
Date: Sat, 30 Sep 2017 21:21:02 +0100
User-agent: Mutt/1.9.0 (2017-09-02)

On Sat, Sep 30, 2017 at 09:09:08PM +0200, Charles A. Roelli wrote:
> +                     (if (and (featurep 'ns)
> +                              (string-match-p
> +                               "10\\.6\\.[[:digit:]]"
> +                               (shell-command-to-string
> +                                "sw_vers -productVersion")))

I can’t speak for the issue generally as I don’t know what this code
does, but this particular check looks incorrect to me.

sw_vers doesn’t exist on GNU/Linux, and probably other platforms that
GNUstep runs on, so you can’t just use a check for NS. Probably you
need to check for Darwin, which should work on terminal only versions
of Emacs too.

    (string-equal system-type "darwin")

(There may be other ways to check, this is the only one I know.)
-- 
Alan Third





reply via email to

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