GNU bug report logs -
#5910
vc-hooks enhancement request: highlight checkouts
Previous Next
Reported by: Albert Ting <altlist <at> gmail.com>
Date: Thu, 8 Apr 2010 19:44:01 UTC
Severity: wishlist
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 5910 in the body.
You can then email your comments to 5910 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#5910
; Package
emacs
.
(Thu, 08 Apr 2010 19:44:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Albert Ting <altlist <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Thu, 08 Apr 2010 19:44:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
In GNU Emacs 21.3.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
of 2003-04-21 on l-sftwr-2236
configured using `configure --prefix=/home/vtools/apps/emacs-21.3'
Important settings:
value of $LC_ALL: POSIX
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: C
locale-coding-system: nil
default-enable-multibyte-characters: t
Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:
I posted this earlier but didn't see it get received. So apologies if this
is a repeat.
In any case, I'd like to quest the vc auto-highlight any files that have
been modified/checkout in the vc-mode-line. XEmacs supports this and below
is a patch to make it work in Emacs.
Thanks,
Albert
--- vc-hooks.el~ 2010-04-08 12:33:24.016321000 -0700
+++ vc-hooks.el 2010-03-30 08:06:06.570204000 -0700
@@ -772,7 +772,10 @@
(if (not backend)
(setq vc-mode nil)
(let* ((ml-string (vc-call-backend backend 'mode-line-string file))
- (ml-echo (get-text-property 0 'help-echo ml-string)))
+ (ml-echo (get-text-property 0 'help-echo ml-string))
+ (test-str "^\\(RCS\\|CVS\\|SVN\\|SCCS\\|Arch\\|MCVS\\|GIT\\):")
+ (locked (string-match test-str ml-string))
+ )
(setq vc-mode
(concat
" "
@@ -781,6 +784,7 @@
(propertize
ml-string
'mouse-face 'mode-line-highlight
+ 'face (if locked 'highlight 'mode-line)
'help-echo
(concat (or ml-echo
(format "File under the %s version control system"
Recent messages:
Loading completion...done
Loading advice...done
Loading cl-seq...done
done loading .emacs
For information about the GNU Project and its goals, type C-h C-p.
Loading cl-macs...done
Loading emacsbug...done
[Message part 2 (text/html, inline)]
Severity set to 'wishlist' from 'normal'
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Fri, 09 Apr 2010 07:36:01 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#5910
; Package
emacs
.
(Sat, 19 Sep 2020 21:39:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 5910 <at> debbugs.gnu.org (full text, mbox):
Albert Ting <altlist <at> gmail.com> writes:
> In any case, I'd like to quest the vc auto-highlight any files that have been
> modified/checkout in the vc-mode-line. XEmacs supports this and below is a patch
> to make it work in Emacs.
>
> Thanks,
> Albert
>
> --- vc-hooks.el~ 2010-04-08 12:33:24.016321000 -0700
> +++ vc-hooks.el 2010-03-30 08:06:06.570204000 -0700
> @@ -772,7 +772,10 @@
> (if (not backend)
> (setq vc-mode nil)
> (let* ((ml-string (vc-call-backend backend 'mode-line-string file))
> - (ml-echo (get-text-property 0 'help-echo ml-string)))
> + (ml-echo (get-text-property 0 'help-echo ml-string))
> + (test-str "^\\(RCS\\|CVS\\|SVN\\|SCCS\\|Arch\\|MCVS\\|GIT\\):")
> + (locked (string-match test-str ml-string))
This patch unfortunately got no attention when it was posted ten years
ago.
I see that this has been fixed over the years in a different way --
vc-up-to-date-state (etc) is added by the vc-*-mode-line-string backend
functions themselves, so I'm closing this bug report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
bug closed, send any further explanations to
5910 <at> debbugs.gnu.org and Albert Ting <altlist <at> gmail.com>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sat, 19 Sep 2020 21:39:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 18 Oct 2020 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 3 years and 191 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.