From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.help Subject: Re: Canonical way of marking a buf local var to be safe if nil/t? Date: Thu, 12 May 2016 17:41:21 +0000 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1463074906 11213 80.91.229.3 (12 May 2016 17:41:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 May 2016 17:41:46 +0000 (UTC) To: John Mastro , Help Gnu Emacs mailing list Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 12 19:41:45 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1b0ucL-0007Qb-1a for geh-help-gnu-emacs@m.gmane.org; Thu, 12 May 2016 19:41:45 +0200 Original-Received: from localhost ([::1]:59041 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0ucK-0002hX-FV for geh-help-gnu-emacs@m.gmane.org; Thu, 12 May 2016 13:41:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46284) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0uc9-0002fn-7s for help-gnu-emacs@gnu.org; Thu, 12 May 2016 13:41:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b0uc7-0001Kz-Vp for help-gnu-emacs@gnu.org; Thu, 12 May 2016 13:41:33 -0400 Original-Received: from mail-oi0-x22e.google.com ([2607:f8b0:4003:c06::22e]:34410) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0uc7-0001Kv-R4 for help-gnu-emacs@gnu.org; Thu, 12 May 2016 13:41:31 -0400 Original-Received: by mail-oi0-x22e.google.com with SMTP id k142so131726336oib.1 for ; Thu, 12 May 2016 10:41:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=iIUoiRZoe+oSrTNW13ZOFNPJ1XJwd+joNAVN5mfRuNY=; b=InmGB0E1CXJllLkRuAwRtGY0LA5bFD40PjBsfA4xrco2Pq0bUuUz1LSWfWi+TYX+cY WkIwkSINArolHRb03kuGtoum4xwAXtbGWiakE0JsYvnxTmtG80z0sVRZVDjqxKva6PuP PbsK8uGHmqgVO5OkzWHuCRwT4EYbt/31RerDAt9GiARik4VMik0GD5Dwy6epsogxAH9u PRUb+eIX9R7WLOxsAThq2kc/ch4btwxOrY4uQk4JZ/6vrsn3ERqHqEdDgO311HX6YvSj t632juBVrlURDuZiandBpzbHrqGJJNVE5qTxyq8HCjvSjeUWoKDYrOTwpet2IDpb9699 8AYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=iIUoiRZoe+oSrTNW13ZOFNPJ1XJwd+joNAVN5mfRuNY=; b=Z594V8gfAXN7T4sR5a31va642iDm4ry5sYY7byw8fteTvPo7zyB01qSrAMvXRnrTIM e1DBk8S09VMa0ygr3XN2ag2NCiimSmz6guILcGf+7EgHf2QRI+nFJuW/ZGMq9PH0nQiw IZ7Q75urqwKhmWz0a0FfSqOEj66HCzJW6+qZ5F2ZVeerN9xv8jKSNwm/DsAhJyZLRzb7 +qVMqgIiH3Jgq1yNYQo1ixiHZahwsiUGmc45pkGZsbQlbsSMkubHkZ23VP1W9lL9lrBt 3ttY+WUFYMhJN8nR9WrjtSwdKghn0tQICPiNaff5ygc37D1101x67jtuCY0Z0sCb35Vb sD6A== X-Gm-Message-State: AOPr4FWeB7zClM2yZYVgs1Zc0YQ2/kvMmAlo5XwCj3/u7pqQMC1mQPU01dk0CLAXYNwHmlIHSoZyZ7wPgivt1A== X-Received: by 10.202.203.147 with SMTP id b141mr5416243oig.159.1463074891286; Thu, 12 May 2016 10:41:31 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4003:c06::22e X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:109937 Archived-At: On Thu, May 12, 2016 at 1:39 PM John Mastro wrote= : > Use `booleanp': > > booleanp is a compiled Lisp function in =E2=80=98subr.el=E2=80=99. > > (booleanp OBJECT) > > Return t if OBJECT is one of the two canonical boolean values: t or nil. > Otherwise, return nil. > Thanks! I had a gut feeling that something basic like this had to be already covered :) --=20 --=20 Kaushal Modi