GNU bug report logs - #23749
24.3.50; can't make the cursor to the end of a buffer when that buffer is visible

Previous Next

Package: emacs;

Reported by: Samuel Lê <samuel.le <at> gmail.com>

Date: Sun, 12 Jun 2016 02:02:01 UTC

Severity: normal

Tags: notabug

Found in version 24.3.50

Done: Noam Postavsky <npostavs <at> users.sourceforge.net>

Bug is archived. No further changes may be made.

Full log


Message #21 received at 23749-done <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> users.sourceforge.net>
To: Samuel Lê <samuel.le <at> gmail.com>
Cc: 23749-done <at> debbugs.gnu.org
Subject: Re: bug#23749: 24.3.50; can't make the cursor to the end of a buffer
 when that buffer is visible
Date: Sun, 12 Jun 2016 11:51:31 -0400
Cool, could be compacted a little:

(defun insert-into-buffer (buffer text)
  (with-current-buffer buffer
    (beginning-of-line)
    (insert text)
    (let ((buffer-window (get-buffer-window)))
      (if buffer-window
          (set-window-point buffer-window (point-max))
        (goto-char (point-max))))))




This bug report was last modified 9 years and 66 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.