emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master f9afe8a 1/6: Add Zstandard compression support for


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] master f9afe8a 1/6: Add Zstandard compression support for etags
Date: Mon, 24 Jun 2019 10:08:18 -0400 (EDT)

branch: master
commit f9afe8a97eb2b75adf53bb0d7cf2e4f12eb1b3d6
Author: Alexander Gramiak <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    Add Zstandard compression support for etags
    
    * lib-src/etags.c: (compressors): Add zstd support.
    (print_language_names): Report zstd support.
    * doc/man/etags.1: Update doc.
---
 doc/man/etags.1 | 2 +-
 etc/NEWS        | 3 +++
 lib-src/etags.c | 3 ++-
 3 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/doc/man/etags.1 b/doc/man/etags.1
index 7cc501c..d1453ca 100644
--- a/doc/man/etags.1
+++ b/doc/man/etags.1
@@ -64,7 +64,7 @@ Files specified with absolute file names will be recorded
 with absolute file names.  Files generated from a source file\-\-like
 a C file generated from a source Cweb file\-\-will be recorded with
 the name of the source file.
-Compressed files are supported using gzip, bzip2, and xz.
+Compressed files are supported using gzip, bzip2, xz, and zstd.
 The programs recognize the language used in an input file based on its
 file name and contents.  The \fB\-\-language\fP switch can be used to force
 parsing of the file names following the switch according to the given
diff --git a/etc/NEWS b/etc/NEWS
index 8b94ac1..8934dc1 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -584,6 +584,9 @@ The mode is automatically enabled in files that start with 
the
 use the new 'fileloop-initialize' and 'fileloop-continue' functions
 instead.
 
++++
+*** etags is now able to read Zstandard-compressed files.
+
 ** bibtex
 
 ---
diff --git a/lib-src/etags.c b/lib-src/etags.c
index d2395ce..6165872 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -519,6 +519,7 @@ static compressor compressors[] =
   { "GZ", "gzip -d -c"},
   { "bz2", "bzip2 -d -c" },
   { "xz", "xz -d -c" },
+  { "zst", "zstd -d -c -q" },
   { NULL }
 };
 
@@ -861,7 +862,7 @@ followed by the name of an interpreter.  If no such 
sequence is found,\n\
 Fortran is tried first; if no tags are found, C is tried next.\n\
 When parsing any C file, a \"class\" or \"template\" keyword\n\
 switches to C++.");
-  puts ("Compressed files are supported using gzip, bzip2, and xz.\n\
+  puts ("Compressed files are supported using gzip, bzip2, xz, and zstd.\n\
 \n\
 For detailed help on a given language use, for example,\n\
 etags --help --lang=ada.");



reply via email to

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