From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Lajos Bodnar Newsgroups: gmane.emacs.help Subject: Re: hook and interactive with parameter Date: Mon, 12 Feb 2018 16:43:04 +0100 Message-ID: References: <86tvumgrbk.fsf@zoho.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1518451085 3541 195.159.176.226 (12 Feb 2018 15:58:05 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 12 Feb 2018 15:58:05 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Emanuel Berg Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 12 16:58:01 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 1elGUA-0007qd-EI for geh-help-gnu-emacs@m.gmane.org; Mon, 12 Feb 2018 16:57:42 +0100 Original-Received: from localhost ([::1]:45816 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1elGWB-0003sf-To for geh-help-gnu-emacs@m.gmane.org; Mon, 12 Feb 2018 10:59:47 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60206) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1elGG6-0007YV-Rk for help-gnu-emacs@gnu.org; Mon, 12 Feb 2018 10:43:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1elGG2-0001Fd-1l for help-gnu-emacs@gnu.org; Mon, 12 Feb 2018 10:43:10 -0500 Original-Received: from mail-it0-x22c.google.com ([2607:f8b0:4001:c0b::22c]:55206) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1elGG1-0001F2-S3 for help-gnu-emacs@gnu.org; Mon, 12 Feb 2018 10:43:05 -0500 Original-Received: by mail-it0-x22c.google.com with SMTP id k131so7161329ith.4 for ; Mon, 12 Feb 2018 07:43:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=6uzkBO3u73YjTl7Y8gpi06lvsPUZEZQNi8+hn6fQ5nw=; b=R0CFgcHKHePza8Bkaz4aKjRWpu20rfbjbDCZCBJPDvvwlklqGoJTjvMw4HsU7h7KEu qbZne61A8QjE+UYc8KWJj47G9/2ihyvdUStvEJjb3FvUsM9UocoRwhPjTo4aQppPIgUT Z+uJ0Cm3ZcBMRkubVAoJBfMfwD/LB5tHHFVUlvncEwzvXhKcG3NcTLot9lKPjFzWFN1m 5EA5sGyGUx5VLt7jr4d5/Cd97sBh3gkqM+wkRlflTU8pAYKvDh4/yuaa3x+i4iJBW2/Q Z7aPoP2JOXsJ7WvQ38NL4WpnpgPPpSffKfVnJJrXLBl7MBNQxRvpLsc6w6qANmGUrAC9 eGtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=6uzkBO3u73YjTl7Y8gpi06lvsPUZEZQNi8+hn6fQ5nw=; b=fFwKKdg2hlh3NfZYr8enFh/mDbiSMEOb89c1m8m1GwvfUajyPBao9oJz3WD5sycW6w OMqSjglJlehHBDTCSDdgEcp3FiXzn4bAD1fYsWtvV16TSbZIkbpCovoWC6Rx3Q1fsSOz HXlOByXGLiAjsqN/WtssV4VxbEmMJVY3YYAbnEDxvuAnlh9PoOuORABzPvCW++V5Fiqq dKI9aJLHQFGWAKcc4niaNkgMIdeQMd2dZyH9Ph/c6ekuVLXbcMqIVbuRqjmGkvVvpA7v jsBZWiWAlGxyaI7sWbC1Bt2fQ5Oh1sN7YAP48Q293K903757A7y4PJnx6hh/ujbOWblL RwIw== X-Gm-Message-State: APf1xPB4L64y2ftAPXvkXX4fu1ShkORtkdH4Stg7tb++8MomVU7JRK2h KPLJfOIaVvpE9xxv/JDWSZjNrJbiHG/+3ijtUfk= X-Google-Smtp-Source: AH8x224pQ9UJRPWIcws+XNyERz36qnlvLGR3PeCaQMlw2vULmRIDVDa2u14yVDaIALdBfa7/8L1xq25qZMJE0vtLLV0= X-Received: by 10.36.57.197 with SMTP id l188mr6151074ita.25.1518450185160; Mon, 12 Feb 2018 07:43:05 -0800 (PST) Original-Received: by 10.79.203.77 with HTTP; Mon, 12 Feb 2018 07:43:04 -0800 (PST) In-Reply-To: <86tvumgrbk.fsf@zoho.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4001:c0b::22c 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:115955 Archived-At: Thanks for your advice. I would like to write a function which run up if I open a haskell file. This function will ask a question automaticaly about that i would like to run the intero-mode or not. regards Lajos On Mon, Feb 12, 2018 at 4:28 PM, Emanuel Berg wrote: > Lajos Bodnar wrote: > > > Hi, I'm new in emacs scripting but I would > > like to do that: - I open a file after the > > file hook run I would like to run a function. > > - I can do this without parameter but if > > I would like to use this function with > > getting input from prompt. It will throw > > an error. > > Can you rephrase this not in terms of the > un-implemented implementation but in terms of > what will happen, where, when, and why? > > Might be easier to understand that way and > quite possible there is a better way than > messing with hooks - often there is. > > -- > underground experts united > http://user.it.uu.se/~embe8573 >