From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#32852: 25.2; No option for emacsclient to open files in specific mode Date: Thu, 3 Oct 2019 03:21:54 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="206863"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Emil Marklund , 32852@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 03 03:23:20 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iFppt-000rfR-Hs for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Oct 2019 03:23:17 +0200 Original-Received: from localhost ([::1]:60438 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iFpps-0003Db-E9 for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Oct 2019 21:23:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34136) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iFppi-0003DQ-QK for bug-gnu-emacs@gnu.org; Wed, 02 Oct 2019 21:23:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iFppg-0002gv-Rw for bug-gnu-emacs@gnu.org; Wed, 02 Oct 2019 21:23:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57982) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iFppe-0002fU-Cz for bug-gnu-emacs@gnu.org; Wed, 02 Oct 2019 21:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iFppe-0000Br-2f for bug-gnu-emacs@gnu.org; Wed, 02 Oct 2019 21:23:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Oct 2019 01:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32852 X-GNU-PR-Package: emacs Original-Received: via spool by 32852-submit@debbugs.gnu.org id=B32852.1570065736648 (code B ref 32852); Thu, 03 Oct 2019 01:23:02 +0000 Original-Received: (at 32852) by debbugs.gnu.org; 3 Oct 2019 01:22:16 +0000 Original-Received: from localhost ([127.0.0.1]:38567 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iFpot-0000AO-LC for submit@debbugs.gnu.org; Wed, 02 Oct 2019 21:22:15 -0400 Original-Received: from mail-pl1-f177.google.com ([209.85.214.177]:38142) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iFpoo-0000A6-TF for 32852@debbugs.gnu.org; Wed, 02 Oct 2019 21:22:11 -0400 Original-Received: by mail-pl1-f177.google.com with SMTP id w8so685374plq.5 for <32852@debbugs.gnu.org>; Wed, 02 Oct 2019 18:22:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=jOHPTdMOKp6BsJbFVoo9ml582OSIWJhivYn12ROJ8is=; b=KgGviLJNosqBzwudlo1dyn0h9J0gHwBs+4YeVPtGxd+G2YFnCxB4+W9j4ASiD9riew /kcYuF11gOMda5u+xHVSzPE72NM8EkK4KL0HdOrDuihJkNWUq0jNuHPDhFBP4Zh9VBOh W1QecAXCfw4PPzlJBflCIvGTO6xYStbHMf4FJSLWzidcC+Fw+iqWfIMX0ud5YKl6O/s7 FAPVSpjKmQ0nYExp2FRVpVX5/QRvnenw9ZkCrV4n/11qGcEPWBNkbJTVE2y2gD2qAyb/ Uz6T5MXuXz1nOjQcZra8/nwQW8gszKsUGXvyY7uVIks7KzW9zRJZaMZvEcHGoruV1zYR eLhg== X-Gm-Message-State: APjAAAV7/xXVz44igDWtU75N9sZeGyWDGovKvrVmO3PPAvB7rYH0Xdm7 r9lGSM5OH0eRl9BVtApEZN54P6zcXH3sep8pXp4= X-Google-Smtp-Source: APXvYqz29SkkmioKrvwuj3QLPSa7n9t1FSbl4PmGsPKQUpYYxdbbHv6PatcXM0GJronPOhUDWMhilHq5Xamnd5/JhQk= X-Received: by 2002:a17:902:a515:: with SMTP id s21mr7118791plq.259.1570065725246; Wed, 02 Oct 2019 18:22:05 -0700 (PDT) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:168191 Archived-At: Eli Zaretskii writes: >> From: Emil Marklund >> Date: Thu, 27 Sep 2018 14:56:18 +0200 >> >> Feature request: add option for emacsclient to open files in a specific mode > > emacsclient accepts the --eval option, so I'd expect you to be able to > use that to turn on the mode you want (or more generally to run any > Lisp code). > > Did you try that? Do you mean something like this? emacsclient -c --eval '(find-file "foo") (emacs-lisp-mode)' If yes, then I guess it's workable. In any case, I'm not sure why configuring auto-mode-alist shouldn't be sufficient. Emil, could you perhaps clarify what your use case is here? Best regards, Stefan Kangas