1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-02 11:21:42 +00:00
Commit Graph

405 Commits

Author SHA1 Message Date
Luc Teirlinck
f254e21f8c (Info-find-emacs-command-nodes): Adapt to Texinfo-4.7 style indexes. 2004-10-24 18:36:28 +00:00
Thien-Thi Nguyen
e14105f6fa (Info-fontify-node): For multiline refs,
arrange to unfontify newline and surrounding whitespace.
2004-10-18 07:31:43 +00:00
Richard M. Stallman
cc3f6c32b9 (info-xref): Add underlining.
(info): Add info-file property.
(Info-find-emacs-command-nodes): Specify case-sensitive search.
2004-10-13 02:09:57 +00:00
Juri Linkov
ea99d5c800 (Info-history, Info-toc): Fix Info headers.
(Info-toc): Narrow buffer before Info-fontify-node.
(Info-build-toc): Don't check for special Info file names.
Set main-file to nil if Info-find-file returns a symbol.
2004-10-05 04:23:55 +00:00
Thien-Thi Nguyen
dc9bec220d (Info-insert-dir): Fix temp buffer leak bug. 2004-09-08 10:28:17 +00:00
Juri Linkov
fc11ddc8d7 (Info-fontify-node): Don't compute other-tag if Info-hide-note-references=hide. 2004-09-02 16:36:18 +00:00
Juri Linkov
0b02cda944 (Info-search-whitespace-regexp): Fix backslashes.
(Info-search): Add new optional arguments for the sake of isearch.
Replace whitespace in Info-search-whitespace-regexp literally.
Add backward search.  Don't call `Info-select-node' if regexp is
found in the same Info node.  Don't add node to Info-history for
wrapped isearch.
(Info-search-backward, Info-isearch-search, Info-isearch-wrap)
(Info-isearch-push-state, Info-isearch-pop-state): New funs.
(Info-mode): Set local variables `isearch-search-fun-function',
`isearch-wrap-function', `isearch-push-state-function',
`search-whitespace-regexp'.
2004-09-01 19:29:28 +00:00
Juri Linkov
bc2246458a (Info-goto-node): Add autoload.
(Info-toc): Add substring-no-properties on Info file name.
(Info-mode, info, Info-toc, Info-mode-menu): Doc fix.
(Info-mode-map): Bind L to Info-history, T to Info-toc.
2004-06-12 05:54:43 +00:00
Juri Linkov
c9ce1e4048 (Info-desktop-buffer-misc-data): Don't save information
about virtual files.
(Info-restore-desktop-buffer): Restore Info buffers in prepared
buffers with names obtained from the desktop file instead of the
default *info* buffer.
2004-05-28 20:56:41 +00:00
Juri Linkov
50163b00ab (Info-toc): Call Info-mode on intermediate buffer.
(Info-index-nodes): Enclose code in condition-case to catch errors.
(Info-index-node): Don't search all index nodes if request is only
for the current node and file is not in the cache of index nodes.
(Info-mode-map): Bind Info-copy-current-node-name to `w'
for consistency with dired-copy-filename-as-kill.
Bind `S' to Info-search-case-sensitively.
(Info-copy-current-node-name): New arg.  With zero prefix arg put
the name inside a function call to `info'.  Display copied text in
the echo area.
2004-05-25 20:59:31 +00:00
Juri Linkov
141b49f563 (Info-index-nodes): New var and fun.
(Info-goto-index, Info-index, info-apropos)
(Info-find-emacs-command-nodes): Rewrite to use Info-index-nodes.
(Info-index): Fix docstring.  Store and restore Info-history-list.
(Info-complete-nodes): New var.
(Info-complete-menu-item): Use it.
(Info-index-node): New fun.
(Info-final-node, Info-forward-node, Info-backward-node)
(Info-build-toc, Info-try-follow-nearest-node, Info-fontify-node):
Use Info-index-node.
(Info-extract-menu-item, Info-extract-menu-counting): Set second
arg of `Info-extract-menu-node-name' to non-nil for index nodes.
(Info-find-node-2): If a node with period in its name not found,
try to find a node without the name part after period.
(Info-select-node): Call Info-fontify-node only if
Info-fontify-maximum-menu-size is not nil.
(info-apropos): Set Info-fontify-maximum-menu-size to nil.
(Info-find-emacs-command-nodes, Info-goto-emacs-command-node):
Preserve Info-history-list.
(Info-toc): Set Info-current-file.
(Info-build-toc): Move point to the beginning of the buffer.
Add main-file variable.
(Info-dir-remove-duplicates, Info-history, Info-toc, info-apropos):
Use backslashed representation of the control character ^_.
2004-05-23 20:53:42 +00:00
Jesper Harder
5242942fe7 (info-apropos): Make it an index node. Align node names
like makeinfo.
2004-04-27 14:43:04 +00:00
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