From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: Customizing the mode line Date: Sat, 31 Oct 2009 20:02:17 +0100 Message-ID: References: <83skd1dta0.fsf@gnu.org> <837huberca.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1257015777 11500 80.91.229.12 (31 Oct 2009 19:02:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 31 Oct 2009 19:02:57 +0000 (UTC) Cc: emacs-devel@gnu.org To: M Jared Finder Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 31 20:02:50 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N4JDt-0004ea-BF for ged-emacs-devel@m.gmane.org; Sat, 31 Oct 2009 20:02:49 +0100 Original-Received: from localhost ([127.0.0.1]:39619 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N4JDs-0006X3-Lv for ged-emacs-devel@m.gmane.org; Sat, 31 Oct 2009 15:02:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N4JDo-0006VX-9Q for emacs-devel@gnu.org; Sat, 31 Oct 2009 15:02:44 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N4JDj-0006T7-AW for emacs-devel@gnu.org; Sat, 31 Oct 2009 15:02:43 -0400 Original-Received: from [199.232.76.173] (port=35739 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N4JDj-0006T1-4m for emacs-devel@gnu.org; Sat, 31 Oct 2009 15:02:39 -0400 Original-Received: from mail-bw0-f215.google.com ([209.85.218.215]:63837) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N4JDi-0005kj-6s for emacs-devel@gnu.org; Sat, 31 Oct 2009 15:02:38 -0400 Original-Received: by bwz7 with SMTP id 7so4860566bwz.26 for ; Sat, 31 Oct 2009 12:02:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=6pd988d+6YqKsdq4FG6bTIh3gd5EXIdI+9NL8aViqyU=; b=j1kFW2SeLM5u7gc1l57qpNNs/0pKnUwBRZ8ONrGhOOa7G/786ReKRl68ht6OEsvmM9 HMPR3kFMAatzE9eCZbzyJy1gHt7mzFOkQK+J17a0idUI7eGUrGJYcftjKktBk5Jg8icV eCOf+GdjAfc9UFsVXepBDAx1z67vMA/LYtAFc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=K7rTP3q/AkTBk8+hHqDLvGKov6f+MnRD/v/e9rt8HvNkL96B1qo2AU7mDw7Npykj92 X7UrmiCjSeTl8uPGYG0c3rPjg2MnDI352h7r4vFlp2ugDTBGcDk+KM/6M9zMofe9g7Q0 N7iRn6ug3BszmofgHNzxAK6uVuGvv12xn6yfg= Original-Received: by 10.204.32.143 with SMTP id c15mr2346280bkd.130.1257015757261; Sat, 31 Oct 2009 12:02:37 -0700 (PDT) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:116528 Archived-At: On Sat, Oct 31, 2009 at 18:46, M Jared Finder wrote: > 1. Change mode-line-format to not include ANY explicitly propertized > strings. =C2=A0Use :eval and :propertize. > 2. Remove condition branching in mode-line-format. =C2=A0Just variables w= ith > formatting info should be there, put the branching in those variables. > 3. Change the pretty-printer used by C-h v to somehow recognize that > mode-line-format should be formatted with a newline after every element. > 4. Change the customize option for mode-line-format to display it as a > reorderable list, like c-mode-hook. These are really good suggestions. 1 and 2 would go a long way towards reducing the current pain. Juanma