unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#30902: 25.2; dired: image compression (png → jpg/jpeg)
@ 2018-03-21 23:02 Michael 2
  2019-07-14 14:21 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Michael 2 @ 2018-03-21 23:02 UTC (permalink / raw)
  To: 30902

Hello lovely Gods,


I praise to you because i want the variable:
`dired-compress-files-alist' as a custom variable.

Whololololo...

I want to add my own compression-expressions. At the moment it is a
normal global variable (defvar). And can't be accesed with M-x
customize-variable.  My suggestion for compressing png-images would
be:

      `'(("\\.png\\.jpg\\'" . "convert %i %o"))'

Here the shell-command `convert' is the one of ImageMagick.
(http://www.imagemagick.org/script/license.php) I'm working with
ubuntu 17.10.

Oh holy gods, please make me dreams come true.

Best regardes,
Michael



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

* bug#30902: 25.2; dired: image compression (png → jpg/jpeg)
  2018-03-21 23:02 bug#30902: 25.2; dired: image compression (png → jpg/jpeg) Michael 2
@ 2019-07-14 14:21 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2019-07-14 14:21 UTC (permalink / raw)
  To: Michael 2; +Cc: 30902

Michael 2 <michi_game@hotmail.com> writes:

> I praise to you because i want the variable:
> `dired-compress-files-alist' as a custom variable.
>
> Whololololo...
>
> I want to add my own compression-expressions. At the moment it is a
> normal global variable (defvar). And can't be accesed with M-x
> customize-variable.  My suggestion for compressing png-images would
> be:
>
>       `'(("\\.png\\.jpg\\'" . "convert %i %o"))'

I don't think that's appropriate as a default value for that variable,
because that's not compressing -- it's converting to a different format
from which the original can't be reconstructed.

And, in general, I don't feel it's very useful to make complex alists
like this into defcustoms, because it's so fiddly to get the syntax
right if you're not using an Emacs Lisp mode buffer.  So I'm closing
this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

end of thread, other threads:[~2019-07-14 14:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-21 23:02 bug#30902: 25.2; dired: image compression (png → jpg/jpeg) Michael 2
2019-07-14 14:21 ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).