From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: scratch/list-threads 833a2d4 2/9: Make lisp/thread.el the new home for thread-related Lisp functions Date: Mon, 03 Sep 2018 12:08:29 +0200 Message-ID: <87wos228rm.fsf@gmx.de> References: <20180827155307.16925.11045@vcs0.savannah.gnu.org> <20180827155309.D5C18209C1@vcs0.savannah.gnu.org> <87tvndxovu.fsf@gmx.de> <87k1o7wdx7.fsf@runbox.com> <877ek780f4.fsf@gmx.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1535969209 7310 195.159.176.226 (3 Sep 2018 10:06:49 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 3 Sep 2018 10:06:49 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 03 12:06:45 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fwlkr-0001mP-3P for ged-emacs-devel@m.gmane.org; Mon, 03 Sep 2018 12:06:45 +0200 Original-Received: from localhost ([::1]:44424 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fwlmx-0007eg-0o for ged-emacs-devel@m.gmane.org; Mon, 03 Sep 2018 06:08:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51727) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fwlmr-0007eb-5V for emacs-devel@gnu.org; Mon, 03 Sep 2018 06:08:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fwlmm-0005F5-3t for emacs-devel@gnu.org; Mon, 03 Sep 2018 06:08:49 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:44243) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fwlmi-0005DP-VE for emacs-devel@gnu.org; Mon, 03 Sep 2018 06:08:42 -0400 Original-Received: from detlef.gmx.de ([79.140.122.140]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MEWPx-1g7XQE1pIP-00Fk13; Mon, 03 Sep 2018 12:08:31 +0200 In-Reply-To: (Stefan Monnier's message of "Fri, 31 Aug 2018 09:19:58 -0400") X-Provags-ID: V03:K1:ysTW8zrGLR2Lfg1KNkYo7rb5fn7fraUyrPbmSwExrb/gCu+Ztn4 42ZF+hZtvMVyvgLGWijldP38y8jmdyM1BZJJjX6TGcBJpR0A/xEeZp5yjBqYUrONbt5Z2gX H3jGMmN1muBEdDOwkTxodQkWKzR0mjuJn1d0HXUVVrA4CdCaoZXdGf2+wIEhNJIZqVf24SG kkRKorATfA6HPnTVUZlLw== X-UI-Out-Filterresults: notjunk:1;V01:K0:DyIwWKXsvlU=:Zdp/gCE4b385SKFpRj5sUr 0jrwVsZrTCF+6TE8la4ePxVyuOMpvVWkNwEgd5NMC1fFJd0RbeJcWHTarh9NNtPm4aPAgiqLD dBu/owa680fGPlTsfuHQBWF+NfUidpHmG4+xezvzpsakuBGbiSffDElex2hk7mZ2ULscado70 f6PmoHraCYBAVQacVe83BYvD5ycezNR5p5f2SM/FicxAFZ0vYydK/mb0FdyhsO2f0GEtPDcVq u5Njn7nELhFfz5LXSfnWUIMemy0tXFyGv5dsDxYaoSNZ/GNtKq53eyCeetbXkOLm4yrjDvK/Z JaNSw2zcg8NmuyzVFkRIcPs0pQJXRpMrD8T2eyW07U/ivObMZrH1SVpkdmuKJRT2LS3g5It3f qY2dC9jw+Wfk9sHjJvffJU/L4xz9d2LCi+bbunN0AdIXM5/GaW2Kz29JcnPb8wCTOzQOsDWs0 QG/v7ipv9DwthRaV5sc4Cz1d58gtIpby5f5+RXM34wQAocHNQx+ADQkw2nrRhj66w70cDWfW+ XqlCsv33Fd9xmuV8yPewCH7e9MWjIZ4ckMyBo7+RxCN/GuXJDnrOC90Rrz5PO7fxL0nClhStE 6qZyZalBtZHEaNoh2dJSYqf+NQ/W8uHPiymNMnI/fC/aJpGTphQQcNAdNrUdNdCr/fuvAuPyS jogNnhFT1hZHcwJVzLZ96a67wxQKLbTD8nlE8uZGVD1ofyf91blHgwgHL32eky90zZI7+mYx+ Xxwggq+R+OkJDHdR1kTg7Lo34j6O58ZOsCOfefMvplunJPbD8k/jLbgzMNWBtzJ4iJzqIgBa X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.15.15 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:229201 Archived-At: Stefan Monnier writes: >> It would work, of course. But I'm a finicky German :-) `featurep' is the >> default way in Emacs to check, whether a feature exist, so I've done it >> this way. > > Actually, fboundp is a much more common way to perform such tests, > especially since it can silence some warnings at the same occasion. > (featurep 'xemacs) is an important exception, tho. Currently, we have `features', which gives us the feature symbols of loaded packages. What we would need are the configured featurea of Emacs. What about this: --8<---------------cut here---------------start------------->8--- (defconst configured-features (mapcar (lambda (feat) (intern (downcase feat))) (split-string system-configuration-features)) "A list of symbols which are the configured features of the executing Emacs.") (defun configured-feature-p (feature) "Return t if Emacs is configured with FEATURE." (and (member feature configured-features) t)) --8<---------------cut here---------------end--------------->8--- I could use then (configured-feature-p 'threads) in order to know whether Emacs has been configured --with-threads, explicitly or implicitly. > Stefan Best regards, Michael.