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 11:00:14 +0100 Message-ID: References: <83skd1dta0.fsf@gnu.org> <87aaz8nnwg.fsf@catnip.gol.com> <83bpjodk5g.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1256983263 22863 80.91.229.12 (31 Oct 2009 10:01:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 31 Oct 2009 10:01:03 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 31 11:00:56 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 1N4AlQ-0005R2-EM for ged-emacs-devel@m.gmane.org; Sat, 31 Oct 2009 11:00:53 +0100 Original-Received: from localhost ([127.0.0.1]:51303 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N4AlP-0000Pv-V1 for ged-emacs-devel@m.gmane.org; Sat, 31 Oct 2009 06:00:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N4AlH-0000Ov-AQ for emacs-devel@gnu.org; Sat, 31 Oct 2009 06:00:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N4AlB-0000Mr-Ca for emacs-devel@gnu.org; Sat, 31 Oct 2009 06:00:41 -0400 Original-Received: from [199.232.76.173] (port=44896 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N4AlA-0000Mf-L8 for emacs-devel@gnu.org; Sat, 31 Oct 2009 06:00:36 -0400 Original-Received: from mail-bw0-f215.google.com ([209.85.218.215]:52649) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N4Al9-00080u-68; Sat, 31 Oct 2009 06:00:35 -0400 Original-Received: by bwz7 with SMTP id 7so4502387bwz.26 for ; Sat, 31 Oct 2009 03:00:34 -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; bh=Cjw+8nu7Txn+nWdGx7SisWerTOLyjoVKe7sULe1YczA=; b=bLLD6CzbalXvBGnbAmTX6/Z8dkhvQU7Bi+8qRhAGHHI6XG9N+e3MCobm1COs7CG09A +wIQIkWr9h6uoGQnj7sNRgNEWaUDkjlrKP8VA2k9ZzQWRkYic1gNLThpRzlp/6EeTp3E jaY2jW3cWkKmm43tZFOOS6sPlXpnKmhE2qJjk= 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; b=x8tTpIcvJEqmQL5cbhWPZzK6/FZlr458t/bJvw13qfWBd8QMJm9V4ZYoBRPMDcV32r BE89s012nHAOuS/aFYuY6e1ci6R+DwKdCTYn3jZefxpbpqwr+zLa0JLKzc9We+Ikmz8o Y+6HquYBiG2CLiOIGj6ncfOhTeXO6+UM/642I= Original-Received: by 10.204.32.143 with SMTP id c15mr1980010bkd.130.1256983234094; Sat, 31 Oct 2009 03:00:34 -0700 (PDT) In-Reply-To: <83bpjodk5g.fsf@gnu.org> 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:116498 Archived-At: The discussion is centered in making room in the modeline, and that is good. But I'm also interested in ways to make mode-line customization (from elisp, not M-x customize) easier. Currently I have things like this in my .emacs: (setcar (cdddr (cadadr (cadadr mode-line-client))) (propertize " " 'face 'variable-pitch)) (setf (cadr (assq :propertize mode-line-modes)) '(overwrite-mode ;; etc)) and it ain't pretty (and it is quite fragile, of course). Perhaps a way to access its content similar to menus could be made to work; currently, some things are in variables, some are not, and there are cases where you want to add some tiny thing (like spacing around a value), and in order to keep the text properties (tooltips, etc) you've got to copy a bunch of stuff. Juanma