From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.help Subject: Re: Directory name to variable (dired?) Date: Mon, 8 Oct 2018 11:27:41 -0400 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="UTF-8" X-Trace: blaine.gmane.org 1539012377 23898 195.159.176.226 (8 Oct 2018 15:26:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 8 Oct 2018 15:26:17 +0000 (UTC) To: Help Gnu Emacs mailing list Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 08 17:26:13 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 1g9XQC-00065x-Ri for geh-help-gnu-emacs@m.gmane.org; Mon, 08 Oct 2018 17:26:13 +0200 Original-Received: from localhost ([::1]:46890 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g9XSJ-0006Ic-Ds for geh-help-gnu-emacs@m.gmane.org; Mon, 08 Oct 2018 11:28:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57805) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g9XRq-0006IR-Mx for help-gnu-emacs@gnu.org; Mon, 08 Oct 2018 11:27:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g9XRp-0003Gm-Tq for help-gnu-emacs@gnu.org; Mon, 08 Oct 2018 11:27:54 -0400 Original-Received: from mail-ot1-x335.google.com ([2607:f8b0:4864:20::335]:46240) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g9XRp-0003Gb-NM for help-gnu-emacs@gnu.org; Mon, 08 Oct 2018 11:27:53 -0400 Original-Received: by mail-ot1-x335.google.com with SMTP id o21so19924689otb.13 for ; Mon, 08 Oct 2018 08:27:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=o69BAP+Qnfrk2O1nLWPBWab6XPpzy27b7BzuGjo/4AI=; b=Yn8LJ8L244SsFo7tuZxB1HRx9hPdcTx8DcQ/8o1HXEyxagL985t1R6qtbgs8Pqx7GB qyWwTCyDXXkZTvYjVij1UgBhmmNkmbbMQ67K7iR4bksp7v4+9zPecLnYJpoFwlk/p228 t0x+Ap1/U8b1JiaLY5ZvWjauT85Lt3trop23kXkbger76KnEFV38f/eT/Qwwk2d24SvB Z70IlQ35zQZEHqr5vYoMoXH/P/dbzwlCOJdUuUBWHUcipY505/EMtSU7T2hNpwC3fiOF Kyw1I3H8sISbq9ps2g0m4YTTrsuBBWO4tK7fKN60m3zKlZW1mrgwBWFEDsJO3bOe2Ln4 LeVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=o69BAP+Qnfrk2O1nLWPBWab6XPpzy27b7BzuGjo/4AI=; b=CHN9xYpbJBBjq5bAZNyLhuVMrJhNtpczKSlRJ50Pfp0sgcZkUtJxD/ANUU70ETAZzo iv4BshWvqfDjllY7TM6T1wputFP8ZIqNBc1H/ce8OPDg7oTk07haqgNS+IjdPG0r1u6m lqNBaOqpQVkRVTTqMnSoAiwIk4kHUKyYRxOjujYR9WROVzy2OtrYzfVL2Om+xU588s/r 51ri6psDFxkruQnOUUkbnjZXUAdsSLkEKoBH18oXeFzh0KmoCo+8L7VNjr026HFwfOSB zoqGd/0E6oAROdfqsgt4xE5zEMm4MOoJtzb8aaNVpd11MsfUVybE/voOtUpAkO2kEaZX L7UA== X-Gm-Message-State: ABuFfogSTDD3iV0+zAHc8R+M6rdgUDwbnhKIsdtzuRNQhknz5SUANWsp PN89lqHb4LqnEhODW4OVXFlYvdhwLq7St6YEntVrGA== X-Google-Smtp-Source: ACcGV62aQ2aqBvpD2cWAPo44FtISmABK6LyUDWJXqmXRR9kq0uGyKim7QI3N/1Jxbj2x1Or2iws6mPf9xG1qnvbJJbU= X-Received: by 2002:a9d:7452:: with SMTP id p18mr11721831otk.50.1539012472539; Mon, 08 Oct 2018 08:27:52 -0700 (PDT) In-Reply-To: <20181008151826.GF17855@mail.akwebsoft.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::335 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:118207 Archived-At: On Mon, 8 Oct 2018 at 11:18, Tim Johnson wrote: > > 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 You'll want to single quote 'dired-mode the symbol for `eq' comparisons. Possibly use the `derived-mode-p' function instead.