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: Tue, 13 Feb 2018 09:42:54 +0100 Message-ID: References: <86tvumgrbk.fsf@zoho.com> <86lgfygoux.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 1518511299 4987 195.159.176.226 (13 Feb 2018 08:41:39 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 13 Feb 2018 08:41:39 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 13 09:41:35 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 1elW9X-0000Xq-HO for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Feb 2018 09:41:27 +0100 Original-Received: from localhost ([::1]:56521 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1elWBZ-0006mR-1n for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Feb 2018 03:43:33 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43363) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1elWAy-0006lM-T1 for help-gnu-emacs@gnu.org; Tue, 13 Feb 2018 03:42:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1elWAx-0001Q0-Kv for help-gnu-emacs@gnu.org; Tue, 13 Feb 2018 03:42:56 -0500 Original-Received: from mail-io0-x232.google.com ([2607:f8b0:4001:c06::232]:42934) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1elWAx-0001Pi-G8 for help-gnu-emacs@gnu.org; Tue, 13 Feb 2018 03:42:55 -0500 Original-Received: by mail-io0-x232.google.com with SMTP id g14so14271130iob.9 for ; Tue, 13 Feb 2018 00:42:55 -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; bh=XxoiGlmFHyq+x8XDqxrdP5ohCiX/+SY53PJkJ2tIPuc=; b=c2/a6awboorssXvFbCqb10BRu7VaKPrbDJBwAv2R93qUskF0pkv19vutRGwVwljrIK oge/q1JrauIjcMiGXjGOfOiLWO37TMQEAhI39l0A+dfLBbbiH1F75mf4eTUXY15Tn9c4 tNACPZqOgfa68fIn2w/pVD/i/ASQDt++XOHZ6h63KxGrOaHA5MUKgL3qrObTaNEEWaIi UdthR+NXfkvz5Mt0MfU0vbOnEVTIy0Nlm+7r6Ebg8q3fOSk5y3dv5x4Eg732mNG437iP Gk8Xtx3f5CnSXjzLOpuJGfKGqVKtJfJSoD2Isn2z7z8x7h9Hk++RNzYCC236QfiGOvZf QJVg== 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; bh=XxoiGlmFHyq+x8XDqxrdP5ohCiX/+SY53PJkJ2tIPuc=; b=LfPTGHu/pahmSuuCmO4skszc8R4zps40VMLVnP/gXUj8n7S3oG1GEeIqLNeYH6xNGm a29PoVvHyGjAJmR+nKDMHmsZmY2LxbVXDKiuEtp4VcoeG420XmJuRpP2GbVYqRIo8ypv WSrgfCicaunG7lxW3rIq19+V2/f3sNQUi8Rsd/Nav4CMyI5vHCA5dTlHylzjfWiBFC1c t8LkrtlT6Gv8RZXLCrPdzpPwpYGn6pg/K+dVNvA+IsO2geKndEgYSVuNenYnaCh1KGmN 9dAAoKCcFQI4qXG1ucaPTrf31PxhM3pOyL7sxm2jrfuAmP/WuKqYouTW1R8vsaoWZ5mT 2FVQ== X-Gm-Message-State: APf1xPAACaQk868i67g/toEmdz+fRg5ItMWMLZP5zhm2wzeLYfurmPCd YGVhKoQoZpQt7EmV0TIT5GFP54Jqw92ycX1S6z6ucfO8 X-Google-Smtp-Source: AH8x225r4U2sAKbIpHcJoMR+aS9wfEVx9+ZmTzXpSmoUcdeRhZvtpO81VY5lnJDUhmsUBGB17rpPshB09dbTJLbfwcQ= X-Received: by 10.107.101.13 with SMTP id z13mr463593iob.141.1518511374615; Tue, 13 Feb 2018 00:42:54 -0800 (PST) Original-Received: by 10.79.203.77 with HTTP; Tue, 13 Feb 2018 00:42:54 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4001:c06::232 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:115963 Archived-At: Maybe I have to find a project/solution/workspace handler and if the opened file is into these workspace then I will run intero-mode. On Tue, Feb 13, 2018 at 9:23 AM, Lajos Bodnar wrote: > Thanks a lot, > I understood what the problem is with this concept. > What is your advice ? > The problem is that if I open a haskell file then sometimes I don't want > to run intero-mode with it (because the intero mode is very expensive). > In most cases I would like to run intero but not all time. > > On Mon, Feb 12, 2018 at 5:21 PM, Emanuel Berg wrote: > >> tomas wrote: >> >> > That said, to me, calling user interaction >> > from a hook "feels" a bit strange. >> > But perhaps it's just me. >> >> No, hooks are often troublesome and the more you >> put into them, the more trouble you get. >> In this case while I don't think the computer >> will blow up, I think the OP will be annoyed >> with this question popping up all the time. >> It isn't the Emacs way. And it is inefficient >> as well as without it, say 50% of the times it >> would be correct without any interference, now >> you have to answer yes or no 100% of the >> times instead. >> >> -- >> underground experts united >> http://user.it.uu.se/~embe8573 >> > >