all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#16454: Enhancement: emacs library jka-compr
@ 2014-01-15 16:07 Tobias
  2019-08-15  1:47 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Tobias @ 2014-01-15 16:07 UTC (permalink / raw)
  To: 16454

[-- Attachment #1: Type: text/plain, Size: 1647 bytes --]

Description:

The question and answer at

http://stackoverflow.com/questions/21118197/how-to-automatically-decompress-
a-custom-compressed-file-when-opened-in-emacs/21127244#21127244

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.

 

File: jka-cmpr-hook.el

Version: GNU Emacs 24.3.1 (x86_64-unknown-cygwin, GTK+ Version 3.8.2) of
2013-08-20 on moufang

Patch: 

99c99

< (defun jka-compr-info-compress-args        (info)  (aref info 3))

---

> (defun jka-compr-info-compress-args        (info)  (mapcar 'apply (aref
info 3)))

102c102

< (defun jka-compr-info-uncompress-args      (info)  (aref info 6))

---

> (defun jka-compr-info-uncompress-args      (info)  (mapcar 'apply (aref
info 6)))

260c260,263

<    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

267a271

>                          (analogeous to compress-args)

296c300

<                                             (repeat :tag "Uncompress
Arguments" string)

---

>                                             (repeat :tag "Uncompress
Arguments" (choice (string) (sexp)))

 


[-- Attachment #2: Type: text/html, Size: 6391 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-08-15  1:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-15 16:07 bug#16454: Enhancement: emacs library jka-compr Tobias
2019-08-15  1:47 ` Lars Ingebrigtsen

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.