1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-03 08:30:09 +00:00
Commit Graph

393 Commits

Author SHA1 Message Date
Juri Linkov
836bb47866 Add *info*<[0-9]+> to same-window-regexps instead of
same-window-buffer-names.
(info): New arg `buffer'.  Use it.  Doc fix.  Read file name for
non-numeric prefix argument, append the number to the buffer name
for numeric prefix argument.
(info-other-window): Bind same-window-regexps to nil.
(Info-reference-name): Rename to Info-point-loc.
(Info-find-node-2): Call forward-line for numeric Info-point-loc,
and Info-find-index-name for stringy Info-point-loc.
(Info-extract-menu-node-name): New arg `index-node'.  Use regexp
without middle `.', but with final `.' and optional line number
for it.  Set Info-point-loc for index nodes.
(Info-index): Remove middle `.' from index entry regexp.
Modify line number regexp.
(Info-index-next): Decrement line number.
(info-apropos): Remove middle `.' from index entry regexp.
Add optional line number regexp at the end.  Add matched value
for line number to the result list and insert it to the buffer.
(Info-fontify-node): Hide index line numbers.
(Info-goto-node): Replace "\\s *\\'" by "\\s +\\'" to not trim
empty matches.
(Info-follow-reference): Use `str' instead of
Info-following-node-name-re.
(Info-toc): Use full file names.  Set Info-current-node to "Top".
(Info-fontify-node): Compare file names without directory name.
(Info-try-follow-nearest-node): Don't set Info-reference-name.
Set second arg of Info-extract-menu-node-name for index nodes.
(info-xref-visited): Use magenta3 instead of magenta4.
(Info-mode): Add info-apropos to docstring.
2004-04-27 06:39:46 +00:00
Lars Hansen
9d9d10ec34 (Info-mode): Rename desktop-buffer-misc-data-function
to desktop-save-buffer.
2004-04-26 18:55:32 +00:00
Jesper Harder
82f1aca958 (info-apropos): Reset Info-complete-cache. 2004-04-25 14:08:02 +00:00
Lars Hansen
2a3f604d66 (Info-restore-desktop-buffer): Delete with-no-warnings. 2004-04-22 19:49:45 +00:00
Juri Linkov
89b064a999 Restore 2004-04-18 changes. 2004-04-21 22:23:25 +00:00
Stefan Monnier
508bce68ce (info-node, info-menu-5, info-xref, info-header-node)
(Info-title-1-face, Info-title-2-face, Info-title-3-face)
(Info-title-4-face): Use new syntax.
(info-xref-visited): Inherit from info-xref.
2004-04-21 20:54:19 +00:00
Lars Hansen
f3a45db0d1 (Info-restore-desktop-buffer): Move from desktop.el. Add Parameters.
(Info-desktop-buffer-misc-data): Move from desktop.el. Add parameter.
2004-04-21 20:51:06 +00:00
Juri Linkov
bf7d6fa785 (Info-find-file, Info-find-node-2): Add history and toc.
(Info-find-node-2): Simplify error message.
(Info-insert-dir): Use Info-following-node-name.
(Info-goto-node): Remove *info-history* and *info-toc*.
(Info-history): Create a node of the virtual history file.
(Info-toc): Create a node of the virtual toc file.
(Info-insert-toc): New arg `curr-file' for reference file names.
(info-apropos): Remove redundant var binding for temp-file.
(Info-index, Info-index-next, Info-mode): Doc fix.
(Info-goto-emacs-command-node): Don't jump to *info* from
non-*info* Info buffers.
(Info-fontify-node): Don't show the file name of external
references if `Info-hide-note-references' is `hide'.  Don't hide
newlines at the end of paragraphs.
2004-04-18 15:28:19 +00:00
Stefan Monnier
6070505443 (info): Always jump to *info*. 2004-04-14 18:39:52 +00:00
Jesper Harder
37600b6d00 (info-apropos): Don't clobber Info-history-list. 2004-04-14 15:58:30 +00:00
Juri Linkov
cd478f3d37 (Info-follow-reference): Allow multiline reference name. 2004-04-12 04:46:47 +00:00
Jesper Harder
7b30b20c7e (info-apropos): Improve menu item regexp. 2004-04-09 14:32:49 +00:00
Juri Linkov
8a7757f6f5 (Info-history): Doc fix.
(Info-history-list): New var.
(info-xref): Change magenta4 to blue, remove bold for dark and
light backgrounds, change bold to underline for non-color classes.
(info-xref-visited): New face.
(Info-fontify-visited-nodes): New custom.
(Info-hide-note-references): Add new value `hide'.  Doc fix.
(Info-reference-name): New var.
(Info-selection-hook): New custom.
(Info-edit-mode-hook): New var.
(Info-find-file): New fun.
(Info-find-node): Move part of code to Info-find-file.
(Info-find-node-2): Add anchors to Info-history-list.  Move point
to the place with the reference name if name is defined.
(Info-select-node): Add current node to Info-history-list.
(Info-goto-node): Switch to *info* from *info-history* *info-toc*.
(Info-search-whitespace-regexp): New custom.
(Info-search-case-fold): New var.
(Info-search): Add "case-sensitively" to the prompt.  Use
Info-search-whitespace-regexp.  Set Info-search-case-fold.
(Info-search-case-sensitively, Info-search-next): New fun.
(Info-up): Move point to the menu item of the current node.
(Info-history): New fun.  Add *info-history* to same-window-buffer-names.
(Info-toc): New fun.  Add *info-toc* to same-window-buffer-names.
(Info-insert-toc): New fun.
(Info-build-toc): New fun.
(Info-follow-reference): Add new arg `fork'.  Doc fix.
Replace [ \n\t]* by [ \n\t]+ in the *Note regexp.  For references
with the same name prefer the reference closest to point.
(Info-next-reference): Replace * by + in the *Note regexp.
Add regexp for http:// and ftp://.  Skip the *Note prefix.
(Info-prev-reference): Replace * by + in the *Note regexp.
Add regexp for http:// and ftp://.  Skip the *Note prefix.
(Info-follow-nearest-node): Add new arg `fork'.
(Info-try-follow-nearest-node): Add new arg `fork'.
Call browse-url for http:// and ftp:// references.
Set Info-reference-name for index entries.
(Info-mode-menu): Add menu items for Info-search-case-sensitively,
Info-search-next, Info-history, Info-toc, clone-buffer.
(Info-menu-update): Replace * by + in the *Note regexp.
(Info-mode): Add documentation for Info-history, Info-toc,
Info-search-case-sensitively, Info-search-next, clone-buffer.
(Info-fontify-menu-headers): Remove fun.  Move code to
Info-fontify-node.
(Info-fontify-node): Add docstring.  Add local vars
fontify-visited-p and not-fontified-p.  If not-fontified-p is t
then fontify header line, titles, menu headers, http and ftp
references, refill paragraphs.  If not-fontified-p is t or
fontify-visited-p is t then fontify cross references, menu items.
Fontify menu headers.  Fontify http and ftp references.  Change
regexp for cross references to require whitespace after *Note, add
matching groups for file and node names.  Remove hack for quote.
Use display property for Info-hide-note-references=t.  Use fifth
or fourth match for help-echo.  Display visited nodes in a
different face.  Unhide file names of external references.  Unhide
newlines.  Display visited menu items in a different face.
2004-04-08 03:44:34 +00:00
Juri Linkov
0c1b7af5c5 (Info-hide-cookies-node): New function.
(Info-select-node): Use it.
(Info-display-images-node): Remove message with image file name.
2004-04-08 03:12:16 +00:00
Jesper Harder
ab2f22adc0 (info-apropos): New function.
(Info-mode-menu): Add it.
(Info-find-node, Info-find-node-2): Grok apropos virtual file.
2004-04-05 12:40:56 +00:00
Stefan Monnier
f6b2b74d12 Fix copyright. 2004-03-22 17:12:16 +00:00
Stefan Monnier
a025fccf60 (Info-default-dirs): Don't ignore last part of I-d-d-l. 2004-03-19 02:37:11 +00:00
Richard M. Stallman
9f4aee27ca (Info-insert-dir): Use assoc-string. 2003-12-29 19:18:53 +00:00
John Paul Wallington
1ed6e0c324 (Info-unescape-quotes, Info-split-parameter-string)
(Info-goto-emacs-command-node): Doc fixes.
2003-12-23 20:25:22 +00:00
Lute Kamstra
3536c1212d (Info-mode): Revert previous change.
(Info-escape-percent): New function.
(Info-fontify-node): Use it.
2003-10-06 07:14:53 +00:00
Richard M. Stallman
718e6bc777 (Info-following-node-name): New function. 2003-10-05 13:51:04 +00:00
Richard M. Stallman
605f14946c (Info-mode): Double each `%' in header line. 2003-09-30 12:48:19 +00:00
Eli Zaretskii
bbe054f74b (Info-find-index-name): Search both with and without the " <1>" etc.
suffixes which makeinfo appends to duplicate index entries.
2003-09-28 09:17:29 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Richard M. Stallman
508f27a0e8 (Info-mode-map): Bind S-tab and <backtab> to
`Info-prev-reference', instead of M-tab.
2003-08-29 16:07:43 +00:00
Luc Teirlinck
b52a319db5 (Info-scroll-prefer-subnodes): Add :version keyword to defcustom,
because the default was recently changed.
2003-08-17 05:25:58 +00:00
Stefan Monnier
e057da5239 (Info-menu-entry-name-re): Allow newlines in menu entry names. 2003-07-16 15:54:25 +00:00
Richard M. Stallman
774f8aee6f (Info-search): If find invisible text, search again. 2003-07-07 21:03:32 +00:00
Stefan Monnier
00d32b3f98 (Info-menu): Use Info-menu-entry-name-re. 2003-07-07 14:46:00 +00:00
Stefan Monnier
dc92db4ef6 (Info-menu-entry-name-re): Disallow : again: I misunderstood the problem. 2003-07-06 17:00:41 +00:00
Stefan Monnier
2760913103 (Info-menu-entry-name-re): Be careful to avoid multiple ways
to match the same text.  Allow : after : again.
2003-07-06 16:35:23 +00:00
Kim F. Storm
cf90703fc4 (Info-menu-entry-name-re): Add `:' to second [] part.
This should fix the infinite loop when extracting menu names.
2003-07-06 11:47:04 +00:00
Stefan Monnier
c60c12be4c (Info-following-node-name-re): New fun.
(Info-following-node-name): Remove.
(Info-insert-dir): Use the new fun.
(Info-extract-pointer): Don't save restriction; use new fun.
(Info-menu-entry-name-re): New const.
(Info-menu-entry-name-re): Use it along with new fun.
(Info-node-spec-re): Use new fun.
(Info-complete-menu-item, Info-fontify-node): Use new const.
(Info-goto-node, Info-follow-reference, Info-menu-update):
Use match-string.
(Info-follow-reference): Use assoc-string.
Use a list of strings for the completion table.
(Info-fontify-node): Use match-string, line-end-position.
Limit the search for `node:' to the first line.
2003-07-04 23:05:35 +00:00
Kim F. Storm
bb1e1730ec Disable paragraph refilling.
(Info-refill-paragraphs): New defcustom.
(Info-fontify-node): Use it.
2003-07-04 21:40:22 +00:00
Luc Teirlinck
610bc96b14 (Info-fontify-menu-headers): Only fontify `* Menu:' at the beginning
of a line.
(Info-extract-menu-node-name): Correctly initialize while loop.
(Info-scroll-prefer-subnodes): Change default to nil.
2003-07-02 00:57:20 +00:00
Andreas Schwab
fb020fe894 (Info-fontify-node): Improve calculation of other-tag. 2003-06-19 20:56:49 +00:00
Luc Teirlinck
2e49e8e850 (Info-fontify-node): Give only the last whitespace character after the
node name the display property.  Give all other such whitespace the
invisibility property.
2003-06-18 03:03:23 +00:00
Kim F. Storm
79ff129679 (Info-fontify-node): Make `invisible' property
non-sticky so that whitespace added by filling stays visible.
Make refilling less agressive by starting at beginning of current
line rather than beginning of current paragraph.
2003-06-09 22:00:34 +00:00
Lute Kamstra
0defe75805 (Info-complete-menu-item): Revert change of 2003-06-03. 2003-06-06 16:13:31 +00:00
Andreas Schwab
b038485e9a (Info-select-node): Doc fix. 2003-06-06 12:28:16 +00:00
Kim F. Storm
08eba4dc5e (Info-fontify-node): Don't refill over lines ending in a
period; this should fix problems with lists like one in the
(emacs)Library Keywords section.
2003-06-05 23:23:53 +00:00
Luc Teirlinck
c2a87d7439 (Info-mode): Mention c' and remove duplicate mention of q' in
documentation string.
2003-06-05 19:11:42 +00:00
Kim F. Storm
192b65f581 (Info-fontify-node): Individually refill menus and
paragraphs to preserve menu items and varying indentation.
Only color first 9 menu items differently.
2003-06-04 23:15:29 +00:00
Stefan Monnier
a1637357dc (Info-extract-menu-node-name): Remove unused arg `errmessage'.
(Info-follow-reference): Update corresponding call.
(Info-node-spec-re): New const.
(Info-complete-menu-item): Use it to only allow : when necessary.
(Info-fontify-node): USe it as well.  Fixup typo.
2003-06-03 21:44:53 +00:00
Stefan Monnier
472d38201d (info-fontify-node): Use better help-echo text. 2003-06-03 20:56:59 +00:00
Stefan Monnier
0c3aa29ef8 (Info-fontify-node): Use :align-to display prop.
Use `invisible' rather than `display' prop to hide text.
2003-06-03 20:28:21 +00:00
Stefan Monnier
dde7f979b8 (Info-mode-hook): Obey obsolete `Info-fontify'.
(Info-find-in-tag-table-1): Remove unused vars.
(Info-display-images-node): Remove unused var paragraph-markers.
(Info-header-line): Remove.
(Info-select-node): Don't set it.
(Info-search): Remove unused var `current'.
(Info-follow-reference): Remove unused var `beg'.
(Info-extract-menu-node-name): Remove unused var `i'.
(Info-complete-menu-item): Use `with-current-buffer'.
(Info-index): Remove unused var `rnode'.
(Info-mode): Set header-line-format to check text-properties directly.
(Info-find-emacs-command-nodes): Remove unused var `found' and `exact'.
(Info-fontify-node): Use `push'.
(Info-speedbar-hierarchy-buttons): Use `dolist'.
(Info-speedbar-goto-node, Info-speedbar-fetch-file-nodes):
Check the return value of `string-match'.
(Info-speedbar-fetch-file-nodes): Factor out common code.
2003-06-03 19:54:42 +00:00
Stefan Monnier
75a756f147 (Info-fontify-node): Hide \n------- rather than -------\n. 2003-05-28 22:53:08 +00:00
Richard M. Stallman
201bc1bdf6 (Info-index): Add autoload cookie. 2003-05-28 11:20:42 +00:00
Karl Berry
ec9b13721d new image display support, from janneke 2003-04-25 23:17:06 +00:00