From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1SR479-0005q9-4C for garchives@archives.gentoo.org; Sun, 06 May 2012 16:15:21 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 535EBE088D; Sun, 6 May 2012 16:06:17 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 1157AE0886 for ; Sun, 6 May 2012 16:06:16 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8AAAB1B4064 for ; Sun, 6 May 2012 16:06:16 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 50BC4E5431 for ; Sun, 6 May 2012 16:06:15 +0000 (UTC) From: "Sebastian Pipping" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sebastian Pipping" Message-ID: <1257530433.0c92c83f32030905fadb4173263a08e22c8ef60e.sping@gentoo> Subject: [gentoo-commits] proj/emacs-tools:eselect-emacs commit in: / X-VCS-Repository: proj/emacs-tools X-VCS-Files: ChangeLog ctags.eselect emacs.eselect X-VCS-Directories: / X-VCS-Committer: sping X-VCS-Committer-Name: Sebastian Pipping X-VCS-Revision: 0c92c83f32030905fadb4173263a08e22c8ef60e X-VCS-Branch: eselect-emacs Date: Sun, 6 May 2012 16:06:15 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 28a42d9d-e278-428f-af7d-d8c1d8f0c35d X-Archives-Hash: 1e44870e8e9cba9d00dda9d848a8c589 commit: 0c92c83f32030905fadb4173263a08e22c8ef60e Author: Ulrich M=C3=BCller gentoo org> AuthorDate: Fri Nov 6 18:00:33 2009 +0000 Commit: Sebastian Pipping gentoo org> CommitDate: Fri Nov 6 18:00:33 2009 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/emacs-tools.g= it;a=3Dcommit;h=3D0c92c83f Support brief output mode, bug 292100. svn path=3D/eselect-emacs/; revision=3D1449 --- ChangeLog | 5 +++++ ctags.eselect | 18 +++++++----------- emacs.eselect | 32 +++++++++++++++++--------------- 3 files changed, 29 insertions(+), 26 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3849ab1..d7fde51 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-11-06 Ulrich Mueller + + * emacs.eselect (do_list, do_show): + * ctags.eselect (do_list): Support brief output mode, bug 292100. + 2009-05-07 Ulrich Mueller =20 * Version 1.10 released. diff --git a/ctags.eselect b/ctags.eselect index 4a13c79..e61709e 100644 --- a/ctags.eselect +++ b/ctags.eselect @@ -144,18 +144,14 @@ do_list() { local i targets targets=3D( $(find_targets) ) =20 + for (( i =3D 0; i < ${#targets[@]}; i++ )); do + # Highlight the currently chosen version + [[ ${targets[i]} =3D \ + $(basename "$(readlink "${ROOT}${bindir}/${CTAGS}")") ]] \ + && targets[i]=3D$(highlight_marker "${targets[i]}") + done write_list_start "Available ${CTAGS} symlink targets:" - if [[ ${#targets[@]} -gt 0 ]]; then - for (( i =3D 0; i < ${#targets[@]}; i++ )); do - # Display a star to indicate the currently chosen version - [[ ${targets[i]} =3D \ - $(basename "$(readlink "${ROOT}${bindir}/${CTAGS}")") ]] \ - && targets[i]=3D"${targets[i]} $(highlight '*')" - done - write_numbered_list "${targets[@]}" - else - write_kv_list_entry "(none found)" "" - fi + write_numbered_list -m "(none found)" "${targets[@]}" } =20 ### set action ### diff --git a/emacs.eselect b/emacs.eselect index 1e9a3b3..b51a109 100644 --- a/emacs.eselect +++ b/emacs.eselect @@ -170,8 +170,11 @@ do_show() { else write_kv_list_entry "(unset)" "" fi - xemacs_info - #vim_info + + #if ! is_output_mode brief; then + xemacs_info + #vim_info + #fi } =20 ### list action ### @@ -186,20 +189,19 @@ do_list() { local i targets targets=3D( $(find_targets) ) =20 + for (( i =3D 0; i < ${#targets[@]}; i++ )); do + # Highlight the currently chosen version + [[ ${targets[i]} =3D \ + $(basename "$(readlink "${ROOT}${bindir}/emacs")") ]] \ + && targets[i]=3D$(highlight_marker "${targets[i]}") + done write_list_start "Available Emacs symlink targets:" - if [[ ${#targets[@]} -gt 0 ]]; then - for (( i =3D 0; i < ${#targets[@]}; i++ )); do - # Display a star to indicate the currently chosen version - [[ ${targets[i]} =3D \ - $(basename "$(readlink "${ROOT}${bindir}/emacs")") ]] \ - && targets[i]=3D"${targets[i]} $(highlight '*')" - done - write_numbered_list "${targets[@]}" - else - write_kv_list_entry "(none found)" "" - fi - xemacs_info - #vim_info + write_numbered_list -m "(none found)" "${targets[@]}" + + #if ! is_output_mode brief; then + xemacs_info + #vim_info + #fi } =20 ### set action ###