From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Anders Lindgren Newsgroups: gmane.emacs.devel Subject: Re: Teaching emacsclient to act as a pager, and more Date: Wed, 8 Jun 2016 18:13:51 +0200 Message-ID: References: <1465262706-5229-1-git-send-email-sbaugh@catern.com> <87porrd6gz.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c1246106fab2c0534c6973b X-Trace: ger.gmane.org 1465402472 28947 80.91.229.3 (8 Jun 2016 16:14:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Jun 2016 16:14:32 +0000 (UTC) To: Spencer Baugh , emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 08 18:14:31 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bAg7j-00088y-Ed for ged-emacs-devel@m.gmane.org; Wed, 08 Jun 2016 18:14:31 +0200 Original-Received: from localhost ([::1]:58285 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAg7i-0000Gl-OE for ged-emacs-devel@m.gmane.org; Wed, 08 Jun 2016 12:14:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59971) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAg78-0000E1-Vt for emacs-devel@gnu.org; Wed, 08 Jun 2016 12:13:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bAg77-0000Qc-0T for emacs-devel@gnu.org; Wed, 08 Jun 2016 12:13:53 -0400 Original-Received: from mail-vk0-x232.google.com ([2607:f8b0:400c:c05::232]:35159) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAg76-0000QD-S7 for emacs-devel@gnu.org; Wed, 08 Jun 2016 12:13:52 -0400 Original-Received: by mail-vk0-x232.google.com with SMTP id d127so18066395vkh.2 for ; Wed, 08 Jun 2016 09:13:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=nOkLZCK9rgSOFQtHGSzCUBzoCzA2t88J35D/o58heyY=; b=XR3qPt/8BFxDIZuyQC9CwDcBz8DXPgswHC7GqVU+d7CwPzr50r6gYPqzTfGV7oi2fJ zfVQ0nPY/G6NJa4ivT9FIHepCCntWzk7RU3HovkFyFUxBlgyWnwHotlrldi9F3/ELDV5 QzHJdQ9kLMl8uF5CW8G+m0zFXgsK62JWra2+bi8UG8QgD+Hkg9xhaRydepw1IbbUbefc hPwyMvJj3pWsld7uj5tsKNKAUB1pr3Li+xVx8iX41SOPCHd4G/30IqwFMQvOrxdN/wSO PrEWBZXFd5wmNNZPBD2peRSS8kLoRIlJbwgSwoDIg3BD2g4f8GdLmSNkoPnkNUqIu0fX sfmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=nOkLZCK9rgSOFQtHGSzCUBzoCzA2t88J35D/o58heyY=; b=FR/zBX26Awc29dv/7QmPQ27IjyyDTh1k966Uqq+g9SeiZQ/9x1yqBM+0vWs9e+Zs81 8GahP68w5WOamxH236gwvitDqSamz73RobxE5LmQFx9HjSd3yM5YMU2gpBE+IZDpI4Mx Tj2H2dm/bhsAtWgG9xkG51Tc0F0bGEaq0UdG+wL+XelA0eY1CN6prM9C28ox5xCfOwO0 xUjJFRjqAzmCBlEVL7N4gAo+Xf3AxQblv7n+0C1faZnfaJcBdGzOKeAdMkB+cNKEo+qY 5MAaL/8bc5HPQ/hFKh6S83zviuBD79l/Em4O9qfKdN3TPdp0IJl7fkaL+EADaV0mL9Wf u9MA== X-Gm-Message-State: ALyK8tLUJlMQN6PvyJSFJQ7Z6ps9Y1dAusFcorcFIR7XznjuzUM7pBjzRXPVqrmcywiQGkFUf9WbGNsqLNxyCA== X-Received: by 10.176.64.167 with SMTP id i36mr2364914uad.60.1465402432396; Wed, 08 Jun 2016 09:13:52 -0700 (PDT) Original-Received: by 10.31.216.195 with HTTP; Wed, 8 Jun 2016 09:13:51 -0700 (PDT) In-Reply-To: <87porrd6gz.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400c:c05::232 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:204238 Archived-At: --94eb2c1246106fab2c0534c6973b Content-Type: text/plain; charset=UTF-8 > > > I am sure that these patches are terrible style, not in keeping with > > the Emacs coding conventions, and totally unportable (I wrote this on > > GNU/Linux) - I just wanted to get out a quick proof of concept. > > I can't comment on that but using emacsclient as a PAGER is one of the > top entries in my emacs wishlist. Thanks for working on that! > Another approach is to use the LESSOPEN feature of "less" to spawn an Emacs in batch mode to perform syntax highlighting, uncompressing files, access remote files via tramp etc. This is available today using the "e2ansi" package ( https://github.com/Lindydancer/e2ansi). -- Anders --94eb2c1246106fab2c0534c6973b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
> I am sure that these patches are terribl= e style, not in keeping with
> the Emacs coding conventions, and totally unportable (I wrote this on<= br> > GNU/Linux) - I just wanted to get out a quick proof of concept.

I can't comment on that but using emacsclient as a PAGER is one = of the
top entries in my emacs wishlist.=C2=A0 Thanks for working on that!

Another approach is to use the LESSOPEN featur= e of "less" to spawn an Emacs in batch mode to perform syntax hig= hlighting, uncompressing files, access remote files via tramp etc.

This is available today using the "e2ansi" packa= ge (https://github.com/Li= ndydancer/e2ansi).

=C2=A0 =C2=A0 -- Anders

--94eb2c1246106fab2c0534c6973b--