Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
9606309f
Commit
9606309f
authored
Oct 15, 2002
by
Dave Love
Browse files
(Man-getpage-in-background): Set width in environment.
parent
e170d16c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
1 deletion
+22
-1
lisp/ChangeLog
lisp/ChangeLog
+4
-0
lisp/man.el
lisp/man.el
+18
-1
No files found.
lisp/ChangeLog
View file @
9606309f
2002-10-15 Dave Love <fx@gnu.org>
* man.el (Man-getpage-in-background): Set width in environment.
2002-10-15 Kenichi Handa <handa@m17n.org>
* mail/sendmail.el (sendmail-send-it): Call
...
...
lisp/man.el
View file @
9606309f
...
...
@@ -593,6 +593,23 @@ all sections related to a subject, put something appropriate into the
(
default-directory
"/"
))
;; Prevent any attempt to use display terminal fanciness.
(
setenv
"TERM"
"dumb"
)
;; In Debian Woody, at least, we get overlong lines under X
;; unless COLUMNS or MANWIDTH is set. This isn't a problem on
;; a tty. man(1) says:
;; MANWIDTH
;; If $MANWIDTH is set, its value is used as the line
;; length for which manual pages should be formatted.
;; If it is not set, manual pages will be formatted
;; with a line length appropriate to the current ter-
;; minal (using an ioctl(2) if available, the value of
;; $COLUMNS, or falling back to 80 characters if nei-
;; ther is available).
(
if
window-system
(
unless
(
or
(
getenv
"MANWIDTH"
)
(
getenv
"COLUMNS"
))
;; This isn't strictly correct, since we don't know how
;; the page will actually be displayed, but it seems
;; reasonable.
(
setenv
"COLUMNS"
(
number-to-string
(
frame-width
)))))
(
if
(
fboundp
'start-process
)
(
set-process-sentinel
(
start-process
manual-program
buffer
"sh"
"-c"
...
...
@@ -656,7 +673,7 @@ See the variable `Man-notify-method' for the different notification behaviors."
)))
(
defun
Man-softhyphen-to-minus
()
;; \255 is
some kind of dash
in Latin-N. Versions of Debian man, at
;; \255 is
SOFT HYPHEN
in Latin-N. Versions of Debian man, at
;; least, emit it even when not in a Latin-N locale.
(
unless
(
eq
t
(
compare-strings
"latin-"
0
nil
current-language-environment
0
6
t
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment