aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/man.el
diff options
context:
space:
mode:
authorPaul Eggert2018-01-01 01:13:04 -0800
committerPaul Eggert2018-01-01 01:13:04 -0800
commitbb267f17f9e1e593d8dee379aceee22d7fa42680 (patch)
tree466dfb3f8ef7587ebcb652709bd1cc05d18a92f3 /lisp/man.el
parenta5835dfee139322de7aa071f1c87ef015acbecad (diff)
parent63b04c11d530f4a6a41f112d1b3ba1ed1eb81195 (diff)
downloademacs-bb267f17f9e1e593d8dee379aceee22d7fa42680.tar.gz
emacs-bb267f17f9e1e593d8dee379aceee22d7fa42680.zip
Merge from origin/emacs-26
63b04c11d5 Fix copyright years by hand 5c7dd8a783 Update copyright year to 2018 220a9ecba1 Merge from Gnulib 312c565566 Don't add empty keyboard macro to macro ring (Bug#24992) 39ca289a7a Allow customization of decoding of "man" command f8240815ea * etc/NEWS: Add security consideration note on passphrase ... 0c78822c70 Fix subtle problem with scroll-down when scroll-margin is ... acd289c5a4 Fix problems with indexing in User manual b240c7846b * lisp/help.el (describe-key): Only (copy-sequence elt) wh... e879a5444a * src/buffer.c (Frestore_buffer_modified_p): Fix bug#29846 81b1028b63 Improve documentation of 'inhibit-modification-hooks' and ... 7175496d7a Fix doc string of 'enable-recursive-minibuffers' 5b38406491 Fix documentation of delsel and of killing text # Conflicts: # etc/NEWS # etc/refcards/ru-refcard.tex
Diffstat (limited to 'lisp/man.el')
-rw-r--r--lisp/man.el17
1 files changed, 15 insertions, 2 deletions
diff --git a/lisp/man.el b/lisp/man.el
index 798e78bbe76..1a6eda13b7f 100644
--- a/lisp/man.el
+++ b/lisp/man.el
@@ -1,6 +1,6 @@
1;;; man.el --- browse UNIX manual pages -*- lexical-binding: t -*- 1;;; man.el --- browse UNIX manual pages -*- lexical-binding: t -*-
2 2
3;; Copyright (C) 1993-1994, 1996-1997, 2001-2017 Free Software 3;; Copyright (C) 1993-1994, 1996-1997, 2001-2018 Free Software
4;; Foundation, Inc. 4;; Foundation, Inc.
5 5
6;; Author: Barry A. Warsaw <bwarsaw@cen.com> 6;; Author: Barry A. Warsaw <bwarsaw@cen.com>
@@ -268,6 +268,16 @@ Used in `bookmark-set' to get the default bookmark name."
268 :type 'string 268 :type 'string
269 :group 'man) 269 :group 'man)
270 270
271;; This is for people who have UTF-8 encoded man pages in non-UTF-8
272;; locales, or who use Cygwin 'man' command from a native MS-Windows
273;; build of Emacs.
274(defcustom Man-coding-system nil
275 "Coding-system to decode output from the commands run by `man'.
276If this is nil, `man' will use `locale-coding-system'."
277 :type 'coding-system
278 :group 'man
279 :version "26.1")
280
271(defcustom Man-mode-hook nil 281(defcustom Man-mode-hook nil
272 "Hook run when Man mode is enabled." 282 "Hook run when Man mode is enabled."
273 :type 'hook 283 :type 'hook
@@ -1003,7 +1013,10 @@ names or descriptions. The pattern argument is usually an
1003 (coding-system-for-write 'raw-text-unix) 1013 (coding-system-for-write 'raw-text-unix)
1004 ;; We must decode the output by a coding system that the 1014 ;; We must decode the output by a coding system that the
1005 ;; system's locale suggests in multibyte mode. 1015 ;; system's locale suggests in multibyte mode.
1006 (coding-system-for-read locale-coding-system) 1016 (coding-system-for-read
1017 (or coding-system-for-read ; allow overriding with "C-x RET c"
1018 Man-coding-system
1019 locale-coding-system))
1007 ;; Avoid possible error by using a directory that always exists. 1020 ;; Avoid possible error by using a directory that always exists.
1008 (default-directory 1021 (default-directory
1009 (if (and (file-directory-p default-directory) 1022 (if (and (file-directory-p default-directory)