(cond
((not (memq 'emacs lst))
nil)
- ((string-match "^\\(\\([.0-9]+\\)*\\)\\.[0-9]+$" emacs-version)
+ ((string-match "^[.0-9]*\\.[0-9]+$" emacs-version)
(concat "Emacs/" emacs-version
(if system-v
(concat " (" system-v ")")
;; only an approximation?
;; see rfc 1738
(defconst rfc2368-mailto-regexp
- "^\\(mailto:\\)\\([^?]+\\)*\\(\\?\\(.*\\)\\)*"
+ "^\\(mailto:\\)\\([^?]+\\)?\\(\\?\\(.*\\)\\)*"
"Regular expression to match and aid in parsing a mailto url.")
;; describes 'mailto:'
(unless (string-match
(eval-when-compile
(concat "^[^[:blank:]]+"
- "[[:blank:]]+\\([^[:blank:]]+\\)+"
+ "[[:blank:]]+\\([^[:blank:]]+\\)"
"\\([[:blank:]]+\\([^\n\r]+\\)\\)?"))
line)
(tramp-error proc 'file-notify-error "%s" line))
(let ((l ()) (p 0))
(while p
(setq l (cons (if (string-match
- "\\([-a-zA-Z0-9+=_.@/:]+\\)\\([ \t]+\\)*"
+ "\\([-a-zA-Z0-9+=_.@/:]+\\)[ \t]*"
s p)
(prog1 (substring s p (match-end 1))
(setq p (match-end 0))
(skip-chars-backward " ")
(insert " " (org-trim s))
(org-table-align)))
- ((looking-at "\\([^|]+\\)+|") ; Split field.
+ ((looking-at "\\([^|]+\\)|") ; Split field.
(let ((s (match-string 1)))
(replace-match " |")
(goto-char (match-beginning 0))
(t
;; Delete identical interconnect
(let ((case-fold-search nil)) ; So we don't convert upper-to-lower, etc
- (while (verilog-re-search-forward-quick "\\.\\s *\\([a-zA-Z0-9`_$]+\\)*\\s *(\\s *\\1\\s *)\\s *" end-pt t)
+ (while (verilog-re-search-forward-quick "\\.\\s *\\([a-zA-Z0-9`_$]+\\)?\\s *(\\s *\\1\\s *)\\s *" end-pt t)
(delete-region (match-beginning 0) (match-end 0))
(setq end-pt (- end-pt (- (match-end 0) (match-beginning 0)))) ; Keep it correct
(while (or (looking-at "[ \t\n\f,]+")