code: def beginning_of_history(self): # (M-<)
          u'''Move to the first line in the history.'''
          self.history_cursor = 0
          if len(self.history) > 0:
              self.l_buffer = self.history[0f beginning_of_history(self): # (M-<)
          u'''Move to the first line in the history.'''
          self.history_cursor = 0
          if len(self.history) > 0:
              self.l_buffer = self.history[0]
docs: u'''Move to the first line in the history.