From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Matthias Meulien Newsgroups: gmane.emacs.devel Subject: Mode line strings for sub- and super- minor modes are counterintuitive Date: Thu, 14 Aug 2014 22:21:24 +0200 Message-ID: <87d2c23jqz.fsf_-_@gmail.com> References: <87ppp6vpjv.fsf@gmail.com> <2643591.vy3k34KHB8@descartes> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1408047703 22948 80.91.229.3 (14 Aug 2014 20:21:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Aug 2014 20:21:43 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 14 22:21:34 2014 Return-path: Envelope-to: ged-emacs-devel@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 1XI1Wf-0007gz-QY for ged-emacs-devel@m.gmane.org; Thu, 14 Aug 2014 22:21:33 +0200 Original-Received: from localhost ([::1]:56153 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XI1Wf-0005Wz-C5 for ged-emacs-devel@m.gmane.org; Thu, 14 Aug 2014 16:21:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49624) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XI1Wc-0005UZ-1g for emacs-devel@gnu.org; Thu, 14 Aug 2014 16:21:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XI1Wb-0007vF-B3 for emacs-devel@gnu.org; Thu, 14 Aug 2014 16:21:29 -0400 Original-Received: from mail-wi0-x235.google.com ([2a00:1450:400c:c05::235]:42377) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XI1Wb-0007ut-2j for emacs-devel@gnu.org; Thu, 14 Aug 2014 16:21:29 -0400 Original-Received: by mail-wi0-f181.google.com with SMTP id bs8so748wib.14 for ; Thu, 14 Aug 2014 13:21:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version:content-type; bh=cRSjoKRm/T36Egl1Kf54Z+8IABj6nf3QPKr22Z/srkg=; b=V1zpl2Huk/W7lSiW2owqf31GvfWdUfaYcEHABI0gOurDRYhjpDr8oTivCBwXBtQY8y a1D/m1ew5iwdlZ9RjmLALjqxhW+3sEW5MuSnFtnvp7kbs1KUn0gVR9YesZoJH8THC/iy LTFuEPKLxe+BhT4DSkhsWsXzKY3fIIt+PZmNXXoCl6wBuVQInkIWezJh9irfy6Bqioqg 0LrST3Qc2xgbv2N5pRbtxNLqYk0uA8G2M/73lL1kqwY4rMkjlFxgCznfU5NgeUKb2bIg hNcserIP+foL6DMDiXWWv+C6/nhYVTqhllqQXw43iBt1rEwGpIlURQLqLmvyIm1V+KzW zXYA== X-Received: by 10.180.78.100 with SMTP id a4mr43584842wix.36.1408047687517; Thu, 14 Aug 2014 13:21:27 -0700 (PDT) Original-Received: from choubidou.localdomain ([2a01:e35:2ef1:4540:e2b9:a5ff:fe0b:e998]) by mx.google.com with ESMTPSA id fp6sm82979023wic.11.2014.08.14.13.21.25 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Aug 2014 13:21:26 -0700 (PDT) In-Reply-To: <2643591.vy3k34KHB8@descartes> (=?utf-8?Q?=22R=C3=BCdiger?= Sonderfeld"'s message of "Mon, 09 Dec 2013 14:28:49 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::235 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:173675 Archived-At: --=-=-= Content-Type: text/plain; format=flowed When subword (resp. superword) minor mode is enabled, a comma (resp. a superscript two) is displayed in the mode line. I found those two characters difficult to see and meaning less. I understand that there's not much space in the mode line but other minor modes are much verbose (eg. MML, Abbrev, Fill, Narrow, Outl, etc). Why subword and superword modes have this special treatment? I suggest to use Subw and Supw for the user to have a chance to link the mode line string to the full minor mode. --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: inline; filename=0001-Change-mode-line-string-for-subword-mode-and-superwo.patch Content-Transfer-Encoding: quoted-printable Content-Description: Change mode line string for subword-mode and superword-mode >From 9697e30918fa3cc0a4c741ee8f1774f3e67ab173 Mon Sep 17 00:00:00 2001 From: Matthias Meulien Date: Thu, 14 Aug 2014 22:11:51 +0200 Subject: [PATCH] Change mode line string for subword-mode and superword-mode --- lisp/progmodes/subword.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/progmodes/subword.el b/lisp/progmodes/subword.el index a8455c5..9b65cda 100644 --- a/lisp/progmodes/subword.el +++ b/lisp/progmodes/subword.el @@ -116,7 +116,7 @@ This mode changes the definition of a word so that word= commands treat nomenclature boundaries as word bounaries. =20 \\{subword-mode-map}" - :lighter " ," + :lighter " Subw" (when subword-mode (superword-mode -1)) (subword-setup-buffer)) =20 @@ -279,7 +279,7 @@ as parts of words: e.g., in `superword-mode', \"this_is_a_symbol\" counts as one word. =20 \\{superword-mode-map}" - :lighter " =C2=B2" + :lighter " Supw" (when superword-mode (subword-mode -1)) (subword-setup-buffer)) =20 --=20 2.0.4 --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: base64 DQrigJMgDQpNYXR0aGlhcw0K --=-=-=--