Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #58035

Small emacs fix for Google group users

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder7.xlned.com!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <rustompmody@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.054
X-Spam-Evidence '*H*': 0.89; '*S*': 0.00; 'subject:group': 0.05; '---------': 0.07; 'url:blog': 0.10; 'hacked': 0.16; 'lisp': 0.16; 'one)': 0.16; 'quoted': 0.16; 'spacing': 0.16; 'weird': 0.16; 'bit': 0.19; 'non': 0.24; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; '"")': 0.31; 'subject:users': 0.31; 'file': 0.32; 'text': 0.33; 'maybe': 0.34; 'received:google.com': 0.35; 'there': 0.35; 'url:org': 0.36; 'should': 0.36; 'to:addr:python-list': 0.38; 'skip:- 10': 0.38; 'to:addr:python.org': 0.39; 'users': 0.40; 'back': 0.62; 'more': 0.64; 'here': 0.66; 'hoping': 0.75; '(defun': 0.84; 'rubbish': 0.84; 'rusi': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=z7iE7S3bT8471C/MBR8L1fLkC4qCrFU1+GdA5kmzMfg=; b=Q5UrwHDqUAV8QZCJ4kg/12z3dlvjsD6dAn7keqkA8m4OLy16wYw+yVMPgKFwn/Qk2G uayjZ1ciuE+7oqNzusqVPhiuqdr2SWHqbYbrbbcOEGHUbE6ynSL4P9Zi3krY8Bqyjsgq f/Yyyjo4v/aUMLuOIlLrYLuP+rc/fw0OzqCsdUUpK9L3mwxBEZ0n7AihG7VGpWfiw7ag htHda4O0++l2hmKOVTDAIxSj4fX58XYuzKJXDw0j0uOrOOVEQCDnNyei4iYpbf3s3bss BOMUtW1L5cx8UON0oETH7ke3p6KylxLLEg2/geqrILeWI07W5k7G9wmWxx9RgvSuRclJ rFwQ==
X-Received by 10.68.203.195 with SMTP id ks3mr4964032pbc.83.1383138833399; Wed, 30 Oct 2013 06:13:53 -0700 (PDT)
MIME-Version 1.0
From Rustom Mody <rustompmody@gmail.com>
Date Wed, 30 Oct 2013 18:43:33 +0530
Subject Small emacs fix for Google group users
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1808.1383138843.18130.python-list@python.org> (permalink)
Lines 31
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1383138843 news.xs4all.nl 15902 [2001:888:2000:d::a6]:60482
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:58035

Show key headers only | View raw


For the double spacing rubbish produced by GG, I hacked up a bit of
emacs lisp code
---------
(defun clean-gg ()
  (interactive)
  (replace-regexp "^> +\n> +\n> +$" "-=\=-" nil 0 (point-max))
  (flush-lines "> +$" 0 (point-max))
  (replace-regexp "-=\=-" "" nil 0 (point-max)))

(global-set-key (kbd "<f9>") 'clean-gg)
--------------
To try
1. Eval the following in emacs*
2. Cut-paste the quoted text from GG into emacs
3. Call with F9
4. Cut-paste back into GG

* Yeah emacs usage will seem weird to non emacs users
Im just hoping some more habitual emacs users can try this, maybe a
few tweaks here and there and then less habituated emacs users can try
it.

For now if you put the elisp above in a file gg.el and start emacs with
$ emacs -l gg.el
(thats an el not a one) it should do the eval above.


Rusi
-- 
http://www.the-magus.in
http://blog.languager.org

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Small emacs fix for Google group users Rustom Mody <rustompmody@gmail.com> - 2013-10-30 18:43 +0530
  Re: Small emacs fix for Google group users rusi <rustompmody@gmail.com> - 2013-10-30 06:22 -0700

csiph-web