emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: woman doesn't work if current buffer's directory doesn't exist


From: Juanma Barranquero
Subject: Re: woman doesn't work if current buffer's directory doesn't exist
Date: Fri, 26 Jan 2007 13:18:15 +0100

On 1/26/07, Richard Stallman <address@hidden> wrote:

Let's not go around in circles.  We've already seen why this can't be
"fixed" in a natural way.

Yes, sorry. I missed the start of the thread.

BTW, I think the comments in jka-compr.el and some doctrings
(notoriously those of `jka-compr-shell' and
`ja-compr-compression-info-list') do lie about the use of a shell and
the following patch should be applied.

                   /L/e/k/t/u


Index: lisp/jka-cmpr-hook.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/jka-cmpr-hook.el,v
retrieving revision 1.14
diff -c -r1.14 jka-cmpr-hook.el
*** lisp/jka-cmpr-hook.el       21 Jan 2007 03:53:11 -0000      1.14
--- lisp/jka-cmpr-hook.el       26 Jan 2007 12:13:47 -0000
***************
*** 248,257 ****
    file-magic-chars      is a string of characters that you would find
                         at the beginning of a file compressed in this way.

- Because of the way `call-process' is defined, discarding the stderr output of
- a program adds the overhead of starting a shell each time the program is
- invoked.
-
 If you set this outside Custom while Auto Compression mode is
 already enabled \(as it is by default), you have to call
 `jka-compr-update' after setting it to properly update other
--- 248,253 ----
Index: lisp/jka-compr.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/jka-compr.el,v
retrieving revision 1.92
diff -c -r1.92 jka-compr.el
*** lisp/jka-compr.el   21 Jan 2007 03:53:11 -0000      1.92
--- lisp/jka-compr.el   26 Jan 2007 12:15:06 -0000
***************
*** 47,64 ****
 ;; The default value of this variable allows jka-compr to work with
 ;; Unix compress and gzip.
 ;;
- ;; If you are concerned about the stderr output of gzip and other
- ;; compression/decompression programs showing up in your buffers, you
- ;; should set the discard-error flag in the compression-info-list.
- ;; This will cause the stderr of all programs to be discarded.
- ;; However, it also causes emacs to call compression/uncompression
- ;; programs through a shell (which is specified by jka-compr-shell).
- ;; This may be a drag if, on your system, starting up a shell is
- ;; slow.
- ;;
 ;; If you don't want messages about compressing and decompressing
! ;; to show up in the echo area, you can set the compress-name and
! ;; decompress-name fields of the jka-compr-compression-info-list to
 ;; nil.


--- 47,55 ----
 ;; The default value of this variable allows jka-compr to work with
 ;; Unix compress and gzip.
 ;;
 ;; If you don't want messages about compressing and decompressing
! ;; to show up in the echo area, you can set the compress-msg and
! ;; decompress-msg fields of the jka-compr-compression-info-list to
 ;; nil.


***************
*** 105,113 ****

 (defcustom jka-compr-shell "sh"
   "*Shell to be used for calling compression programs.
! The value of this variable only matters if you want to discard the
! stderr of a compression/decompression program (see the documentation
! for `jka-compr-compression-info-list')."
   :type 'string
   :group 'jka-compr)

--- 96,102 ----

 (defcustom jka-compr-shell "sh"
   "*Shell to be used for calling compression programs.
! NOTE: Not used in MS-DOS and Windows systems."
   :type 'string
   :group 'jka-compr)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]