From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Johnny L. Wales" Newsgroups: gmane.emacs.help Subject: Tab stops in perl mode broken? Date: Tue, 20 May 2003 15:12:05 -0500 (CDT) Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: main.gmane.org 1053462384 24629 80.91.224.249 (20 May 2003 20:26:24 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 20 May 2003 20:26:24 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Tue May 20 22:26:15 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19IDY2-0005Yj-00 for ; Tue, 20 May 2003 22:17:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19IDYn-0002Kq-08 for gnu-help-gnu-emacs@m.gmane.org; Tue, 20 May 2003 16:18:09 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19IDTr-00013M-30 for help-gnu-emacs@gnu.org; Tue, 20 May 2003 16:13:03 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19IDTJ-0000FP-JV for help-gnu-emacs@gnu.org; Tue, 20 May 2003 16:12:30 -0400 Original-Received: from [216.180.36.2] (helo=mail.booksys.com) by monty-python.gnu.org with esmtp (Exim 4.20) id 19IDSw-0008Oq-N0 for help-gnu-emacs@gnu.org; Tue, 20 May 2003 16:12:06 -0400 Original-Received: from mail.booksys.com (localhost.localdomain [127.0.0.1]) by mail.booksys.com (8.11.6/8.11.6) with ESMTP id h4KKC6j07670 for ; Tue, 20 May 2003 15:12:06 -0500 Original-Received: from localhost (johnny@localhost) by mail.booksys.com (8.11.6/8.11.6) with ESMTP id h4KKC5J07663 for ; Tue, 20 May 2003 15:12:05 -0500 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:9942 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:9942 [root@bugzilla PhoneStats]# emacs --version GNU Emacs 21.2.1 Copyright (C) Ok, I have this astonishingly annoying problem in perl mode. I can't get proper indention on some lines. Check this out: ------------ if(defined($rqpairs{'area'})) { print "Content-type: text/html\n\n"; print ""; print "Canvassing report: $rqpairs{'area'}\n"; print ""; print "Canvassing report for $rqpairs{'area'}
"; $dbcmd = "SELECT count(*) FROM calls WHERE ( (outgoingnum like "; $dbcmd .= "'P1$rqpairs{'area'}%') OR (outgoingnum like 'P0"; $dbcmd .= "$rqpairs{'area'}\%')) "; ($year, $month, $day) = Date::Calc::Today(); ($o_year, $o_month, $o_day) = Date::Calc::Add_Delta_Days($year, $month, $day, -\ 30); $dstr = sprintf("'%04d-%02d-%02d' AND '%04d-%02d-%02d'", $o_year, $o_month, $o_day, $year, $month, $day); $dbcmd .= "AND (calldate between $dstr) ORDER BY calldate;"; $sth = $dbh -> prepare($dbcmd); $sth->execute; $count = $sth->fetchrow_array; --------- Now, notice how the indention changes unexpectedly after the line ($year, $month, $day) = Date::Calc::Today(); This is also the first line where the :: notation is used. Is emacs unable to understand this _extremely_ common notation? How can I make it understand? (Note that vi understands just fine and will tab this file easily.. but I think any editor that defaults to opening files read-only is a viewer, not an editor. ;) Further, is there some command like: M-x when-i-say-tab-i-mean-tab-damn-it that will make emacs ALWAYS add a tab when I hit the tab button, whether it seems reasonable to emacs or not? I've also yet to be able to find an easy way to set tab width without editing a configuration file..? Any assistance would be greatly appreciated. From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: lawrence mitchell Newsgroups: gmane.emacs.help Subject: Re: Tab stops in perl mode broken? Date: Tue, 20 May 2003 23:38:50 +0100 Organization: funfunfun Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1053470574 12045 80.91.224.249 (20 May 2003 22:42:54 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 20 May 2003 22:42:54 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Wed May 21 00:42:52 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19IFnQ-00031J-00 for ; Wed, 21 May 2003 00:41:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19IFmh-0007o7-3f for gnu-help-gnu-emacs@m.gmane.org; Tue, 20 May 2003 18:40:39 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!peernews3.colt.net!newsfeed.stueberl.de!fu-berlin.de!uni-berlin.de!vegetable.demon.co.UK!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-NNTP-Posting-Host: vegetable.demon.co.uk (80.177.16.3) Original-X-Trace: fu-berlin.de 1053470330 29588537 80.177.16.3 (16 [97657]) X-No-Yes: No Mail-Copies-To: nobody User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 Cancel-Lock: sha1:AF5GlyLhZBXD/rFzR1aBeJJY0+U= Original-Xref: shelby.stanford.edu gnu.emacs.help:113452 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:9947 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:9947 Johnny L. Wales wrote: [...] Emacs' default perl-mode and indentation problems Try using cperl-mode, rather than perl-mode. It's a much improved perl mode. It certainly handles the case you mention fine in my emacs version. > Further, is there some command like: > M-x when-i-say-tab-i-mean-tab-damn-it You can always to C-q TAB to insert a literal tab. Depending on programming modes, you have to find the relevant variable to get them not to do syntax-driven indentaton. > that will make emacs ALWAYS add a tab when I hit the tab button, whether > it seems reasonable to emacs or not? I've also yet to be able to find an > easy way to set tab width without editing a configuration file..? M-x customize-variable RET tab-stop-list RET If you change this and then save your changes, tab-stop-list will be set. -- lawrence mitchell From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Johnny L. Wales" Newsgroups: gmane.emacs.help Subject: Re: Tab stops in perl mode broken? Date: Wed, 21 May 2003 09:37:58 -0500 (CDT) Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: main.gmane.org 1053528417 17883 80.91.224.249 (21 May 2003 14:46:57 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 21 May 2003 14:46:57 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Wed May 21 16:46:55 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19IUpC-0004OL-00 for ; Wed, 21 May 2003 16:44:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19IUpi-0008FE-2c for gnu-help-gnu-emacs@m.gmane.org; Wed, 21 May 2003 10:44:46 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19IUmP-0005w9-Lp for help-gnu-emacs@gnu.org; Wed, 21 May 2003 10:41:21 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19IUjG-00043n-BR for help-gnu-emacs@gnu.org; Wed, 21 May 2003 10:38:37 -0400 Original-Received: from [216.180.36.2] (helo=mail.booksys.com) by monty-python.gnu.org with esmtp (Exim 4.20) id 19IUjC-0003wo-2P for help-gnu-emacs@gnu.org; Wed, 21 May 2003 10:38:02 -0400 Original-Received: from mail.booksys.com (localhost.localdomain [127.0.0.1]) by mail.booksys.com (8.11.6/8.11.6) with ESMTP id h4LEbxj10970 for ; Wed, 21 May 2003 09:37:59 -0500 Original-Received: from localhost (johnny@localhost) by mail.booksys.com (8.11.6/8.11.6) with ESMTP id h4LEbwB10964 for ; Wed, 21 May 2003 09:37:58 -0500 Original-To: help-gnu-emacs@gnu.org In-Reply-To: X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:9958 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:9958 > [...] Emacs' default perl-mode and indentation problems > > Try using cperl-mode, rather than perl-mode. It's a much > improved perl mode. It certainly handles the case you mention > fine in my emacs version. How do I set that mode? Why are there two perl modes? Why not just one? Why is the broken perl mode the default? Why not make the good one the default? > > Further, is there some command like: > > M-x when-i-say-tab-i-mean-tab-damn-it > > You can always to C-q TAB to insert a literal tab. Depending on > programming modes, you have to find the relevant variable to get > them not to do syntax-driven indentaton. Well, what I'd actually like from an editor would be partial syntax-driven inedentation. That is, hitting tab once puts the tabs where emacs thinks they outght to be, and subsequent tab requests bump everything over one tab. I'd also love it if there was *never* a time when I hit a button and nothing happens. > > that will make emacs ALWAYS add a tab when I hit the tab button, whether > > it seems reasonable to emacs or not? I've also yet to be able to find an > > easy way to set tab width without editing a configuration file..? > > M-x customize-variable RET tab-stop-list RET > > If you change this and then save your changes, tab-stop-list > will be set. And I'll have to do this on every host, right? There's no way to have a single emacs config file to serve a whole network? --Me From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: lawrence mitchell Newsgroups: gmane.emacs.help Subject: Re: Tab stops in perl mode broken? Date: Wed, 21 May 2003 16:33:43 +0100 Organization: funfunfun Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1053531774 3991 80.91.224.249 (21 May 2003 15:42:54 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 21 May 2003 15:42:54 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Wed May 21 17:42:48 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19IVjr-00011h-00 for ; Wed, 21 May 2003 17:42:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19IVdD-0006cv-Lp for gnu-help-gnu-emacs@m.gmane.org; Wed, 21 May 2003 11:35:55 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fu-berlin.de!uni-berlin.de!sybil.ph.ed.ac.UK!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 71 Original-NNTP-Posting-Host: sybil.ph.ed.ac.uk (129.215.73.53) Original-X-Trace: fu-berlin.de 1053531223 29759418 129.215.73.53 (16 29 [97657]) X-No-Yes: No Mail-Copies-To: nobody User-Agent: Gnus/5.090011 (Oort Gnus v0.11) Emacs/20.4 (sparc-sun-solaris2.6) Cancel-Lock: sha1:PWRNr3l+RzcKpeFeserRIhtydHM= Original-Xref: shelby.stanford.edu gnu.emacs.help:113464 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:9961 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:9961 Johnny L. Wales wrote: > Me: >> [...] Emacs' default perl-mode and indentation problems >> Try using cperl-mode, rather than perl-mode. It's a much >> improved perl mode. It certainly handles the case you mention >> fine in my emacs version. > How do I set that mode? The easiest way is to add (defalias 'perl-mode 'cperl-mode) to your ~/.emacs. The, any subsequent attempts to turn on perl-mode, will use cperl-mode instead. > Why are there two perl modes? Why not just one? cperl-mode was originally an extra package not integrated into Emacs. I'm not sure why it isn't the default now that it is there. >> You can always to C-q TAB to insert a literal tab. Depending on >> programming modes, you have to find the relevant variable to get >> them not to do syntax-driven indentaton. > Well, what I'd actually like from an editor would be partial > syntax-driven inedentation. That is, hitting tab once puts the > tabs where emacs thinks they outght to be, and subsequent tab > requests bump everything over one tab. I'd also love it if > there was *never* a time when I hit a button and nothing > happens. (defun my-tab (&rest args) "If `last-command' was `my-tab', insert a literal tab. Else call `indent-according-to-mode'" (interactive "P") (if (eq last-command 'my-tab) (save-excursion (beginning-of-line) (insert ?\t)) ; tab (indent-according-to-mode))) You might need to alter this somewhat to deal with indenting blocks. Add this to your ~/.emacs, then, you can bind it in the various modes you use. E.g., for cperl-mode, you'd do: (add-hook 'cperl-mode-hook #'(lambda () (define-key cperl-mode-map (kbd "TAB") #'my-tab)) Note that you need to define the key after loading cperl-mode, otherwise your binding will be overriden by cperl's default one. [...] >> If you change this and then save your changes, tab-stop-list >> will be set. > And I'll have to do this on every host, right? There's no way to have a > single emacs config file to serve a whole network? Depends on how you can access the files on the network. Typically your ~/.emasc resides in your home directory. If this isn't the same across the network, you'd have to copy the file around to all the hosts. Or, and this gets slightly complicated, write one complete .emacs, store it somewhere that's accessible by (say) ftp, then, on each individual host, have a minimal .emacs that `load's said file. Emacs has builtin support for accessing ftp files. Look for documentation on ange-ftp for how to use it. Hope that sort of helps. -- lawrence mitchell From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.help Subject: Re: Tab stops in perl mode broken? Date: 21 May 2003 12:22:27 -0400 Organization: Yale University Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <5lptmcmfr0.fsf@rum.cs.yale.edu> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1053536903 8108 80.91.224.249 (21 May 2003 17:08:23 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 21 May 2003 17:08:23 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Wed May 21 19:08:21 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19IX3K-0001wg-00 for ; Wed, 21 May 2003 19:06:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19IX1i-000792-Td for gnu-help-gnu-emacs@m.gmane.org; Wed, 21 May 2003 13:05:18 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!canoe.uoregon.edu!news.wss.yale.edu!rum.cs.yale.edu!rum.cs.yale.edu Original-Newsgroups: gnu.emacs.help Original-Lines: 41 Original-NNTP-Posting-Host: rum.cs.yale.edu Original-X-Trace: news.wss.yale.edu 1053534150 26541 128.36.229.169 (21 May 2003 16:22:30 GMT) Original-X-Complaints-To: news@news.wss.yale.edu Original-NNTP-Posting-Date: Wed, 21 May 2003 16:22:30 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-Original-NNTP-Posting-Host: rum.cs.yale.edu X-Original-Trace: 21 May 2003 12:22:27 -0400, rum.cs.yale.edu Original-Xref: shelby.stanford.edu gnu.emacs.help:113471 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:9967 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:9967 >>>>> "Johnny" == Johnny L Wales writes: > Ok, I have this astonishingly annoying problem in perl mode. I can't get > proper indention on some lines. Check this out: > ------------ > if(defined($rqpairs{'area'})) { > print "Content-type: text/html\n\n"; > print ""; > print "Canvassing report: $rqpairs{'area'}\n"; > print ""; > print "Canvassing report for $rqpairs{'area'}
"; > $dbcmd = "SELECT count(*) FROM calls WHERE ( (outgoingnum like "; > $dbcmd .= "'P1$rqpairs{'area'}%') OR (outgoingnum like 'P0"; > $dbcmd .= "$rqpairs{'area'}\%')) "; > ($year, $month, $day) = Date::Calc::Today(); > ($o_year, $o_month, $o_day) = Date::Calc::Add_Delta_Days($year, $month, > $day, -\ > 30); > $dstr = sprintf("'%04d-%02d-%02d' AND '%04d-%02d-%02d'", > $o_year, $o_month, $o_day, $year, $month, $day); > $dbcmd .= "AND (calldate between $dstr) ORDER BY calldate;"; > $sth = $dbh -> prepare($dbcmd); > $sth->execute; > $count = $sth->fetchrow_array; > --------- I have just tried the above with `emacs-21.3 -q --no-site-file' and couldn't reproduce your problem. The ($o_year...) lines gets properly indented below the previous line. Could you show us a more complete example where the problem can be reproduced ? Stefan PS: Yes, the default perl-mode is not as sophisticated as cperl-mode. Note that the version in the Emacs repository is significantly improved in some areas (provided you use font-lock). From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Edward O'Connor Newsgroups: gmane.emacs.help Subject: Re: Tab stops in perl mode broken? Date: Wed, 21 May 2003 12:37:16 -0700 Organization: OEC, Jacobs School of Engineering, UCSD Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1053546063 28401 80.91.224.249 (21 May 2003 19:41:03 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 21 May 2003 19:41:03 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Wed May 21 21:40:59 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19IZRw-0007M9-00 for ; Wed, 21 May 2003 21:40:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19IZTG-0003yd-6W for gnu-help-gnu-emacs@m.gmane.org; Wed, 21 May 2003 15:41:54 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!nntp.cs.ubc.ca!logbridge.uoregon.edu!arclight.uoregon.edu!enews.sgi.com!sdd.hp.com!ihnp4.ucsd.edu!news.ucsd.edu!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-NNTP-Posting-Host: oecpc11.ucsd.edu Original-X-Trace: news1.ucsd.edu 1053545836 3963 132.239.18.171 (21 May 2003 19:37:16 GMT) Original-X-Complaints-To: usenet@news1.ucsd.edu Original-NNTP-Posting-Date: Wed, 21 May 2003 19:37:16 +0000 (UTC) X-Recharge-Stop: 21 May 2003 12:37:16 -0700 X-Recharge-Start: 21 May 2003 12:29:14 -0700 X-Attribution: Ted Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAHlBMVEX47PoBAAegiLwiH1NI QYI0M4iMeKYBAAYGBBGqm9JF4g0mAAACYElEQVR4nGWTsY/aMBTGLXoLo8WQjNVrFJXxzviUbigJ Ecy5SNft5LhRGT3RNecUuRuiCMn/bZ+dhHDqJ2SZ7+f3nt/DEMOcqv9E9AdQTsD7fPw6hRIz+iwx xuhbMBn3SUtRofk95CTa9D49UIWiRvt4TnTiNmUbHIIDykUxdwm8lTvQUmergwoCpXR/qwojXqk7 jTEK1xANXhKOgD8eRmHggrt2CNKKtfcAU3EHkCbB5OJn4Ws40Prco6jhAyiDoSyeTrAb1gNe+dIe KNVlpvXNE5+pT6HUIjEi24a8B6XvjSrd0rCon5vCDwX7eA2wvV9bqrPWdCAFZBtfA0tQRWmRsE6u ZCMA6qYHbRDg6I5RlxVSFNCISG56QB3oIBNSRKL+JuLMg9LZlGqIUhCFlH9m8FN74GxFQwEFxKmc rWYQJQ680v43TSEGEDArAWLJPVAObN8BHDghhrwcI1RYH2GSLMfiKnzWd6DGx4DvwNc41mIC0QQW qzgXH0HV+kvVoohvIB5AaHRSyCZHyzawtOd4SBUyXR9lxOb2RB7Sz4T0AB8zY/smvWzRIrN0OQLG csbW8zf7dY1gfsIlZm66JUsdOK3ljjjNCbnoHuxq9jQnb+TkAa6XY0XyJmf7C1uRwfbk4b0m1tr8 +zljb+ROD0+xA9f4umHP9+CTAAesjfGPWNyBvzCAc5ax/I40CFJPvkQrC/vRP+NsiC58LpGKfWH7 Ppy/JMY8ObK0AJfTRUDTz5eQxHS2VxPlG1697N0ee4qSbjeQ64bjc94Nhex1b+2N5Hn1MoJJwlpp f1Rr7/8DXitGHanPc2gAAAAASUVORK5CYII= User-Agent: Gnus/5.1001 (Gnus v5.10.1) Emacs/21.3 (berkeley-unix) Cancel-Lock: sha1:AYCi+1ILMB4zRZDHesE8xZhIK2Q= Original-Xref: shelby.stanford.edu gnu.emacs.help:113476 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:9970 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:9970 Hey Johnny. > Well, what I'd actually like from an editor would be partial > syntax-driven inedentation. That is, hitting tab once puts the tabs > where emacs thinks they outght to be, and subsequent tab requests bump > everything over one tab. I'd also love it if there was *never* a time > when I hit a button and nothing happens. Well, that shouldn't be so hard to hack up. See the variable `last-input-event'. > And I'll have to do this on every host, right? There's no way to have > a single emacs config file to serve a whole network? I keep mine in CVS (along with the rest of my dotfiles). This seems to be Good Enough For Me in this regard. Ted -- Edward O'Connor oconnor@soe.ucsd.edu From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kai.grossjohann@gmx.net (=?iso-8859-1?q?Kai_Gro=DFjohann?=) Newsgroups: gmane.emacs.help Subject: Re: Tab stops in perl mode broken? Date: Thu, 22 May 2003 13:03:41 +0200 Organization: University of Duisburg, Germany Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <84d6ibutte.fsf@lucy.is.informatik.uni-duisburg.de> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1053601944 10995 80.91.224.249 (22 May 2003 11:12:24 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 22 May 2003 11:12:24 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Thu May 22 13:12:22 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19InzN-0002oo-00 for ; Thu, 22 May 2003 13:12:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19Inug-00078Z-HG for gnu-help-gnu-emacs@m.gmane.org; Thu, 22 May 2003 07:07:10 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!news.telebyte.nl!fu-berlin.de!uni-berlin.de!lucy.is.informatik.uni-duisburg.DE!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 13 Original-NNTP-Posting-Host: lucy.is.informatik.uni-duisburg.de (134.91.35.216) Original-X-Trace: fu-berlin.de 1053601439 33934 134.91.35.216 (16 [73968]) Mail-Copies-To: never User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:omDegbjKW3Nfog2DmPgyK20mpv0= Original-Xref: shelby.stanford.edu gnu.emacs.help:113517 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:10012 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10012 "Johnny L. Wales" writes: > Further, is there some command like: > M-x when-i-say-tab-i-mean-tab-damn-it > > that will make emacs ALWAYS add a tab when I hit the tab button, whether > it seems reasonable to emacs or not? I've also yet to be able to find an > easy way to set tab width without editing a configuration file..? C-q TAB -- This line is not blank. From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Oliver Scholz Newsgroups: gmane.emacs.help Subject: Re: Tab stops in perl mode broken? Date: Thu, 22 May 2003 13:36:56 +0200 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1053603758 20235 80.91.224.249 (22 May 2003 11:42:38 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 22 May 2003 11:42:38 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Thu May 22 13:42:35 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19IoS2-0005Al-00 for ; Thu, 22 May 2003 13:41:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19IoQw-0001Rs-Qr for gnu-help-gnu-emacs@m.gmane.org; Thu, 22 May 2003 07:40:30 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!dialin-145-254-195-095.arcor-ip.NET!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 13 Original-NNTP-Posting-Host: dialin-145-254-195-095.arcor-ip.net (145.254.195.95) Original-X-Trace: fu-berlin.de 1053603447 61419 145.254.195.95 (16 [87814]) X-Attribution: os X-Face: "HgH2sgK|bfH$; PiOJI6|qUCf.ve<51_Od(%ynHr?=>znn#~#oS>",F%B8&\vus),2AsPYb -n>PgddtGEn}s7kH?7kH{P_~vu?]OvVN^qD(L)>G^gDCl(U9n{:d>'DkilN!_K"eNzjrtI4Ya6;Td% IZGMbJ{lawG+'J>QXPZD&TwWU@^~A}f^zAb[Ru;CT(UA]c& User-Agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.3.50 (windows-nt) Cancel-Lock: sha1:HHcFOUTqqqzJmRm36I51nQb5VIk= Original-Xref: shelby.stanford.edu gnu.emacs.help:113519 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:10015 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10015 "Johnny L. Wales" writes: [...] > I've also yet to be able to find an easy way to set tab width > without editing a configuration file..? [...] `M-x customize-variable RET tab-width RET' Oliver -- 3 Prairial an 211 de la Révolution Liberté, Egalité, Fraternité!