1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-18 10:16:51 +00:00
Commit Graph

162 Commits

Author SHA1 Message Date
Kenichi Handa
8629358381 (Man-getpage-in-background): Decode the process output by the system
locale coding system.
2000-08-21 01:39:45 +00:00
Eli Zaretskii
bf55e4150f (Man-notify-when-ready): Don't use window-system. If
Man-notify-method is newframe, and the display is not
multi-frame, select the frame created for the man page.
(Man-init-defvars): Doc fix.
2000-06-28 15:31:31 +00:00
Eli Zaretskii
4fbee715cb (man): Doc fix. 2000-06-21 16:43:44 +00:00
Stefan Monnier
d6373ed514 (Man-build-man-command): Don't quote lambda. 2000-06-12 05:17:53 +00:00
Kenichi Handa
e1ceff3a51 (Man-fontify-manpage): Fix previous change. 2000-06-09 07:48:24 +00:00
Kenichi Handa
cb581be7b1 (Man-fontify-manpage): Pay attention to overstrike
pattern for CJK characters (X^H^HX).
2000-06-09 00:42:39 +00:00
Dave Love
5bbf0b3c7f Doc fixes.
(Man-init-defvars): Use display-color-p to set fontification.
2000-03-12 14:49:20 +00:00
Dave Love
9f79084ca2 (Man-softhyphen-to-minus): Revert previous change. Avoid unibyte to
multibyte conversion of search-forward (from Handa), but avoid the
replacement if the language is Latin-N.
1999-08-07 11:45:06 +00:00
Dave Love
85960a7cda (Man-softhyphen-to-minus): Revert last change. 1999-08-07 11:31:39 +00:00
Dave Love
2311d6d05d (Man-softhyphen-to-minus): Fix for multibyte case, do
nothing in Latin-N environment.
1999-08-04 19:00:57 +00:00
Andrew Innes
3945a18ace (Man-build-man-command): Use value of null-device,
instead of hard-coding "/dev/null".
1999-07-01 19:44:38 +00:00
Karl Heuer
635ad74809 (Man-page-header-regexp): Alternate value for Solaris 2.6. 1998-11-05 19:19:03 +00:00
Andreas Schwab
1ac26bf578 (Man-init-defvars): Avoid trailing nil on
Man-filter-list.
1998-09-18 09:13:46 +00:00
Richard M. Stallman
06cab243ef (Man-kill, Man-quit): Use quit-window. 1998-06-05 22:54:28 +00:00
Richard M. Stallman
cd3b7f95a1 (Man-getpage-in-background): Bind coding-system-for-write
to raw-text-unix instead of binding inhibit-eol-conversion to t.
1998-05-24 19:40:12 +00:00
Richard M. Stallman
42a9dc8436 (Man-notify-when-ready) <newframe>:
Mark frame's window as dedicated.
1998-04-16 06:25:11 +00:00
Karl Heuer
0dfb1b759e (Man-getpage-in-background): Bind inhibit-eol-conversion
to t before calling start-process or call-process.
1998-04-08 18:53:13 +00:00
Andreas Schwab
6f72f1c28d (Man-mode-line-format): Update to include the new format
elements.
1997-12-17 12:51:53 +00:00
Karl Heuer
fd5733a94b (Man-init-defvars, Man-build-man-command):
Bind default-directory to "/" to avoid possible error in call-process.
1997-11-17 01:56:15 +00:00
Kenichi Handa
6cb92c3a63 (Man-getpage-in-background): Bind inhibit-eol-conversion
to t before calling start-process or call-process.
(Man-softhyphen-to-minus): New function.  If
enable-multibyte-characters is non-nil, convert the code 0255 only
when it is not a part of a multibyte characters.
(Man-fontify-manpage): Call Man-softhyphen-to-minus.
(Man-cleanup-manpage): Likewise.
1997-10-23 12:03:07 +00:00
Richard M. Stallman
00ed33e7ab Add defgroup; use defcustom for user vars. 1997-04-13 07:51:54 +00:00
Karl Heuer
f655106be2 (man-mode-syntax-table): New variable.
(Man-mode): Use it.
(man-follow): New command and keystroke.
(Man-default-man-entry): Ignore trailing dots and underscores.
1997-03-02 00:15:34 +00:00
Karl Heuer
e7bf8d10cd (man-follow): New function.
(Man-mode-map): Bind it.
1997-03-01 17:45:36 +00:00
Richard M. Stallman
008d825ad3 (Man-init-defvars): Fix case in a char set range. 1997-02-04 17:42:19 +00:00
Eli Zaretskii
0020dbcd12 (Man-build-man-command): When async processes aren't
supported, don't redirect stderr via the shell.
(Man-getpage-in-background, Man-bgproc-sentinel): Support for
systems where async processes don't work.
1997-02-03 18:02:26 +00:00
Richard M. Stallman
1223b6c4c7 (Man-bgproc-sentinel): Move the buffer creation
outside of the binding of case-fold-search.
1996-11-03 18:55:09 +00:00
Richard M. Stallman
f5632218b0 Comment change. 1996-03-02 05:37:13 +00:00
Richard M. Stallman
58ffb6ae8e (man): Don't call Man-init-defvars here.
Do it at top level instead.
(Man-init-defvars): Now a defun, not a defsubst.
Don't set Man-uses-untabify-flag.
(Man-uses-untabify-flag): Add doc string.  Make default value t.
(Man-filter-list): Add doc string.
1996-02-26 00:15:09 +00:00
Erik Naggum
b578f267af Update FSF's address. 1996-01-14 07:34:30 +00:00
Karl Heuer
9afa72e8e6 (Man-filter-list): Recognize "Rev" footers. 1996-01-08 22:49:24 +00:00
Karl Heuer
a7acbbe4d4 Comment fixes. 1996-01-05 22:21:28 +00:00
Richard M. Stallman
e1bd1cb037 (Man-mode-map): Delete `toggle-truncate-lines' binding. 1996-01-02 17:03:24 +00:00
Richard M. Stallman
86884919ff (Man-fontify-manpage, Man-cleanup-manpage):
Convert \255 to a dash.
1995-11-24 22:19:32 +00:00
Francesco Potortì
2f2228c0cc * man.el (Man-translate-references): Anchor the regexps. 1995-08-09 16:08:55 +00:00
Richard M. Stallman
b0d77652d3 (Man-underline-face): Doc fix. 1995-06-30 23:43:45 +00:00
Karl Heuer
c0eb044d0a Comment fix. 1995-05-30 18:21:01 +00:00
Karl Heuer
0006272a97 (Man-default-man-entry): Return result. 1995-05-30 05:07:52 +00:00
Francesco Potortì
a4be31c695 * man.el (Man-init-defvars): Don't remove lines containing
"No such file or directory".
eof
1995-05-29 13:20:51 +00:00
Francesco Potortì
c448c1349f * man.el (Man-default-man-entry): Remove text properties from result. 1995-02-03 12:07:37 +00:00
Richard M. Stallman
1d56cc39c1 (Man-bgproc-sentinel): No need for save-match-data. 1994-11-22 04:37:43 +00:00
Francesco Potortì
f90531cc3f * man.el (Man-berkeley-sed-script, Man-sysv-sed-script,
Man-cleanup-manpage, Man-fontify-manpage): Handle the "+\bo" form
	(used by aix) in addition to the "o\b+" one (used by sun).
1994-11-09 12:38:31 +00:00
Karl Heuer
2151a1cff8 (Man-follow-manual-reference): First arg deleted. Call
Man-getpage-in-background with one argument only.
[this entry was already in the ChangeLog, but not in the source.]
1994-11-08 22:34:06 +00:00
Francesco Potortì
98fd70174f * man.el (Man-reuse-okay-flag): Deleted.
(man, Man-getpage-in-background): Second arg deleted.
	References to Man-reuse-okay-flag deleted.
	(Man-follow-manual-reference): First arg deleted.  Call
	Man-getpage-in-background with one argument only.
1994-11-07 12:13:16 +00:00
Francesco Potortì
6e7e47f6e1 * man.el (Man-fontify-manpage-flag): defvar put at outer level.
(manual-program, Man-untabify-command, Man-untabify-command-args,
	Man-sed-command, Man-awk-command, Man-mode-line-format,
	Man-mode-map, Man-mode-hook, Man-cooked-hook, Man-name-regexp,
	Man-section-regexp, Man-page-header-regexp, Man-heading-regexp,
	Man-see-also-regexp, Man-first-heading-regexp,
	Man-reference-regexp, Man-switches, Man-specified-section-option):
	Make them normal defvars, no more user options.
	(Man-overstrike-face, Man-undeline-face): New user options.
	(Man-init-defvars): Man-fontify-manpage-flag removed from here.
	(man-fontify-manpage): Use the new user options above.
1994-10-27 19:08:03 +00:00
Francesco Potortì
2b5de6158e * man.el (Man-init-defvars): Do not delete empty lines. 1994-10-24 15:34:50 +00:00
Francesco Potortì
9931e1ba89 *** empty log message *** 1994-10-24 12:37:01 +00:00
Francesco Potortì
f7046d47ca * man.el (Man-init-defvars): Corrections to Man-filter-list.
(Man-fontify-manpage): Added cleaning of ksh manpage daggers.
	(Man-fontify-manpage): Added cleaning of ksh manpage daggers.
	(Man-bgproc-sentinel): Unconditionally call Man-cleanup-manpage.
1994-10-20 10:04:17 +00:00
Francesco Potortì
d0aede3f50 * man.el (Man-notify, Man-current-page, Man-page-list,
Man-filter-list, Man-original-frame, Man-arguments,
	Man-fontify-manpage-flag, Man-sections-alist, Man-refpages-alist,
	Man-uses-untabify-flag, Man-page-mode-string, Man-sed-script):
	Added defvar's to keep the compiler quiet.
	(Man-getpage-in-background): Start buffer name with "*Man ".
	instead of "*man " to avoid conflict with "*mail*".
	(Man-match-substring): Defsubst moved before first call.
	(Man-build-page-list, Man-strip-page-headers, Man-unindent): Use
	defun instead of defsubst, for code clarity purpose.
1994-10-06 10:28:26 +00:00
Francesco Potortì
6024daef5f * man.el (Man-init-defvars, Man-cleanup-manpage,
Man-fontify-manpage): fix previous fix.
1994-10-01 13:27:15 +00:00
Francesco Potortì
d046c1832d * man.el
(Man-init-defvars, Man-cleanup-manpage, Man-fontify-manpage):
	added support for the big cross present in the ksh manpage.
1994-09-29 12:42:45 +00:00
Francesco Potortì
799ac634aa User option Man-notify-flag renamed to Man-notify-method. 1994-09-22 12:10:16 +00:00
Francesco Potortì
b3435a2f66 * man.el (Man-notify-flag): replaces the old Man-notify
variable, use the old one if it is bound as initial value.
	(Man-reuse-okay-flag): replaces Man-reuse-okay.
	(Man-downcase-section-letters-flag): replaces
	Man-downcase-section-letters.
	(Man-circular-pages-flag): replaces Man-circular-pages.
	(Man-auto-section-alist): variable deleted.
	(Man-section-translations-alist): removed the "3x" translation.
	(Man-untabify-command, Man-untabify-command-args): new vars.
	(Man-sed-command, Man-awk-command): new variables.
	(Man-sysv-sed-script, Man-berkeley-sed-script): new constants.
	(Man-name-regexp, Man-page-header-regexp): new variable.
	(Man-heading-regexp): changed default value.
	(Man-reference-regexp): now refers to previous regexps.
	(Man-arguments): new buffer-local variable.
	(Man-page-mode-string): changed default value.
	(Man-mode-map): changed the meanings of ",", ".", "q".  Added new
	keys ">", "<", "k".
	(Man-page-mode-string): function deleted.
	(Man-init-defvars): New function used for initialising the system
	and environment dependent variables Man-fontify-manpage-flag,
	Man-uses-untabify, Man-sed-script, Man-filter-list.
	(Man-delete-trailing-newlines): function deleted.
	(Man-make-page-mode-string): new subst.
	(Man-build-man-command): now subst instead of function.  Modified
	to comply with the new format of Man-filter-list.
	(Man-downcase): function deleted.
	(Man-translate-references): complete rewrite.
	(Man-linepos): function deleted.
	(Man-match-substring): new function.
	(Man-default-man-args): function deleted.
	(Man-default-man-entry): complete rewrite.
	(man, manual-entry): function-alias relationship reversed.
	(man): prompt changed, prompt using interactive, call
	Man-init-defvars, set Man-arguments.
	(Man-notify-when-ready): manage the 'pushy value.
	(Man-fontify-manpage): substitute Man-set-fonts.
	(Man-cleanup-manpage): new function.
	(Man-bgproc-sentinel): cleanup, call Man-fontify-manpage and
	Man-cleanup-page when necessary.
	(Man-mode): call Man-strip-page-headers and Man-unindent.
	(Man-build-section-alist, Man-build-references-alist,
	Man-build-page-list): substs instead of functions.
	(Man-build-references-alist): cleanup.
	(Man-build-page-list): new algorithm.
	(Man-strip-page-headers, Man-unindent): new substs.
	(Man-find-section): assume section names start in column 1.
	(Man-quit): bury the buffer instead of killing it, delete the
	frame when necessary.
	(Man-kill): new function.
	(Man-goto-page): do the right thing when the manpage is not found,
	do not assume that Man-build-references-alist is broken.
1994-09-21 16:15:42 +00:00
Richard M. Stallman
c9bf42f9d1 (Man-notify-when-ready): Get Man-original-frame from the proper buffer. 1994-09-04 06:52:25 +00:00
Richard M. Stallman
8c79b392dc (Man-bgproc-sentinel): Bind case-fold-search for just the
necessary parts of the function, not the call to Man-notify-when-ready.
1994-07-11 00:25:37 +00:00
Richard M. Stallman
469e5e326f (Man-heading-regexp): Accept multiple whitespace chars. 1994-05-16 23:08:41 +00:00
Richard M. Stallman
9f2863b218 Remove periods from messages.
(Man-heading-regexp): Accept only one leading space.
1994-05-14 19:49:52 +00:00
Karl Heuer
17077ab35f (Man-build-man-command): Use manual-program, not hardcoded name.
(Man-getpage-in-background): Likewise.
1994-05-11 03:19:39 +00:00
Karl Heuer
eef4ad20e7 (Man-heading-regexp): Fix pattern.
(Man-build-section-alist): Use match data, not bol/eol.
1994-05-11 02:27:28 +00:00
Karl Heuer
a0a2cc0050 (Man-heading-regexp): Fix pattern. 1994-05-11 02:15:50 +00:00
Karl Heuer
2cd4790eff (Man-reuse-okay-p): Doc fix.
(Man-filter-list, Man-heading-regexp): Fix patterns.
(Man-first-heading-regexp, Man-find-section): Likewise.
(Man-getpage-in-background): Don't print ellipsis.
(Man-bgproc-sentinel): Preserve match data.
(Man-build-references-alist): Preserve restriction.
(Man-bgproc-sentinel, Man-build-section-alist): Bind case-fold-search.
(Man-next-section, Man-previous-section, Man-find-section): Likewise.
(Man-goto-page): Fix interactive declaration.
1994-05-11 02:09:43 +00:00
Karl Heuer
2c49d8ceab (Man-notify-when-ready): Change new-frame to make-frame. 1994-05-06 20:28:45 +00:00
Karl Heuer
d733c5ec03 Update copyright. 1994-05-03 22:46:37 +00:00
Richard M. Stallman
69e610ac11 (Man-notify-when-ready): Don't call select-frame if no window system. 1994-05-02 19:40:19 +00:00
Richard M. Stallman
ec334d84c0 (Man-notify-when-ready): In newframe case, use save-excursion. 1994-05-02 06:01:55 +00:00
Richard M. Stallman
8a32bceec2 (Man-mode-line-format):
Put mode-line-process immediately after mode-name
when setting mode-line-format.
1994-04-24 08:12:52 +00:00
Karl Heuer
2788b7c903 (manual-program): New (actually reintroduced) variable.
(Man-getpage-in-background): Don't hardcode the program name.
1994-04-05 03:40:06 +00:00
Karl Heuer
58732bd4aa (Man-filter-list): New footer format to delete. 1994-03-31 22:01:12 +00:00
Karl Heuer
fa8a9f302c (manual-entry): Document what the arg does. 1994-03-16 04:03:50 +00:00
Karl Heuer
75db9a6429 (Man-original-frame): New variable.
(Man-getpage-in-background): Save the frame that man was invoked in.
(Man-notify-when-ready): Restore it, if appropriate.
1994-03-15 05:12:14 +00:00
Karl Heuer
b09d7aa2a2 (Man-cooked-hook): Doc fix. 1994-03-15 04:32:39 +00:00
Karl Heuer
6449ac0799 Doc fix. 1994-03-15 03:59:11 +00:00
Karl Heuer
c2d606f4c0 (Man-filter-list): Extend footer pattern for hpux.
(Man-cooked-hook): New variable.
(Man-bgproc-sentinel): Run Man-cooked-hook after cleaning backspaces.
1994-03-15 02:52:55 +00:00
Richard M. Stallman
eaf1946c21 (Man-build-man-command): Redirect desc 2 to /dev/null.
(Man-getpage-in-background): Require env before printing message.
1994-03-14 22:37:58 +00:00
Richard M. Stallman
fcb8a0c510 (Man-filter-list): Don't insist on ...done' after wait'.
Match `Reformatting entry.  Wait'.
1994-03-10 17:08:48 +00:00
Richard M. Stallman
75067849bf (Man-default-man-args): Use Man-specified-section-option.
(Man-default-man-entry): Likewise.
1994-01-12 04:55:35 +00:00
Richard M. Stallman
e660d0db20 (Man-specified-section-option): Test system-configuration.
(Man-mode-hook): Renamed from Man-mode-hooks.

