I've tried posting this on comp.emacs.xemacs but have had no responses so far...
I tried using clearcase-submit-bug-report but the e-mail bounced with
a user unknown error for <esler(a)rational.com>.
Emacs: XEmacs 21.4 (patch 12) "Portable Code" [Lucid] (sparc-sun-solaris2.8,
Mule) of Mon Mar 10 2003 on gax
Package: clearcase.el </main/161>
current state:
==============
(setq
clearcase-diff-on-checkin nil
)
I tend to have many different buffers open in clearcase-mode at the
same time for extended periods of time. Frequently, when I've
finished working with them, I'll switch to a shell-mode buffer and do
a mass-checkin with "cleartool ci -all -cvi -s | xargs cleartool ci
...". After doing this, I'll run a function that I've written which
calls revert-buffer on all of the unmodified buffers with associated
files. At this point, all of the cached clearcase-mode file
properties are out of sync. To work around this, I've written the
following:
(defun clearcase-revert-buffer-properties (&optional buffer)
(interactive
(when current-prefix-arg
(list (get-buffer (read-buffer "Buffer name: " (current-buffer)
t)))))
(let ((buffer (or buffer (current-buffer))))
(save-emacs-state
(set-buffer buffer)
(let* ((file (buffer-file-name buffer))
(properties (clearcase-fprop-read-properties file)))
(clearcase-fprop-store-properties file properties)
(redraw-modeline)))))
This does the trick with the unfortunate drawback that redraw-modeline
does not actually cause the modeline to display the correct thing. Is
there a better way for me to do this; i.e. better way to resync the
clearcase-fprop with the actual state of the file and redraw the
modeline? Thanks in advance for any help.
BTW, is there any good way to tell which modes are being used by a
buffer? One can get the buffer local value of major-mode for the
major mode but what about the minor modes?
Show replies by date