diff options
| author | Francesco Potortì | 2005-09-27 20:18:49 +0000 |
|---|---|---|
| committer | Francesco Potortì | 2005-09-27 20:18:49 +0000 |
| commit | b95097127197d63084c14fd6d8322f724e041776 (patch) | |
| tree | fcc1bb5f4fc23962a4c2c7fd3bf6117444847db6 /lib-src | |
| parent | 43f15d4afee5beaaec7a2e8dc8b11ea2f9e3daea (diff) | |
| download | emacs-b95097127197d63084c14fd6d8322f724e041776.tar.gz emacs-b95097127197d63084c14fd6d8322f724e041776.zip | |
(main): In append mode, sort the tags file after writing it.
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/ChangeLog | 1 | ||||
| -rw-r--r-- | lib-src/etags.c | 15 |
2 files changed, 9 insertions, 7 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index e8bda4e21b9..c2e6ef390ee 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -4,6 +4,7 @@ | |||
| 4 | (prolog_pr): Cast strlen to int before comparison. | 4 | (prolog_pr): Cast strlen to int before comparison. |
| 5 | (LOOKING_AT, LOOKING_AT_NOCASE): Let the preprocessor check that | 5 | (LOOKING_AT, LOOKING_AT_NOCASE): Let the preprocessor check that |
| 6 | the second argument is indeed a literal string. | 6 | the second argument is indeed a literal string. |
| 7 | (main): In append mode, sort the tags file after writing it. | ||
| 7 | 8 | ||
| 8 | 2005-09-27 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change) | 9 | 2005-09-27 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change) |
| 9 | 10 | ||
diff --git a/lib-src/etags.c b/lib-src/etags.c index 357470b4fde..c8102ec1548 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c | |||
| @@ -41,7 +41,7 @@ | |||
| 41 | * configuration file containing regexp definitions for etags. | 41 | * configuration file containing regexp definitions for etags. |
| 42 | */ | 42 | */ |
| 43 | 43 | ||
| 44 | char pot_etags_version[] = "@(#) pot revision number is 17.13"; | 44 | char pot_etags_version[] = "@(#) pot revision number is 17.14"; |
| 45 | 45 | ||
| 46 | #define TRUE 1 | 46 | #define TRUE 1 |
| 47 | #define FALSE 0 | 47 | #define FALSE 0 |
| @@ -1475,12 +1475,13 @@ main (argc, argv) | |||
| 1475 | if (fclose (tagf) == EOF) | 1475 | if (fclose (tagf) == EOF) |
| 1476 | pfatal (tagfile); | 1476 | pfatal (tagfile); |
| 1477 | 1477 | ||
| 1478 | if (update) | 1478 | if (CTAGS) |
| 1479 | { | 1479 | if (append_to_tagfile || update) |
| 1480 | char cmd[2*BUFSIZ+10]; | 1480 | { |
| 1481 | sprintf (cmd, "sort -o %.*s %.*s", BUFSIZ, tagfile, BUFSIZ, tagfile); | 1481 | char cmd[2*BUFSIZ+10]; |
| 1482 | exit (system (cmd)); | 1482 | sprintf (cmd, "sort -o %.*s %.*s", BUFSIZ, tagfile, BUFSIZ, tagfile); |
| 1483 | } | 1483 | exit (system (cmd)); |
| 1484 | } | ||
| 1484 | return EXIT_SUCCESS; | 1485 | return EXIT_SUCCESS; |
| 1485 | } | 1486 | } |
| 1486 | 1487 | ||