unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Inaccurate paragraph in (info "(elisp)Terminal-Specific")
@ 2006-05-13  2:46 Daniel Brockman
  2006-05-13 10:48 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Brockman @ 2006-05-13  2:46 UTC (permalink / raw)


>From (info "(elisp)Terminal-Specific"):

   When the name of the terminal type contains a hyphen,
   only the part of the name before the first hyphen is
   significant in choosing the library name.  Thus, terminal
   types `aaa-48' and `aaa-30-rv' both use the
   `term/aaa' library.  If necessary, the library can
   evaluate `(getenv "TERM")' to find the full name of the
   terminal type.

The code actually looks like this:

    (while (and term
                (not (load (concat term-file-prefix term) t t)))
      ;; Strip off last hyphen and what follows, then try again
      (setq term
            (if (setq hyphend (string-match "[-_][^-_]+\\'" term))
                (substring term 0 hyphend)
              nil)))

So it is inaccurate to say that ``only the part of the name
before the first hyphen is significant.''

I suggest the following text:

   When no matching library is found and the name of the
   terminal type contains a hyphen, the last hyphen and
   everything that follows is stripped from the terminal
   type name and another attempt is made.  This process is
   continued recursively until a matching library is found,
   or there are no more hyphens in the name.  For example,
   the terminal types `aaa-48' and `aaa-30-rv' both use the
   `term/aaa' library.  (If necessary, the library can
   evaluate `(getenv "TERM")' to find the full name of the
   terminal type.)


-- 
Daniel Brockman <daniel@brockman.se>

   ``For any given feature, I don't care much about the
     people who find it useless --- I care more about
     the people who find it useful.'' --- Larry Wall

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

* Re: Inaccurate paragraph in (info "(elisp)Terminal-Specific")
  2006-05-13  2:46 Inaccurate paragraph in (info "(elisp)Terminal-Specific") Daniel Brockman
@ 2006-05-13 10:48 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2006-05-13 10:48 UTC (permalink / raw)
  Cc: emacs-devel

> From: Daniel Brockman <daniel@brockman.se>
> Date: Sat, 13 May 2006 04:46:28 +0200
> 
> I suggest the following text:
> 
>    When no matching library is found and the name of the
>    terminal type contains a hyphen, the last hyphen and
>    everything that follows is stripped from the terminal
>    type name and another attempt is made.  This process is
>    continued recursively until a matching library is found,
>    or there are no more hyphens in the name.  For example,
>    the terminal types `aaa-48' and `aaa-30-rv' both use the
>    `term/aaa' library.  (If necessary, the library can
>    evaluate `(getenv "TERM")' to find the full name of the
>    terminal type.)

Thanks, I made a somewhat different change.

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

end of thread, other threads:[~2006-05-13 10:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-13  2:46 Inaccurate paragraph in (info "(elisp)Terminal-Specific") Daniel Brockman
2006-05-13 10:48 ` 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).