unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: Hiding *Note:: "tags" in info files
@ 2002-10-30 11:49 Kim F. Storm
  2002-10-30 13:20 ` Andreas Schwab
  0 siblings, 1 reply; 22+ messages in thread
From: Kim F. Storm @ 2002-10-30 11:49 UTC (permalink / raw)



Eli wrote:

> I suggest replacing "*Note" with "See" and removing "*note".

That would make sense in many places, but there are also places where
the *Notes are already in a "sensible" textual scope such as

	See *Note Some Topic:: for details.

Blindingly replacing *Note by See would change that to:

	See See Some Topic for details.


Perhaps we could look at the context and replace *Note by See
if the last non-whitespace character preceeding *Note
is a symbol (such as '.' or ',' or '('), and remove it otherwise.

I'll give it a try...

-- 
Kim F. Storm  <storm@cua.dk>      http://www.cua.dk

^ permalink raw reply	[flat|nested] 22+ messages in thread
* Re: Hiding *Note:: "tags" in info files
@ 2002-11-01  8:57 Kim F. Storm
  2002-11-01  9:34 ` Karl Eichwalder
  0 siblings, 1 reply; 22+ messages in thread
From: Kim F. Storm @ 2002-11-01  8:57 UTC (permalink / raw)




Karl Eichwalder keichwa@gmx.net writes:

> > It also hides the "Section" part of the *note:... links to further improve
> > readability.
> 
> Do you intent to manipulate those pointers, too?  I don't want to loose
> info, that following the reference I'll end up in the Emacs manual,
> section "Undo".

The default is to hide those references (web pages are not
cluttered with the actual URLs for each link either, so I think this
what people would normally expect).

However, you can set Info-hide-note-references to nil to see them.

-- 
Kim F. Storm  <storm@cua.dk>      http://www.cua.dk

^ permalink raw reply	[flat|nested] 22+ messages in thread
* Hiding  *Note:: "tags" in info files
@ 2002-10-29 12:03 Kim F. Storm
  2002-10-29 17:11 ` Francesco Potorti`
                   ` (2 more replies)
  0 siblings, 3 replies; 22+ messages in thread
From: Kim F. Storm @ 2002-10-29 12:03 UTC (permalink / raw)



When I browse info files in emacs, I find all those visible 
*Note ... :: "tags" pretty annoying, given that the references
are already displayed in the info-xref face.

The following patch hides those superfluous decorations.

The result isn't perfect, since the wording around some of the nodes
become a bit sparse, e.g. (upper case indicates highlighting)

   *Note GETTING A PRINTED MANUAL::, if you would like a paper copy of
the Emacs manual.

(which isn't perfect English either) becomes

   GETTING A PRINTED MANUAL, if you would like a paper copy of
the Emacs manual.


But personally I don't think that is worse than the *Note stuff.

WDYT?



Index: info.el
===================================================================
RCS file: /cvs/emacs/lisp/info.el,v
retrieving revision 1.318
diff -c -r1.318 info.el
*** info.el	8 Oct 2002 04:57:27 -0000	1.318
--- info.el	29 Oct 2002 11:51:26 -0000
***************
*** 2712,2724 ****
  	    (add-text-properties (match-beginning 2) (1+ (match-end 2))
  				 '(invisible t intangible t))))
  	(goto-char (point-min))
! 	(while (re-search-forward "\\*Note[ \n\t]+\\([^:]*\\):" nil t)
  	  (if (= (char-after (1- (match-beginning 0))) ?\") ; hack
  	      nil
  	    (add-text-properties (match-beginning 1) (match-end 1)
  				 '(font-lock-face info-xref
  				   mouse-face highlight
! 				   help-echo "mouse-2: go to this node"))))
  	(goto-char (point-min))
  	(if (and (search-forward "\n* Menu:" nil t)
  		 (not (string-match "\\<Index\\>" Info-current-node))
--- 2712,2729 ----
  	    (add-text-properties (match-beginning 2) (1+ (match-end 2))
  				 '(invisible t intangible t))))
  	(goto-char (point-min))
! 	(while (re-search-forward "\\(\\*Note[ \n\t]+\\)\\([^:]*\\)\\(:+\\)" nil t)
  	  (if (= (char-after (1- (match-beginning 0))) ?\") ; hack
  	      nil
  	    (add-text-properties (match-beginning 1) (match-end 1)
+ 				 '(invisible t))
+ 	    (add-text-properties (match-beginning 2) (match-end 2)
  				 '(font-lock-face info-xref
  				   mouse-face highlight
! 				   help-echo "mouse-2: go to this node"))
! 	    (add-text-properties (match-beginning 3) (match-end 3)
! 				 '(invisible t))))
! 
  	(goto-char (point-min))
  	(if (and (search-forward "\n* Menu:" nil t)
  		 (not (string-match "\\<Index\\>" Info-current-node))


-- 
Kim F. Storm  <storm@cua.dk>      http://www.cua.dk

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2002-11-02  8:08 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-30 11:49 Hiding *Note:: "tags" in info files Kim F. Storm
2002-10-30 13:20 ` Andreas Schwab
2002-10-30 14:14   ` Eli Zaretskii
2002-10-30 19:14     ` Andreas Schwab
2002-10-31 17:26     ` Richard Stallman
  -- strict thread matches above, loose matches on Subject: below --
2002-11-01  8:57 Kim F. Storm
2002-11-01  9:34 ` Karl Eichwalder
2002-10-29 12:03 Kim F. Storm
2002-10-29 17:11 ` Francesco Potorti`
2002-10-29 19:42 ` Eli Zaretskii
2002-10-30 17:17 ` Richard Stallman
2002-10-30 23:51   ` Kim F. Storm
2002-10-31  4:07     ` Karl Eichwalder
2002-10-31  4:24       ` Miles Bader
2002-10-31  6:00     ` Eli Zaretskii
2002-10-31 17:27     ` Richard Stallman
2002-11-01  0:10       ` Kim F. Storm
2002-11-01  2:24         ` Karl Eichwalder
2002-11-01  8:01           ` Eli Zaretskii
2002-11-01 15:30         ` Stefan Monnier
2002-11-01 23:22           ` Kim F. Storm
2002-11-02  8:08             ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).