unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Miles Bader <miles@lsi.nec.co.jp>
Cc: emacs-devel@gnu.org, emacs-pretest-bug@gnu.org
Subject: Re: info invisible changes
Date: 05 Nov 2002 13:08:02 +0900	[thread overview]
Message-ID: <buowunsirq5.fsf@mcspd15.ucom.lsi.nec.co.jp> (raw)
In-Reply-To: <200211011623.gA1GNAL03601@rum.cs.yale.edu>

"Stefan Monnier" <monnier+gnu/emacs@rum.cs.yale.edu> writes:
> Can you decode for me the following email you sent ;-) ?

Whoops, sorry; maybe that's why I didn't any response (until I looked
just now, I didn't even realize that it had gotten encoded into some
wierd encoding, base64'd, etc!)...

Here's the original mail, sans byte-code strings:


Hi Kim,

I see you put in your info changes.

It does look nicer (cleaner), but there are some problems:

When I do `Memacs' from the top-level dir (with point at the beginning
of the buffer), I get the following error:

   Debugger entered--Lisp error: (error "No such anchor in tag table or node in tag table or file: The extensible self-documenting text editor")
     signal(error ("No such anchor in tag table or node in tag table or file: The extensible self-documenting text editor"))
     error("No such anchor in tag table or node in tag table or file: %s" "The extensible self-documenting text editor")
     byte-code(...)
     Info-find-node-2(nil "The extensible self-documenting text editor" nil)
     Info-find-node(nil "The extensible self-documenting text editor")
     Info-goto-node("The extensible self-documenting text editor" nil)
     Info-menu("Emacs" nil)
     call-interactively(Info-menu)

[Note that the "The extensible ..." is the descriptive text for the
 `Emacs' menu line, so apparently the `M' command is getting confused
 about how things are formatted.]

There are some other, more minor problems with this:

  (1) The dir file (and presumably other info menus) I have was
      formatted assuming that no text would be hidden, so in some cases,
      the invisible text results in a very wierd looking display.

      Here's an example display from my *info* dir node (these are all
      debian entries):

--- begin quote ---
* CVS		        Concurrent Versions
						     System
* CVS client/server     Describes the
						     client/server protocol
						     used by CVS.
* gcc-295		The GNU Compiler
						     Collection (Version
						     2.95.x).
* Gdb			The GNU debugger.
* Gdb-Internals		The GNU debugger's
						     internals.
---  end quote  ---

      Here's the text as it appears without invisible regions:

--- begin quote ---
* CVS: (cvs).					     Concurrent Versions
						     System
* CVS client/server: (cvsclient).		     Describes the
						     client/server protocol
						     used by CVS.
* gcc-295: (gcc-295).				     The GNU Compiler
						     Collection (Version
						     2.95.x).
* Gdb: (gdb).					     The GNU debugger.
* Gdb-Internals: (gdbint).			     The GNU debugger's
						     internals.
---  end quote  ---

      From the above, it seems that your change also removes some
      whitespace, because just difference can't be accounted for by just
      making the node-name and puncutation invisible.

  (2) Cursor movement is `wierd' around the invisible text region.  For
      instance, taking one of the menu lines from above:

--- begin quote ---
* gcc-295		The GNU Compiler
---  end quote  ---

      when I use C-f to move forward from the beginning of the line,
      everything's OK until point is before the `5'.  If I hit C-f
      then, point jumps to being before the `T', when I expected it to
      move to just after the `5'.  If I then hit C-f again, the cursor
      doesn't move, `sticking' at the point before the `T'; another C-f
      then moves forward as expected.

      I thought these sorts of problems were supposed to be generally
      fixed these days (well, C-n/C-p are still fucked I think, but
      they're a separate case), so perhaps there's something odd with
      the way you're setting up your invisible text.

  (3) In the gcc-2.95 info doc, there's a node (`(gcc-295)G++ and GCC')
      that contains the following text:

