From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: Re: usability problem of emacs describe-mode Date: Mon, 2 Mar 2009 13:09:12 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <76fcf833-ad89-44f2-b227-e18295317ca2@p13g2000yqc.googlegroups.com><3c82f009-0676-4e26-bd58-d6b8c1921935@n33g2000pri.googlegroups.com> <8b86b73e-7084-4ca9-b075-a664468b0510@a5g2000pre.googlegroups.com> 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 1236030527 11964 80.91.229.12 (2 Mar 2009 21:48:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Mar 2009 21:48:47 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 02 22:50:02 2009 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 1LeG1Q-0003F9-NM for geh-help-gnu-emacs@m.gmane.org; Mon, 02 Mar 2009 22:50:01 +0100 Original-Received: from localhost ([127.0.0.1]:37212 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LeG05-00022x-LV for geh-help-gnu-emacs@m.gmane.org; Mon, 02 Mar 2009 16:48:37 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!a5g2000pre.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.emacs Original-Lines: 123 Original-NNTP-Posting-Host: 24.6.175.142 Original-X-Trace: posting.google.com 1236028152 31286 127.0.0.1 (2 Mar 2009 21:09:12 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 2 Mar 2009 21:09:12 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: a5g2000pre.googlegroups.com; posting-host=24.6.175.142; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; en) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:167233 comp.emacs:97905 X-Mailman-Approved-At: Mon, 02 Mar 2009 16:45:37 -0500 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:62532 Archived-At: On Mar 2, 7:50 am, "Drew Adams" wrote: > > > Description: http://www.emacswiki.org/emacs/PrettyControlL > > > i'm having some problem customize this. > > Basically, all i want is a single horizontal bar, in complete black, > > that's about 60 chars long. (which is a bit longer than the default) > > > I tried to customize the string, or the font... basically now and then > > spend some 30 min but can't achieve this. > > I'm guessing it would help to get more familiar with the Customize UI, in > particular for faces. It's not ideal, but it is usable once you are famil= iar > with it. > > > i use customize-group. Each time, i have to reload pretty-control-l- > > mode, then call describe-mode again to see. > > To see what? You should never need to do that. Have you tried `M-x > refresh-pretty-control-l'? > > > The pp^l string i tried 60 spaces, to make it longer. > > The pp^l highlight i tried adjust the box, but then i got 2 bars. Then > > i tried turn off the box and use strick-through... but it became too > > thin. > > Emacs offers no way to change the strike-through thickness, AFAIK. I'm gu= essing > (only guessing) that things like strike-through are dependent on the font= you > choose. And perhaps on your platform (?). > > > Also, i think when box is off and strike thru is on and string is > > spaces, it doesn't show the strike thru. > > It does for me. Perhaps report an Emacs bug for your version and platform= . > > > Can you tell me what's the setting to use to get what i want? And, > > would you consider this as default? i.e. just a simple black > > horizontal line that's about 60 char long. > > 1. Customize face `pp^l-highlight': Remove the boxing. > > 2. Customize option `pp^L-^L-string': Use a 60-char string of underline > characters, e.g. (make-string 60 ?_). > > 3. `M-x refresh-pretty-control-l'. > > In what way doesn't that give you what you described? > > Turn Strike-through or Overline on (also) if you want a double line: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D. Or use a string o= f spaces, and turn on Underline and/or > Overline and/or Strike-through. Each of those lines can be colored, etc. = Don't > forget to use the Value Menu to turn these attributes on - it's not enoug= h to > check the box. This is no different from customizing any face. > > I want the default string value to be what it is. It lets users, especial= ly new > users, clearly recognize a page separator (and not mistake it for somethi= ng > else). It's easy to customize it to get something different (once you are > familiar with Customize ;-)). > > The default value practically shouts, "(1) I'm a page separator; (2) I ca= use > page separation when you print too; (3) Customize me, if you think I'm ug= ly". > About the only thing it doesn't advertize is that you can move among page= s (`C-x > ]' etc.) and otherwise operate on pages. > > HTH. Hi Drew, Thanks for the help. It did help. It did help. However, for some reason i'm still getting problems. Reproduction steps: 1. M-x customize-group , Pretty-Control-L 2. scroll to =E2=80=9CPp^L ^L String Pre=E2=80=9D section. Change the value= there to 60 spaces. 3. Uncheck the box. Check the underline. Color maroon. 4. Click Save for future session above. 5. Now, the .emacs shows the following: (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(completions-first-difference ((t (:inherit bold :foreground "red")))) '(pp^L-highlight ((((type x w32 mac graphic) (class color)) (:underline "maroon")))) '(show-paren-match ((((class color) (background light)) (:background "azure2"))))) (custom-set-variables ;... '(pp^L-^L-string " =E2=80=A2") '(pretty-control-l-mode t) ) However, refresh or restarting emacs it still displays =E2=80=9CSection (Printable Page)=E2=80=9D. This is tested on Carbon emacs and X11 emacs with gtk. Both version 22.x, on the mac. Xah =E2=88=91 http://xahlee.org/ =E2=98=84