all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* log-view-current-tag doesn't return SCCS revision
@ 2003-06-26 18:37 Kevin Rodgers
  0 siblings, 0 replies; 3+ messages in thread
From: Kevin Rodgers @ 2003-06-26 18:37 UTC (permalink / raw)


>From log-view.el:

;; In RCS, a locked revision will look like "revision N.M\tlocked by: FOO".
(defconst log-view-message-re "^\\(revision \\([.0-9]+\\)\\(?:\t.*\\)?\\|rev \\([0-9]+\\):  .*\\|D \\([.0-9]+\\) .*\\)$")

Obviously, the revision may be matched by subexpression 2, 4 (not 3), or
5 (for SCCS):

*** emacs-21.3/lisp/log-view.el.orig	Mon Jan 20 04:03:30 2003
--- emacs-21.3/lisp/log-view.el	Thu Jun 26 12:24:59 2003
***************
*** 144,150 ****
      (forward-line 1)
      (let ((pt (point)))
        (when (re-search-backward log-view-message-re nil t)
! 	(let ((rev (or (match-string 2) (match-string 3))))
  	  (unless (re-search-forward log-view-file-re pt t)
  	    rev))))))
  
--- 144,150 ----
      (forward-line 1)
      (let ((pt (point)))
        (when (re-search-backward log-view-message-re nil t)
! 	(let ((rev (or (match-string 2) (match-string 4) (match-string 5))))
  	  (unless (re-search-forward log-view-file-re pt t)
  	    rev))))))
  

-- 
<a href="mailto:&lt;kevin.rodgers&#64;ihs.com&gt;">Kevin Rodgers</a>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-06-26 23:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.8695.1056655038.21513.bug-gnu-emacs@gnu.org>
2003-06-26 22:38 ` log-view-current-tag doesn't return SCCS revision Kevin Rodgers
2003-06-26 23:43 ` Kevin Rodgers
2003-06-26 18:37 Kevin Rodgers

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.