From: "Ulrich Müller" <ulm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/emacs-tools:eselect-emacs commit in: /
Date: Fri, 19 Dec 2014 07:28:53 +0000 (UTC) [thread overview]
Message-ID: <1418972425.960a580d531793678bdb407b8fee58ea538993a8.ulm@gentoo> (raw)
commit: 960a580d531793678bdb407b8fee58ea538993a8
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 19 07:00:25 2014 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Fri Dec 19 07:00:25 2014 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/emacs-tools.git;a=commit;h=960a580d
Special case etags only in the update action.
* ctags.eselect (find_targets, do_update): Have a special case for
etags only in the update action. Otherwise, display all targets
for it, even if no Emacs variant is installed.
* ctags.eselect.5: Update.
---
ChangeLog | 7 +++++++
ctags.eselect | 13 ++++++-------
ctags.eselect.5 | 6 +++---
3 files changed, 16 insertions(+), 10 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 71547e6..135fca4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2014-12-19 Ulrich Müller <ulm@gentoo.org>
+
+ * ctags.eselect (find_targets, do_update): Have a special case for
+ etags only in the update action. Otherwise, display all targets
+ for it, even if no Emacs variant is installed.
+ * ctags.eselect.5: Update.
+
2014-10-28 Ulrich Müller <ulm@gentoo.org>
* Version 1.17 released.
diff --git a/ctags.eselect b/ctags.eselect
index 5325536..8384e16 100644
--- a/ctags.eselect
+++ b/ctags.eselect
@@ -40,12 +40,6 @@ find_targets() {
[[ -f ${EROOT}/usr/bin/${CTAGS}-${emacs} ]] && echo "${CTAGS}-${emacs}"
elif [[ -f ${EROOT}/usr/bin/xemacs ]]; then
[[ -f ${EROOT}/usr/bin/${CTAGS}-xemacs ]] && echo "${CTAGS}-xemacs"
- elif [[ ${CTAGS} = etags ]]; then
- # We are called as etags module, but no (X)Emacs is installed.
- # Return an empty list in this case, because we don't want
- # exuberant-ctags as default for etags (for ctags it's fine).
- # Also, vi purists wouldn't want an etags symlink.
- return
fi
# Exuberant ctags
@@ -215,7 +209,12 @@ do_update() {
# offers several concurrent versions.
local i target targets=( $(find_targets) )
- if [[ ${#targets[@]} -gt 0 && ${current} != nolink ]]; then
+ # We don't want exuberant-ctags as default for etags. Also, vi
+ # purists wouldn't want an etags symlink. Therefore, don't update
+ # the etags symlink unless there is an (X)Emacs provider.
+ if [[ ${#targets[@]} -gt 0 && ${current} != nolink ]] \
+ && ! [[ ${CTAGS} = etags && ${targets[0]} != ${CTAGS}-*emacs* ]]
+ then
target=${targets[0]}
[[ ${current} = ${CTAGS}-*emacs* ]] && current=${CTAGS}-*emacs*
for i in ${targets[@]}; do
diff --git a/ctags.eselect.5 b/ctags.eselect.5
index 88da8ed..bcdb55b 100644
--- a/ctags.eselect.5
+++ b/ctags.eselect.5
@@ -89,9 +89,9 @@ is a real binary, owned by package freebsd-ubin.
.RB ( "eselect etags"
does work though.)
-.B eselect etags
-does not display any valid targets if there is no Emacs variant
-installed. This is a feature.
+.B eselect etags update
+does not update the target if there is no Emacs variant installed.
+This is a feature.
.SH AUTHOR
Ulrich Müller <ulm@gentoo.org>
.SH SEE ALSO
next reply other threads:[~2014-12-19 7:28 UTC|newest]
Thread overview: 55+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-19 7:28 Ulrich Müller [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-01-05 20:59 [gentoo-commits] proj/emacs-tools:eselect-emacs commit in: / Ulrich Müller
2023-08-21 6:31 Ulrich Müller
2021-08-02 8:05 Ulrich Müller
2021-07-31 17:39 Ulrich Müller
2018-09-16 14:50 Ulrich Müller
2014-12-23 9:55 Ulrich Müller
2014-12-19 19:03 Ulrich Müller
2014-12-19 7:28 Ulrich Müller
2014-12-19 7:28 Ulrich Müller
2014-12-19 7:28 Ulrich Müller
2014-12-19 7:28 Ulrich Müller
2014-10-28 18:50 Ulrich Müller
2014-04-08 13:13 Ulrich Müller
2014-03-18 8:51 Ulrich Müller
2014-03-13 16:34 Ulrich Müller
2014-03-13 13:49 Ulrich Müller
2014-03-13 13:15 Ulrich Müller
2014-03-13 13:15 Ulrich Müller
2014-02-17 21:38 Ulrich Müller
2014-02-17 21:38 Ulrich Müller
2014-02-17 21:38 Ulrich Müller
2014-02-17 17:46 Ulrich Müller
2013-04-01 12:21 Ulrich Mueller
2012-06-22 16:24 Ulrich Mueller
2012-06-22 16:24 Ulrich Mueller
2012-06-22 16:24 Ulrich Mueller
2012-06-22 15:53 Ulrich Mueller
2012-06-22 15:53 Ulrich Mueller
2012-05-06 18:47 Ulrich Mueller
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
2012-05-06 16:06 Sebastian Pipping
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1418972425.960a580d531793678bdb407b8fee58ea538993a8.ulm@gentoo \
--to=ulm@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox