From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Constantin Kulikov Newsgroups: gmane.emacs.help Subject: Re: Determine if emacs or emacsclient was run with filename(s) as commandline argument. Date: Sun, 12 May 2013 14:56:14 +0400 Message-ID: References: <518F4428.3000505@pobox.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1368356192 17830 80.91.229.3 (12 May 2013 10:56:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 12 May 2013 10:56:32 +0000 (UTC) To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun May 12 12:56:30 2013 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 1UbTx8-0003Hc-Lm for geh-help-gnu-emacs@m.gmane.org; Sun, 12 May 2013 12:56:30 +0200 Original-Received: from localhost ([::1]:37560 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UbTx8-0001EY-Cl for geh-help-gnu-emacs@m.gmane.org; Sun, 12 May 2013 06:56:30 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45760) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UbTwu-0001ER-Jz for help-gnu-emacs@gnu.org; Sun, 12 May 2013 06:56:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UbTwt-0004j4-Ea for help-gnu-emacs@gnu.org; Sun, 12 May 2013 06:56:16 -0400 Original-Received: from mail-ia0-x22b.google.com ([2607:f8b0:4001:c02::22b]:62773) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UbTwt-0004iz-9s for help-gnu-emacs@gnu.org; Sun, 12 May 2013 06:56:15 -0400 Original-Received: by mail-ia0-f171.google.com with SMTP id r13so6510024iar.30 for ; Sun, 12 May 2013 03:56:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=Cy2t8YWpvl/sY8Ok/2UO3vw7xsW3W9WCsZNhUqDs/VE=; b=wKsloFnZadW4yTO1jqushkK9d+cz0nztUimMhuKlB7cTIgMUn32yQv1HzQXxO/Jvac 8Z62TID/IalHswdr5wmgg84peceS16ah2vt2JXO4MZcbmaJxiqHw1V6CTjPfOpQioY9q +U3GHVfUPNNBoTC9f4bMFiYGelZYVBs9uJqD6pSZiXrUUjy+E95+cqXGahovbS9aOvyl V9TTImQ1zx6ILbF+wKHK9YlYWYvlDE1B/gmtFitStxHtJ+o6PuKfpy2AoTtk0xbMpYpJ Kfr/PzCpcY8RR9ThssQN0BXjuL11XhfAWd1NZviKY2mC1sjAUC+Rap9D6wamvaV/gq9f vfgg== X-Received: by 10.50.16.112 with SMTP id f16mr7082968igd.55.1368356174710; Sun, 12 May 2013 03:56:14 -0700 (PDT) Original-Received: by 10.42.207.198 with HTTP; Sun, 12 May 2013 03:56:14 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c02::22b X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:90660 Archived-At: found server-visit-hook, will try use it On 12 May 2013 11:41, Constantin Kulikov wrote: > Looks like it's always `("emacs")' for emacsclient -c file, or it's > processed and set to that value before any of hooks that I can set. > I discovered that before-make-frame-hook and after-make-frame-functions is > triggered before the find-file-hook, but command-line-args is `("emacs")' > in each of this hooks. >