--- begin quote ---
that you get better object code, and better debugging information.  The
GNU debugger, GDB, works with this information in the object code to
give you comprehensive C++ source-level editing capabilities (*note C
and C++: (gdb.info)C.).
---  end quote  ---

      your *note hack turns it into:

--- begin quote ---
that you get better object code, and better debugging information.  The
GNU debugger, GDB, works with this information in the object code to
give you comprehensive C++ source-level editing capabilities (see C
and C++.info)C.).
---  end quote  ---

  (4) The wrapping problem happens with *note tags too; often it's fairly
      benign (a line that's unusually short because of invisible'd text),
      but sometimes it gets a bit uglier; e.g. the original:

--- begin quote ---
     order to be compiled,and also requires the header files for the
     target's thread library if you want thread support.  *Note
     Cross-Compilers and Header Files: Cross Headers, for discussion
     about header files issues for cross-compilation.
---  end quote  ---

      turns into [note the wrapped line]:

--- begin quote ---
     order to be compiled,and also requires the header files for the
     target's thread library if you want thread support.  See Cross-Compilers and Header Files, for discussion
     about header files issues for cross-compilation.
---  end quote  ---

  (5) Cursor movement around the `See' is wierd, but I guess that's
      something you can do much about.

  (6) Ah, I just saw another misformatted menu entry; the original:

--- begin quote ---
* gcc-3.2: (gcc-3.2).				     The GNU Compiler
						     Collection (Version 3.2).
* gccint-3.2: (gccint-3.2).			     Internals of the GNU
						     Compiler Collection
						     (Version 3.2).
---  end quote  ---

      turns into:

--- begin quote ---
* gcc-3.2		2).				     The GNU Compiler
						     Collection (Version 3.2).
* gccint-3.2		2).			     Internals of the GNU
						     Compiler Collection
						     (Version 3.2).
---  end quote  ---

Anyway, I basically like it, it's noticably easier to read than the old
style.

-Miles

-- 
Somebody has to do something, and it's just incredibly pathetic that it
has to be us.  -- Jerry Garcia

  parent reply	other threads:[~2002-11-05  4:08 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-01  8:04 info invisible changes Miles Bader
     [not found] ` <200211011623.gA1GNAL03601@rum.cs.yale.edu>
2002-11-05  4:08   ` Miles Bader [this message]
2002-11-05 18:49     ` Stefan Monnier
2002-11-07  4:49       ` Richard Stallman
2002-11-05 23:57     ` Kim F. Storm
2002-11-06  9:51       ` Miles Bader
2002-11-06 12:46         ` Kim F. Storm
2002-11-06 12:30           ` Miles Bader
2002-11-06 15:11         ` Stefan Monnier
2002-11-06 16:32           ` Miles Bader
2002-11-07 15:08           ` Richard Stallman
2002-11-12 10:11             ` Kim F. Storm
2002-11-12  9:22               ` Miles Bader
2002-11-12 10:59                 ` Kim F. Storm
2002-11-12 17:28                   ` Robert J. Chassell
2002-11-13 14:37                     ` Kim F. Storm
2002-11-13 18:20                       ` Robert J. Chassell
2002-11-14 12:17                         ` Richard Stallman
2002-11-14 21:38                           ` Kim F. Storm
2002-11-12 18:49               ` Stefan Monnier
2002-11-13 23:31                 ` Kim F. Storm
2002-11-14  0:39                 ` Kim F. Storm
2002-11-14  4:09               ` Richard Stallman
  -- strict thread matches above, loose matches on Subject: below --
2002-11-14 13:57 Karl Berry

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=buowunsirq5.fsf@mcspd15.ucom.lsi.nec.co.jp \
    --to=miles@lsi.nec.co.jp \
    --cc=emacs-devel@gnu.org \
    --cc=emacs-pretest-bug@gnu.org \
    --cc=miles@gnu.org \
    /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 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).