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: hook and interactive with parameter Date: Mon, 12 Feb 2018 11:03:52 +0100 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1518443452 24533 195.159.176.226 (12 Feb 2018 13:50:52 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 12 Feb 2018 13:50:52 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 12 14:50:48 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 1elEV2-0004zG-6F for geh-help-gnu-emacs@m.gmane.org; Mon, 12 Feb 2018 14:50:28 +0100 Original-Received: from localhost ([::1]:33708 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1elEX4-0008WP-1t for geh-help-gnu-emacs@m.gmane.org; Mon, 12 Feb 2018 08:52:34 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58998) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1elAxq-0000OW-Q5 for help-gnu-emacs@gnu.org; Mon, 12 Feb 2018 05:03:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1elAxm-0003Ma-Ve for help-gnu-emacs@gnu.org; Mon, 12 Feb 2018 05:03:58 -0500 Original-Received: from mail-io0-x22a.google.com ([2607:f8b0:4001:c06::22a]:43177) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1elAxm-0003Kb-RV for help-gnu-emacs@gnu.org; Mon, 12 Feb 2018 05:03:54 -0500 Original-Received: by mail-io0-x22a.google.com with SMTP id 72so16663122iom.10 for ; Mon, 12 Feb 2018 02:03:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=BOmHKgGJFgz2+NFtizkO8SZry0eb1i+vMAS5G5dHmN8=; b=GKb64AYl9/ZFSp3SphciL1T/SIPTOFSq5mDbwyCL1UdrGsWt/sS9es0LEUBFuN1L2f XFqkvCUYU1nHzFs47fht22yBS/dGstIwX+2BVG3kpDucKWSN4UD3zb1EBBQgfp2F8nyc hRCIl/xcXg1HTK+vbKSCJ9l3n8u1QuMddWHKWzrbfvjiXUzuWy8tFtcSnPNzy7o0evH8 vm1yCKUmgfxYh4ES4wnSs+lQAdryEAFnbiBrY6kJe37dkg0jedTQy0S3dXjVGCO/Na9V vzS6aTlD1YpMBH7AqXMEhSwzD6n6Z35rx500ZqwaFG0i6EzwQGj2tqvzaGLkz0dtp+ay qkWA== 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; bh=BOmHKgGJFgz2+NFtizkO8SZry0eb1i+vMAS5G5dHmN8=; b=BrLrnbq2giMXiNwc0+Gi9a6kL8BCW37WZZiccHWJzp4mO9HLuRwZoZh1BcVBa0jXvn wRwGW7UJzTBVUj5AouaxwSIrrikoocMB6Hpg1oHTHUr/vGbDBtS9uEyic/2AK+8jbWUX Z4AJMQ0vYtMUGXQUzlL4pOT4QwVufcSSbymkZO5VFp5PW3u31ycBMdFPEKVo7x82BwkT fbRIpsCXelIYuyIpXLwXCIvG+1qHRavp0Bj6jlI52UyJWSU3ilG76Hz9Y6qcZcfeGkuP Y2/fNPrAnMeFTFcY+5znNtft25/LZXVg5J9L9+etNcAy2qwIFyBqCIchT2ww3E/hwAGm DabA== X-Gm-Message-State: APf1xPDmcq2qwTM3T6Z34CWpVq92ovCqR/uAxQeqsRB5jAxM4huxgDvb rLlg2J1H4g5PjiLaLlRxO2Xwp5+0RdnZKdlYJoifPA== X-Google-Smtp-Source: AH8x226nYCnPiki4UXv0C9hMAYqHFBcYnnF3XDOs+SRfj+c902cilhw2jsl8GLpBPqbOCQp0V0hW25zCai/W/we1dhw= X-Received: by 10.107.101.13 with SMTP id z13mr1316124iob.141.1518429833094; Mon, 12 Feb 2018 02:03:53 -0800 (PST) Original-Received: by 10.79.203.77 with HTTP; Mon, 12 Feb 2018 02:03:52 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4001:c06::22a X-Mailman-Approved-At: Mon, 12 Feb 2018 08:51:36 -0500 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:115952 Archived-At: 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. How can I do it what is the correct way to run this function? (add-hook '...-hook 'my-function) (defun my-function (param1) (interactive "sParam1: ") ....)) regards Lajos