From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "James Aguilar" Newsgroups: gmane.emacs.help Subject: Re: How to apply a minor mode to all buffers Date: Fri, 19 Jan 2007 08:30:31 -0800 Message-ID: References: <877ivkjb66.fsf@trick.ulm.malte.spiess> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0402451225==" X-Trace: sea.gmane.org 1169224257 4992 80.91.229.12 (19 Jan 2007 16:30:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 19 Jan 2007 16:30:57 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 19 17:30:55 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1H7wdi-0001Ka-KO for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Jan 2007 17:30:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H7wdi-0007yl-5L for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Jan 2007 11:30:54 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H7wdS-0007yG-N4 for help-gnu-emacs@gnu.org; Fri, 19 Jan 2007 11:30:38 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H7wdP-0007wb-3k for help-gnu-emacs@gnu.org; Fri, 19 Jan 2007 11:30:38 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H7wdO-0007wT-Kw for help-gnu-emacs@gnu.org; Fri, 19 Jan 2007 11:30:34 -0500 Original-Received: from [66.249.82.226] (helo=wx-out-0506.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H7wdN-0004Na-OS for help-gnu-emacs@gnu.org; Fri, 19 Jan 2007 11:30:34 -0500 Original-Received: by wx-out-0506.google.com with SMTP id s17so608548wxc for ; Fri, 19 Jan 2007 08:30:32 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=JgHkXB2dlIDV/frnq9ErKQd5ty0LNQDOlBhOR/fCTd18F+i5Dawi086RbFMnD1J24DqsE95ozM59WGTKdkzU67Xa/TkiBzTDnX6v8O0W4ZxkFt9eQIeQLWiE9wGq9aqxnSa6ddIwwSGPvxqp4jQL1SqyvaUTo25TmWbm/7aqGdQ= Original-Received: by 10.90.93.6 with SMTP id q6mr3013460agb.1169224232224; Fri, 19 Jan 2007 08:30:32 -0800 (PST) Original-Received: by 10.90.102.12 with HTTP; Fri, 19 Jan 2007 08:30:31 -0800 (PST) Original-To: "Eli Zaretskii" In-Reply-To: X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:40465 Archived-At: --===============0402451225== Content-Type: multipart/alternative; boundary="----=_Part_21001_32952057.1169224231839" ------=_Part_21001_32952057.1169224231839 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 1/19/07, Eli Zaretskii wrote: > > Actually, I'm not surprised at all that this functionality is missing . . > . Hmm, I figured that there might be a rationale. However, if that is true, then why are there global minor modes like global-font-lock-mode? Could you perhaps be more specific in the description of what you > want? Specifically, what files do you visit in the buffers that you > must have in column marker mode? Do these files have some special > extension, or turn on some specific major or minor modes, or have > something else in common? The purpose is allowing my window to be wider than eighty characters but knowing where the eighty character limit is. Some of my coworkers write code that is wider than eighty characters. However, I cannot stand wide code and company policy is an 80 character max. So I'd like to be able to easily read the long-lined code, but I'd also like to have a guard that will prevent me from going over the line. This applies to several programming languages, text files, configuration files, and even non-files (I have a personal aversion to >80 chars in all files I edit). Since my only use for emacs is to edit these kinds of files, I'd like to have a guard at the end so that I can know when I'm over the line. auto-fill-mode will not work because I don't want to have to do a code review for all those lines in every file I change. Also, it sometimes inserts newlines in places I would not want it to. For instance, if I'm coming to the end of the line and I'm writing the expression (x + y), auto-fill-mode may insert the newline before or after the plus. In either case, by the time I have realized this has happened, I have to add my own newline before the open parenthesis and delete the auto-fill-added newline. It would be easier if it stayed on one line and there was a guard. I can accomplish this behavior by setting my window width, but, as I mentioned, that is an unsuitable solution for me. Maybe this will help you understand my problem. Yours, James Aguilar -- [?] James Aguilar [@] 333 Rengstorff Ave #23, Mountain View, CA, 94043 [#] 314 494 0450 [!] Lately things just dont seem the same ------=_Part_21001_32952057.1169224231839 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On 1/19/07, Eli Zaretskii <eliz@gnu.org> wrote:
Actually, I'm not surprised at all that this functionality is missing . . .

Hmm, I figured that there might be a rationale.  However, if that is true, then why are there global minor modes like global-font-lock-mode?

Could you perhaps be more specific in the description of what you
want?  Specifically, what files do you visit in the buffers that you
must have in column marker mode?  Do these files have some special
extension, or turn on some specific major or minor modes, or have
something else in common?

The purpose is allowing my window to be wider than eighty characters but knowing where the eighty character limit is.  Some of my coworkers write code that is wider than eighty characters.  However, I cannot stand wide code and company policy is an 80 character max.  So I'd like to be able to easily read the long-lined code, but I'd also like to have a guard that will prevent me from going over the line.

This applies to several programming languages, text files, configuration files, and even non-files (I have a personal aversion to >80 chars in all files I edit).  Since my only use for emacs is to edit these kinds of files, I'd like to have a guard at the end so that I can know when I'm over the line.

auto-fill-mode will not work because I don't want to have to do a code review for all those lines in every file I change.  Also, it sometimes inserts newlines in places I would not want it to.  For instance, if I'm coming to the end of the line and I'm writing the expression (x + y), auto-fill-mode may insert the newline before or after the plus.  In either case, by the time I have realized this has happened, I have to add my own newline before the open parenthesis and delete the auto-fill-added newline.  It would be easier if it stayed on one line and there was a guard.  I can accomplish this behavior by setting my window width, but, as I mentioned, that is an unsuitable solution for me.

Maybe this will help you understand my problem.

Yours,
James Aguilar
--
[?] James Aguilar
[@] 333 Rengstorff Ave #23, Mountain View, CA, 94043
[#] 314 494 0450
[!] Lately things just dont seem the same ------=_Part_21001_32952057.1169224231839-- --===============0402451225== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ help-gnu-emacs mailing list help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs --===============0402451225==--