From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: Directory name to variable (dired?) Date: Mon, 8 Oct 2018 15:56:28 +0000 (UTC) Message-ID: References: <20181007214950.GA17855@mail.akwebsoft.com> <20181007231453.GB17855@mail.akwebsoft.com> <9c5dbc22-80fa-4284-b4ed-46b70425d6b0@default> <20181008002005.GD17855@mail.akwebsoft.com> <7b0e4173-69d6-4f90-8563-dad8a8a36820@default> <20181008150817.GE17855@mail.akwebsoft.com> <20181008151826.GF17855@mail.akwebsoft.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1539014120 1568 195.159.176.226 (8 Oct 2018 15:55:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 8 Oct 2018 15:55:20 +0000 (UTC) To: Tim Johnson , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 08 17:55:16 2018 Return-path: Envelope-to: geh-help-gnu-emacs@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 1g9XsK-0000H3-4i for geh-help-gnu-emacs@m.gmane.org; Mon, 08 Oct 2018 17:55:16 +0200 Original-Received: from localhost ([::1]:47029 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g9XuQ-0004WH-M4 for geh-help-gnu-emacs@m.gmane.org; Mon, 08 Oct 2018 11:57:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39801) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g9Xtx-0004W1-81 for help-gnu-emacs@gnu.org; Mon, 08 Oct 2018 11:56:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g9Xts-0004PN-QR for help-gnu-emacs@gnu.org; Mon, 08 Oct 2018 11:56:57 -0400 Original-Received: from aserp2120.oracle.com ([141.146.126.78]:33046) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g9Xts-0004Of-G1 for help-gnu-emacs@gnu.org; Mon, 08 Oct 2018 11:56:52 -0400 Original-Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w98FsJiK041161; Mon, 8 Oct 2018 15:56:29 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=I1QpW7XnhX0n28IoxxnN7cafbQKxtK27MioB9V5QzbQ=; b=Cz3iHllzOoTannqx6OFaGyuCFvujawqyqDau+RX+tEa1jZqzPFnm2VBlIFUgQiCQoLt/ erSm6IqiKs0aeXvlC63X4tV67swRGxn7fwr6tuhyRvjYRsMdDT6uFPdYgGnzlvs/dbTM HQ5VfbMA83Tkjh5TKdefNmeGF0i2o33CZthDKbQ5OB/4zsOS30pbZ91bil5FZgVR4zHR 2TCSlNT1wWIf2yereuZGNIYXkiVy9B1X8yPrI29mqBjxmM48XZxumJXb3fd/3CAMEX1r 3hy3puOFR5DxSF13+H0PgxHdxjDEleXMj4iybUwvYt3VMA/4dBZDlnYoXDwWY81keX1p Xw== Original-Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp2120.oracle.com with ESMTP id 2mxn0pqm5d-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 08 Oct 2018 15:56:29 +0000 Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w98FuTUr013727 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 8 Oct 2018 15:56:29 GMT Original-Received: from abhmp0016.oracle.com (abhmp0016.oracle.com [141.146.116.22]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w98FuSxf016769; Mon, 8 Oct 2018 15:56:29 GMT In-Reply-To: <20181008151826.GF17855@mail.akwebsoft.com> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4735.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9039 signatures=668706 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=877 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1810080153 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 141.146.126.78 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:118213 Archived-At: > > To determine if a buffer is a dired buffer, it seems that I can > > verify that by evaluating `dired-omit-mode > > > > Is there a more idiomatic way to do so? > Duh! Asked and answered: Probably > something like (eq (major-mode) "dired-mode") ;; untested > thanks to everyone, good thread Use `derived-mode-p', rather than test for equality.