all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nick Roberts <nickrob@snap.net.nz>
Subject: Make apostrophes invisible in Help buffers
Date: Mon, 19 Dec 2005 01:10:29 +1300	[thread overview]
Message-ID: <17317.20917.890165.284080@kahikatea.snap.net.nz> (raw)


The patch below works just for symbols and is just for demonstration purposes.
It would also be nice to use the same face as Info for links.  After the
release, info-xref-visited face could also be used help topics previously
visited.

Nick


*** help-mode.el	15 Nov 2005 15:48:05 +1300	1.40
--- help-mode.el	19 Dec 2005 01:02:46 +1300	
***************
*** 381,387 ****
                  (while (re-search-forward help-xref-symbol-regexp nil t)
                    (let* ((data (match-string 8))
                           (sym (intern-soft data)))
!                     (if sym
                          (cond
                           ((match-string 3)  ; `variable' &c
                            (and (or (boundp sym) ; `variable' doesn't ensure
--- 381,387 ----
                  (while (re-search-forward help-xref-symbol-regexp nil t)
                    (let* ((data (match-string 8))
                           (sym (intern-soft data)))
!                     (when sym
                          (cond
                           ((match-string 3)  ; `variable' &c
                            (and (or (boundp sym) ; `variable' doesn't ensure
***************
*** 426,432 ****
   			      (cyclic-variable-indirection nil))))
  			  (help-xref-button 8 'help-variable sym))
  			 ((fboundp sym)
! 			  (help-xref-button 8 'help-function sym)))))))
                ;; An obvious case of a key substitution:
                (save-excursion
                  (while (re-search-forward
--- 426,436 ----
   			      (cyclic-variable-indirection nil))))
  			  (help-xref-button 8 'help-variable sym))
  			 ((fboundp sym)
! 			  (help-xref-button 8 'help-function sym)))
! 			(let ((start (match-beginning 8))
! 			      (end (match-end 8)))
! 			(put-text-property start (1- start) 'invisible t)
! 			(put-text-property end (1+ end) 'invisible t))))))
                ;; An obvious case of a key substitution:
                (save-excursion
                  (while (re-search-forward

             reply	other threads:[~2005-12-18 12:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-18 12:10 Nick Roberts [this message]
2005-12-19  4:38 ` Make apostrophes invisible in Help buffers Richard M. Stallman
2005-12-19  5:11   ` Nick Roberts
2005-12-19 23:46     ` Richard M. Stallman
2005-12-20  0:32       ` Nick Roberts
2005-12-20 16:33         ` Richard M. Stallman
2005-12-19 19:58 ` Drew Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=17317.20917.890165.284080@kahikatea.snap.net.nz \
    --to=nickrob@snap.net.nz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.