From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: znavko@disroot.org Newsgroups: gmane.emacs.help Subject: Re: How to enable when run Perl in Emacs? Date: Wed, 03 Mar 2021 18:20:54 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28026"; mail-complaints-to="usenet@ciao.gmane.io" To: "=?utf-8?B?RGlldGVyIEtsw7xudGVy?=" , "znavko--- via Users list for the GNU Emacs text editor" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Mar 03 19:22:29 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lHW8i-00079t-UH for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 03 Mar 2021 19:22:28 +0100 Original-Received: from localhost ([::1]:46428 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lHW8h-0003Ok-Ot for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 03 Mar 2021 13:22:27 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54886) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lHW7N-0003MF-3p for help-gnu-emacs@gnu.org; Wed, 03 Mar 2021 13:21:06 -0500 Original-Received: from knopi.disroot.org ([178.21.23.139]:43500) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lHW7K-0008IO-NO for help-gnu-emacs@gnu.org; Wed, 03 Mar 2021 13:21:04 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 511EC5797E; Wed, 3 Mar 2021 19:20:58 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at disroot.org Original-Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id etaqa0dMMXUH; Wed, 3 Mar 2021 19:20:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1614795655; bh=T5omu/nM2cP3vTHcQbShlt3sPcXgtOxiPykoFNfJt30=; h=Date:From:Subject:To:In-Reply-To:References; b=MQHJq/0pXalsaTq0Fq08uEKvkdMQJwn3ZiIkcbxSrVnVGF7zLGk7Ddv0+Od/ZGTbo V0otyRDMTzEhyoDnfTyp4qFxUgFXB6hF4F6yN21DkpaIAPwMvQQpD+9f3lBlACfwL5 AEm7X7E6FUrOsVgWVa6wLukfDKpGMgLUWisS+bUjnC5HIbUTqAL+0shUYcOnJqymAt 3NDsmUelPHuN5ukmK5Gejv3qAv5j6aELNbolDGw38nz4LOGrgL3BgIWCVriIVqEaOO Z+JqiAXkUCsF5DXiOdt0fZ5P1hc2X4Eje89K2grsUzoJxpbfaLAUY/ZioJWcr003Dy xr1/DH+1TjtMg== In-Reply-To: Received-SPF: pass client-ip=178.21.23.139; envelope-from=znavko@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:128350 Archived-At: Thank you!=0A=0Amode-compile has old-style quotes, and emacs says:=0A=0AL= oading mode-compile.el: old-style backquotes detected!=0A=0ABut this is t= he main thing I wish to have - useful compiler of Perl in emacs.=0A=0A=0A= February 28, 2021 10:24 PM, "Dieter Kl=C3=BCnter" w= rote:=0A=0A> znavko--- via Users list for the GNU Emacs text editor=0A> <= help-gnu-emacs@gnu.org> writes:=0A> =0A>> Hello, Emacs Help!=0A>> I tried= to use Emacs Elpy for Python, and there was a simple way to=0A>> run my = code with just only C-c C-c.=0A>> Standard input worked fine there, I cou= ld interact with my program in=0A>> separate Emacs window.=0A>> =0A>> I w= ish the same codeing on Perl in Emacs. I've installed Perl=0A>> Developme= nt Environment from CPAN=0A>> and added lines into .emacs file. Perl high= lights perfectly, but there=0A>> are some inconvenience:=0A>> =0A>> 1. Ru= nning scripts is very slow, because I need to press 'C-c r', then=0A>> Em= acs ask 'would you like to save file', also it may ask me 'there is=0A>> = a process of compilation, do you want to kill it?'=0A>> Here i want just = one single command torun my script without any question.=0A>> =0A>> 2. Th= ere is no possibility tointeract with my program in the Emacs=0A>> window= where my script is executing.=0A>> I found some hacks how to use = in PDE but that is for running=0A>> scripts with Emacs from terminal, no= t from the window where I coding=0A>> it.=0A>> =0A>> Is there any comfort= able Emacs module for Perl editing and debugging=0A>> like Elpy for pytho= n?=0A>> This is my simple program that cannot get any input from the emac= s window:=0A>> #!/usr/bin/env perl=0A>> =0A>> use strict;=0A>> use warnin= gs;=0A>> use feature 'say';=0A>> =0A>> say 'Hello!';=0A>> =0A>> print "Ho= w old are you?";=0A>> my $age =3D <>;=0A>> print "WOW! You are $age years= old!";=0A>> This is my .emacs:=0A>> =0A>> ; One window mode=0A>> (setq i= nhibit-startup-screen t)=0A>> ;; perl mode pde=0A>> (add-to-list 'load-pa= th "~/elisp/pde/lisp")=0A>> (load "pde-load")=0A>> ;; python emacs-elpy= =0A>> ; (setq python-shell-interpreter "python3")=0A>> ; (setq elpy-rpc-p= ython-command "python3")=0A>> ;(elpy-enable)=0A>> ;; tab indent=0A>> ;; s= et default tab char's display width to 4 spaces=0A>> (setq-default tab-wi= dth 4) ; emacs 23.1 to 26 default to 8=0A>> =0A>> ;; set current buffer's= tab char's display width to 4 spaces=0A>> (setq tab-width 4)=0A>> ;; Bas= icCustomization=0A>> (setq inhibit-startup-screen t) ;; disable welcome m= essage=0A>> (global-linum-mode t) ;; enable line numbers globally=0A>> (s= etq linum-format "%4d u2502") ;; format line number spacing=0A> =0A> I us= e mode-compile, cperl-mode and PDE=0A> =0A> (require 'pde)=0A> (defalias = 'perl-mode 'cperl-mode)=0A> (setq cperl-hairy t)=0A> =0A> mcpan install E= macs::PDE=0A> =0A> -Dieter=0A> =0A> --=0A> Dieter Kl=C3=BCnter | Director= y Service=0A> http://sys4.de=0A> 53=C2=B037'09,95"N=0A> 10=C2=B008'02,42"= E