|Subject:||bug#16454: Enhancement: emacs library jka-compr|
|Date:||Wed, 15 Jan 2014 17:07:37 +0100|
The question and answer at
show that it would be nice if the arguments of the compression/uncompression program would be evaluated.
The following patch provides that possibility with almost no costs.
The patch includes the evaluation of the arguments as well as the necessary changes to the customization of jka-compr-info-compress-args and its documentation.
Version: GNU Emacs 24.3.1 (x86_64-unknown-cygwin, GTK+ Version 3.8.2) of 2013-08-20 on moufang
< (defun jka-compr-info-compress-args (info) (aref info 3))
> (defun jka-compr-info-compress-args (info) (mapcar 'apply (aref info 3)))
< (defun jka-compr-info-uncompress-args (info) (aref info 6))
> (defun jka-compr-info-uncompress-args (info) (mapcar 'apply (aref info 6)))
< compress-args is a list of args to pass to the compress program
> compress-args is a list of args to pass to the compress program,
> each arg may be a string or a lisp _expression_
> the variable FILENAME is bound to the name of the file
> to be compressed
> (analogeous to compress-args)
< (repeat :tag "Uncompress Arguments" string)
> (repeat :tag "Uncompress Arguments" (choice (string) (sexp)))
|[Prev in Thread]||Current Thread||[Next in Thread]|