Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'bash': 0.07; 'character,': 0.07; 'override': 0.07; 'subject:postings': 0.07; 'effect.': 0.09; 'literal': 0.09; 'newline,': 0.09; 'tab': 0.09; 'typed': 0.09; 'weak': 0.09; "'foobar'": 0.16; 'bind': 0.16; 'complicated,': 0.16; 'example).': 0.16; 'literal,': 0.16; 'literal.': 0.16; 'obviously,': 0.16; 'wrote:': 0.17; 'sender:addr:gmail.com': 0.18; 'appropriate': 0.20; 'to:name:python-list@python.org': 0.20; 'lets': 0.22; 'insert': 0.23; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; '(such': 0.27; "d'aprano": 0.29; 'readline': 0.29; 'steven': 0.29; 'writes:': 0.29; 'character': 0.29; 'definition': 0.29; 'manual': 0.29; 'function': 0.30; 'stuff': 0.30; 'received:209.85.160.46': 0.32; 'to:addr:python- list': 0.33; 'version': 0.34; 'received:google.com': 0.34; 'list': 0.35; 'nov': 0.35; 'received:209.85': 0.35; 'something': 0.35; 'next': 0.35; 'but': 0.36; 'characters': 0.36; 'useful': 0.36; 'being': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'list,': 0.39; 'where': 0.40; "you've": 0.61; 'to:2**2': 0.62; 'different': 0.63; 'learned': 0.65; 'treat': 0.65; 'today.': 0.69; 'sounds': 0.71; 'received:117': 0.75; 'keystrokes': 0.84; 'thing,': 0.84; 'hand,': 0.97 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type; bh=xnHLdcDxICPowDpOehYIUHO3qJw6r8i8/RV2WpqYc7A=; b=azDJTiLprAyw+PzOmEgmTWmQAyJQH77/HzqdwupP87xoMICEEFCY6tBBmn0BXyF4ZV cst8ezl9JIPTLXOPzHa+Djk5NAHNdZz00XcQ368xUIS7zF/9LqNvO8EQ3MRnqHGagObu XWawyEGJfDumD+wvpHRljPBDzPOP5nR9Urrq+QM6fx4QZl3PcrouG35MQ5rWLCLFQ0G4 Z9G0L1tPe6ldnYu4JVkVWvtZ9cjl9hAtbXpk/Isx8uPmvs4a7rEZfhtMQqdW+87CtAgY g7Ru+cdF0Ii1SMCJdk60yEu20LrVELBG7ZGM7EaDgKo8uitsN2MGyQKWlS4bPIYWVr+E upIQ== Sender: Kushal Kumaran From: Kushal Kumaran To: "Prasad\, Ramit" , "python-list\@python.org" Subject: RE: Obnoxious postings from Google Groups In-Reply-To: <5B80DD153D7D744689F57F4FB69AF47416783A68@SCACMX008.exchad.jpmchase.net> References: <50989613$0$29980$c3e8da3$5496439d@news.astraweb.com> <50999452$0$29980$c3e8da3$5496439d@news.astraweb.com> <5B80DD153D7D744689F57F4FB69AF47416783A68@SCACMX008.exchad.jpmchase.net> User-Agent: Notmuch/0.14 (http://notmuchmail.org) Emacs/24.1.1 (x86_64-pc-linux-gnu) Date: Wed, 07 Nov 2012 15:08:06 +0530 MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 37 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1352281096 news.xs4all.nl 6921 [2001:888:2000:d::a6]:59397 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:32881 "Prasad, Ramit" writes: > Steven D'Aprano wrote: >> >> On Tue, 06 Nov 2012 17:16:44 +0000, Prasad, Ramit wrote: >> >> >> To enter the newline, I typed Ctrl-Q to tell bash to treat the next >> >> character as a literal, and then typed Ctrl-J to get a newline. >> > >> > That sounds complicated, my version of bash lets me type >> > 'foobar' for the same effect. >> >> Well, I learned something new about bash. >> >> On the other hand, the Ctrl-Q next-char-is-literal trick works for >> entering control characters that otherwise don't have a key on the >> keyboard. >> > > Would you mind elaborating on how this works? I know it's not a bash > list, but I do not understand how ctrl-J is considered a literal. > Obviously, I must have a different definition of "literal". Where > can I find a list of other literals? My Google-fu is being weak > today. :( > It's a readline thing, when you've configured it to use emacs keybindings. You can look at the emacs manual about the quoted-insert function if you want. It's useful in emacs because people like to bind ordinary keystrokes to do esoteric stuff (such as binding the TAB key to insert appropriate amount of spaces), which means that you need a way to override it (if you want to insert a literal TAB character, for example). -- regards, kushal