(Man-follow-manual-reference): Strip trailing - from default.

(Man-getpage-in-background): Use lower case for arg vars.
(Man-follow-manual-reference): Check for existence of references
before using the minibuffer.  Delete period from error message.
Delete spurious concat call.  Pass arg, not (consp arg),
to Man-getpage-in-background.

(Man-follow-manual-reference): Try to use current word
as a default for the reference to follow.
Use interactive to read the reference name.
1993-12-23 03:18:02 +00:00
Richard M. Stallman
9de0760cc8 (Man-specified-section-option): New variable.
(Man-translate-references): Use that variable.
1993-11-22 06:34:22 +00:00
Richard M. Stallman
f5f76002c2 (Man-section-regexp): Allow section names l, n, L, N. 1993-11-11 07:17:08 +00:00
Richard M. Stallman
1b88a44adb (Man-filter-list): Include anything starting with
alphabetics, and containing "Last change:".
(manual-entry): Don't call `Man-downcase' since
Man-translate-references has already done the right thing.
1993-11-10 20:48:04 +00:00
Richard M. Stallman
b51aeeffe4 (Man-frame-parameters): New variable.
(Man-notify-when-ready): Handle `newframe' as Man-notify value.
1993-11-06 04:16:34 +00:00
Richard M. Stallman
cac0b95d13 (man): Define as alias. 1993-08-03 18:52:07 +00:00
Richard M. Stallman
ea1ebaed7a (Man-section-translations-alist): Add entries for xlib. 1993-07-31 18:34:04 +00:00
Richard M. Stallman
3eedeb851b (Man-build-references-alist): When setting word,
use only what Man-reference-regexp matched.
(Man-reference-regexp): Don't match starting with a period.
(Man-first-heading-regexp): Allow leading space.
(Man-heading-regexp): Allow leading space.
1993-07-31 18:32:04 +00:00
Jim Blandy
c4b74c2089 * man.el (Man-find-section): HP/UX man pages have section names
indented by a single space; recognize them.
1993-07-29 04:02:54 +00:00
Richard M. Stallman
6b33eb408c (Man-filter-list): Insert \n newlines in awk script. 1993-07-29 02:31:06 +00:00
Richard M. Stallman
d4029c897c (Man-set-fonts): Don't look for another char after
the backspace; instead look for a sequence CHAR BS CHAR BS CHAR BS...
Delete all the CHAR BS pairs found, after making the text property.
1993-07-21 09:05:18 +00:00
Richard M. Stallman
0322056b57 (Man-getpage-in-background): Copy process-environment
so we only alter the copy.
1993-07-20 05:05:48 +00:00
Richard M. Stallman
056a5ef342 (Man-mode-line-format): Add a space after global-mode-string. 1993-07-06 22:07:27 +00:00
Jim Blandy
d902a61114 * man.el (Man-build-man-command): Don't leave a pipe symbol at the
end of the command list if Man-filter-list is nil.
	(Man-default-man-args): Don't write out assq and mapconcat.
	(Man-default-man-entry): Don't default to section 2 for C-mode.
	Call Man-default-man-args, and let people use
	Man-auto-section-alist if this is what they want.
	(manual-entry): Call Man-translate-references, instead of writing
	it out.
	(Man-getpage-in-background): Don't apply Man-default-man-args
	here; manual-entry has already run it, and
	Man-follow-manual-reference provides the sections itself.
1993-07-06 06:59:31 +00:00
Richard M. Stallman
c3343fcf79 (Man-auto-section-alist): Default value nil.
(Man-getpage-in-background): Call Man-default-man-args.
(Man-filter-list): Don't discard overstrike here.
(Man-set-fonts): New function.
(Man-bgproc-sentinel): Call Man-set-fonts.
(Man-version-number): Var deleted.
(Man-version): Command and binding deleted.
(Man-mode): Use Manual, not Man, as official mode name.
1993-06-28 19:53:30 +00:00
Jim Blandy
733155db8a * man.el (Man-switches): New variable.
(Man-build-man-command): Use it to build the man command.
	(Man-mode): Mention it in documentation.
1993-06-19 01:44:52 +00:00
Richard M. Stallman
136284159e (Man-getpage-in-background): Move close paren. 1993-06-13 18:00:36 +00:00
Richard M. Stallman
82c9fe8e25 (Man-getpage-in-background): Use TERM=dumb to prevent
terminal control sequences in the output.
1993-06-13 04:34:58 +00:00
Richard M. Stallman
4cd88e9c94 (Man-filter-list): Add an element for X man pages.
(Man-goto-page): Continue past errors in Man-build-references-alist.
1993-06-11 17:52:59 +00:00
Jim Blandy
d801ac0978 * man.el (manual-entry): Recognize the subject(section) syntax. 1993-06-11 10:29:55 +00:00
Richard M. Stallman
526504b86f (Man-mode): Run Man-mode-hook. 1993-06-10 17:48:36 +00:00
Jim Blandy
eb8c3be94e Apply typo patches from Paul Eggert. 1993-06-09 11:59:12 +00:00
Richard M. Stallman
e0fcbb5931 (Man-notify-when-ready): Correct previous change. 1993-05-30 19:15:39 +00:00
Richard M. Stallman
effdc6a226 entered into RCS 1993-05-29 04:53:57 +00:00
Eric S. Raymond
edbd2f74bc Added or corrected Commentary sections 1993-03-22 05:42:35 +00:00