From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Steven Degutis Newsgroups: gmane.emacs.help Subject: Re: `auto-dim-other-windows` -- scrutiny invited Date: Wed, 3 Apr 2013 12:42:22 -0500 Message-ID: References: <87ehersl1c.fsf@wanadoo.es> <87r4irr1gp.fsf@wanadoo.es> <87mwtfr0sl.fsf@wanadoo.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b15b0a5538ef104d9786080 X-Trace: ger.gmane.org 1365010961 17146 80.91.229.3 (3 Apr 2013 17:42:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Apr 2013 17:42:41 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: =?ISO-8859-1?Q?=D3scar_Fuentes?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 03 19:43:09 2013 Return-path: Envelope-to: geh-help-gnu-emacs@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 1UNRiD-0000YA-Ci for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Apr 2013 19:43:05 +0200 Original-Received: from localhost ([::1]:36172 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNRho-0007ds-Bg for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Apr 2013 13:42:40 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50192) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNRhZ-0007di-SJ for help-gnu-emacs@gnu.org; Wed, 03 Apr 2013 13:42:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UNRhX-00039C-C2 for help-gnu-emacs@gnu.org; Wed, 03 Apr 2013 13:42:25 -0400 Original-Received: from mail-pa0-f44.google.com ([209.85.220.44]:64973) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNRhX-000391-59 for help-gnu-emacs@gnu.org; Wed, 03 Apr 2013 13:42:23 -0400 Original-Received: by mail-pa0-f44.google.com with SMTP id bi5so1023427pad.31 for ; Wed, 03 Apr 2013 10:42:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=REzzZLlat0ALiDAdxtpntrsqTwJ3MIzyRKaugNd6Dwo=; b=bSNB4gSsoangGBKYeRDgKOT7tQa6d/qqfGBBs0khdvbdb+pKzDKFQBQ4Ow06y0Wn1L 9AYaDF6TalU5/dFoXglLMGcwA3Eo1EPSJd6E2/UspS5xzs5y4p9lg76xDrc+e3hH7Frc WE9ppB7VbGvyzbvMei97XocG3l3QWFAcK8SV9EFUhsIb3ClopT9vlKyTS0c8j7zxW0BX WtHXS54h+GxgtQg7CJseLgrPy/Sw3FhsBTyUdCzw8aGX+YA/dAdqDLCZhGvWoBXv5YPj Rt7xyxX4QzXaLY8s8cGoKWppOll1ecmYm3xyJK+/vZq8oWHDZtTupeBKRF8fezgqrLwB 25uQ== X-Received: by 10.66.242.73 with SMTP id wo9mr4634112pac.59.1365010942232; Wed, 03 Apr 2013 10:42:22 -0700 (PDT) Original-Received: by 10.70.6.100 with HTTP; Wed, 3 Apr 2013 10:42:22 -0700 (PDT) In-Reply-To: <87mwtfr0sl.fsf@wanadoo.es> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.220.44 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:89956 Archived-At: --047d7b15b0a5538ef104d9786080 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable So it's more conventional to use a minor-mode to do this than just two functions? If so, is it considerably more difficult to implement it as a minor-mode? And would the code look any cleaner? -Steven On Wed, Apr 3, 2013 at 12:17 PM, =D3scar Fuentes wrote: > Steven Degutis writes: > > > Can minor modes be enabled/disabled on a per-window basis? If not, I > think > > this doesn't solve the problem. > > A minor mode is how this kind of features are usually implemented on > Emacs. Functionally, it is no better than your current approach based on > functions for enabling and disabling. Sorry for the confussion. > > > --047d7b15b0a5538ef104d9786080 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
So it's more conventional to use a minor-mode to do th= is than just two functions?

If so, is it considera= bly more difficult to implement it as a minor-mode? And would the code look= any cleaner?

-Steven


On Wed, Apr 3, 2013 at 12:17 PM, =D3s= car Fuentes <ofv@wanadoo.es> wrote:
Steven Degutis <sbdegutis@gmail.com> writes:

> Can minor modes be enabled/disabled on a per-window basis? If not, I t= hink
> this doesn't solve the problem.

A minor mode is how this kind of features are usually implemented on<= br> Emacs. Functionally, it is no better than your current approach based on functions for enabling and disabling. Sorry for the confussion.



--047d7b15b0a5538ef104d9786080--