all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* momentary-string-display
@ 2006-12-27  1:18 Juanma Barranquero
  2006-12-27 21:16 ` momentary-string-display Richard Stallman
  0 siblings, 1 reply; 22+ messages in thread
From: Juanma Barranquero @ 2006-12-27  1:18 UTC (permalink / raw)


`momentary-string-display' is a little weird function, or at least it
*acts* a little weird in my tests:

  1) It does not check that POS is valid.

  2) It does not check whether POS satisfies any restriction, nor uses
`widen' and `save-restriction' to circumvent it.

  3) Its docstring says: "Momentarily display STRING in the buffer at
POS.", which could be taken as this being valid:

  (momentary-string-display "test"
                            (with-current-buffer MY-BUFFER
                              (point-marker)))

   which isn't; the buffer temporarily modified is (current-buffer),
not MY-BUFFER.

  4) From its docstring, it seems as if STRING should always be
displayed, which isn't true (STRING is only shown when POS and point
both can be simultaneously displayed on the window).

Worse yet, in cases 1) to 3), `momentary-string-display' can err out
after displaying STRING, leaving the buffer modified and with
`buffer-file-name' set to nil.

                    /L/e/k/t/u

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

end of thread, other threads:[~2007-01-07 14:41 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-27  1:18 momentary-string-display Juanma Barranquero
2006-12-27 21:16 ` momentary-string-display Richard Stallman
2006-12-27 23:53   ` momentary-string-display Juanma Barranquero
2006-12-29 15:44     ` momentary-string-display Richard Stallman
2007-01-02 23:58       ` momentary-string-display Juanma Barranquero
2006-12-29  4:47   ` momentary-string-display Kevin Rodgers
2006-12-29 22:58     ` momentary-string-display Richard Stallman
2007-01-03  8:53       ` momentary-string-display Kevin Rodgers
2007-01-04  1:41         ` momentary-string-display Stephen Leake
2007-01-04  2:31         ` momentary-string-display Richard Stallman
2007-01-04 15:31           ` momentary-string-display Kevin Rodgers
2007-01-04 22:34             ` momentary-string-display Richard Stallman
2007-01-04 23:18               ` momentary-string-display Juanma Barranquero
2007-01-05 19:09                 ` momentary-string-display Richard Stallman
2007-01-05  7:05               ` momentary-string-display Stephen Leake
2007-01-06  2:54                 ` momentary-string-display Richard Stallman
2007-01-06  7:36                   ` momentary-string-display Stephen Leake
2007-01-07  3:47                     ` momentary-string-display Richard Stallman
2007-01-07 14:41                       ` momentary-string-display Stephen Leake
2007-01-02 22:54   ` momentary-string-display Tak Ota
2007-01-03 21:11     ` momentary-string-display Richard Stallman
2007-01-03 21:36       ` momentary-string-display Tak Ota

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.