From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.help Subject: Re: How to rename files to numbers in Eshell? Date: Fri, 1 Oct 2021 23:51:29 +0300 Message-ID: References: <87ee9u2neh.fsf@inka.de> <87r1d6o9eb.fsf@inka.de> <875yuii4nk.fsf@inka.de> <87h7e2krgb.fsf@zoho.eu> <8735plk3m0.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23536"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.0.7+183 (3d24855) (2021-05-28) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 01 22:56:16 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 1mWPZn-0005wx-GQ for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 01 Oct 2021 22:56:15 +0200 Original-Received: from localhost ([::1]:51922 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWPZm-0003NO-Dg for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 01 Oct 2021 16:56:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45298) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWPWr-00020u-0n for help-gnu-emacs@gnu.org; Fri, 01 Oct 2021 16:53:13 -0400 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:60475) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWPWo-000510-P5 for help-gnu-emacs@gnu.org; Fri, 01 Oct 2021 16:53:12 -0400 Original-Received: from localhost ([::ffff:154.230.227.14]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 0000000000037E5C.0000000061577532.0000189B; Fri, 01 Oct 2021 13:53:06 -0700 Mail-Followup-To: help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: <8735plk3m0.fsf@zoho.eu> Received-SPF: pass client-ip=217.170.207.13; envelope-from=bugs@gnu.support; helo=stw1.rcdrun.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-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:133493 Archived-At: * Emanuel Berg via Users list for the GNU Emacs text editor [2021-10-01 03:11]: > Jean Louis wrote: > > > Or maybe there is not much of Bash as my "Bash" scripts were > > mostly Common Lisp, Perl, etc. > > Common Lisp is the so-called "industrial strength" Lisp and > should be much faster than Elisp, did some work on that (SBCL) > with SLIME and SDL2/OpenGL (12 files) > Just that for my needs speed does not matter much. What really matters is the integration opportunity that Emacs offers. We don't have our computing so prepared to be fully integrated, but we have got opportunities to make it so. Example is sharing files from mobile devices, they have made it well integrated. Users on any mobile device may go into gallery and share image or file to any kind of available communication channel such as Bluetooth, email, http sharing over web server provided application is installed, SMS if available, XMPP chat, or other types of chat, and so on. File sharing is fundamental to computer. We don't have file sharing well integrated in Emacs. For example there is no quick Dired function to email a file or set of files. There is "attach file" to email function but it is not so straight forward. There is Tramp to share to other devices, which is good integration related package. Back to Common Lisp. It is even less integrated for basic needs. In Emacs I can mark files and share them to other device or use functions to share them by email or publish files on remote devices. In Common Lisp I have to program everything myself, too much of it. Marking of files I would need to program myself. Taking care of even lower level functions. > However ... there were a bunch of problems with the SLIME > workflow, it didn't get to the point that it felt like Elisp > in terms of interaction/integration, maybe I wasn't persistent > enough, but here yes, from my POV of relative failure in that > regard I can see that you want it Elisp and not CL. Everything can be done with Common Lisp and Scheme, but it is more work with Common Lisp as compared to Emacs once user understands how much of it is already close to fingertips. > To translate either Perl or Python to Elisp to I would _never_ > do ... I have done that from Perl to Common Lisp, from Perl to Emacs Lisp. > > Bash is different environment to Emacs, when person works in > > one environment then person tends to integrate missing > > peaces. Would I work in Racket, I would most probably > > rewrite it all to Racket. > > Agreed, but I do filesystem shell tools from a terminal > emulator (the Linux VTs with tmux on top) which I think is > very common (maybe xterm and tmux is more common but in > principle) and see no reason and no advantage, on the > contrary, to move that - or even write it to begin with - in > Elisp ... You are saying the environment decides what to use, > yes, that and the purpose and associated tools, but to me, all > those point at the shell (e.g. zsh as I use) and to at > Emacs ... I use Emacs Lisp to prepare images and videos for WWW, publish files to remote servers, generate hyperlinks and similar. Sometimes I have video files to be converted to WEBM format and I delegate it to network machine which manages conversion by Emacs Lisp. If I have local function to convert videos, then I just copy it remotely and have remote computer do the same. It is programming language, not just editor. There is fundamental principle that almost anything we do on computer is related to writing, thus editing. In your example you are mentioning it without notice, you have to edit and type text in xterm and within tmux. Normally I use `screen' similar to `tmux' to launch `aria2c' when I am downloading some movies on remote server. Internet connection is not stable from under developed countries and `screen' prevents process to break. Later I find the file properly downloaded. When I learn how to launch a torrent remotely to `aria2c' then I will do it from Emacs. Why open terminal, ssh, login, when I could just get a prompt and insert torrent link and let computer think of the rest. In general it is good to strive to more integration that computers do the work for us. -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/