Home | History | Annotate | Download | only in python2.7

Lines Matching refs:seq

35 list = f.parsesequence(seq)     # parse msgs syntax into list of messages
321 for key, seq in sequences.iteritems():
323 s.fromlist(seq)
346 def parsesequence(self, seq):
360 if seq == 'all':
362 # Test for X:Y before X-Y because 'seq:-n' matches both
363 i = seq.find(':')
365 head, dir, tail = seq[:i], '', seq[i+1:]
369 raise Error, "bad message list %s" % seq
381 msg = "bad message list %s" % seq
401 i = seq.find('-')
403 begin = self._parseindex(seq[:i], all)
404 end = self._parseindex(seq[i+1:], all)
409 raise Error, "bad message list %s" % seq
413 n = self._parseindex(seq, all)
416 if not seq in seqs:
418 msg = "bad message list %s" % seq
420 return seqs[seq]
423 if isnumeric(seq):
426 raise Error, "no %s message" % seq
430 def _parseindex(self, seq, all):
432 if isnumeric(seq):
434 return int(seq)
437 if seq in ('cur', '.'):
439 if seq == 'first':
441 if seq == 'last':
443 if seq == 'next':
450 if seq == 'prev':
530 for name, seq in fromsequences.items():
538 if fromn in seq:
637 for name, seq in sequences.items():
641 if n in seq:
642 seq.remove(n)
644 if not seq:
989 for seq in ('first', 'last', 'cur', '.', 'prev', 'next',
995 do('f.parsesequence(%r)' % (seq,))
998 stuff = os.popen("pick %r 2>/dev/null" % (seq,)).read()