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
6024daef
Commit
6024daef
authored
Oct 01, 1994
by
Francesco Potortì
Browse files
* man.el (Man-init-defvars, Man-cleanup-manpage,
Man-fontify-manpage): fix previous fix.
parent
a8a3c421
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
lisp/man.el
lisp/man.el
+13
-12
No files found.
lisp/man.el
View file @
6024daef
...
...
@@ -3,8 +3,8 @@
;; Copyright (C) 1993, 1994 Free Software Foundation, Inc.
;; Author: Barry A. Warsaw <bwarsaw@cen.com>
;; Last-Modified: $Date: 1994/09/2
2
12:
10:16
$
;; Version: $Revision: 1.
49
$
;; Last-Modified: $Date: 1994/09/2
9
12:
42:45
$
;; Version: $Revision: 1.
50
$
;; Keywords: help
;; Adapted-By: ESR, pot
...
...
@@ -331,7 +331,7 @@ This is necessary if one wants to dump man.el with emacs."
"")
"
-e
'/\e[789]/s///g
'
"
"
-e
'/o\b+/s//o/g
'
"
"
-e
'/
|\b-/s//+/g'"
"
-e
'/
|\b-
[-|\b]*
/s//+/g
'
"
"
-e
'/^\\n$/D
'
"
"
-e
'/[Nn]o
such
file
or
directory/d
'
"
"
-e
'/Reformatting
page.
Wait/d
'
"
...
...
@@ -616,15 +616,16 @@ Same for the ANSI bold and normal escape sequences."
(
while
(
re-search-forward
"\e[789]"
nil
t
)
(
backward-delete-char
2
))
(
goto-char
(
point-min
))
(
while
(
re-search-forward
"\\(.\\)\\(\b\\1\\)+"
nil
t
)
(
replace-match
"\\1"
)
(
put-text-property
(
1-
(
point
))
(
point
)
'face
'bold
))
(
goto-char
(
point-min
))
(
while
(
search-forward
"o\b+"
nil
t
)
(
backward-delete-char
2
)
(
put-text-property
(
1-
(
point
))
(
point
)
'face
'bold
))
(while (search-forward "
|\b-" nil t)
(replace-match "+")
(put-text-property (1- (point)) (point) 'face 'bold))
(
goto-char
(
point-min
))
(while (re-search-forward "
\\(.\\)\\(\b\\1\\)+
" nil t)
(replace-match "
\\1
")
(
while
(
re-search-forward
"
|\b-[-|\b]*
"
nil
t
)
(
replace-match
"
+
"
)
(
put-text-property
(
1-
(
point
))
(
point
)
'face
'bold
))
(
message
"%s man page made up"
Man-arguments
))
...
...
@@ -641,12 +642,12 @@ Same for the ANSI bold and normal escape sequences."
(
goto-char
(
point-min
))
(
while
(
re-search-forward
"\e[789]"
nil
t
)
(
backward-delete-char
2
))
(
goto-char
(
point-min
))
(while (search-forward "o\b+" nil t) (backward-delete-char 2))
(goto-char (point-min))
(while (search-forward "|\b-
" nil t) (replace-match "
+
"))
(goto-char (point-min))
(
while
(
re-search-forward
"\\(.\\)\\(\b\\1\\)+"
nil
t
)
(
replace-match
"\\1"
))
(
goto-char
(
point-min
))
(
while
(
search-forward
"o\b+"
nil
t
)
(
backward-delete-char
2
))
(
goto-char
(
point-min
))
(
while
(
re-search-forward
"|\b-[-|\b]*"
nil
t
)
(
replace-match
"+"
))
(
message
"%s man page cleaned up"
Man-arguments
))
(
defun
Man-bgproc-sentinel
(
process
msg
)
...
...
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