* Patch to function make-text-button in lisp/button.el
@ 2005-02-27 0:21 Francis Litterio
2005-03-02 9:11 ` Miles Bader
0 siblings, 1 reply; 2+ messages in thread
From: Francis Litterio @ 2005-02-27 0:21 UTC (permalink / raw)
In lisp/button.el, function make-button sets the type of the button to a
default value if the user doesn't supply a :type property, but function
make-text-button does not.
This patch makes function make-text-button set the type of the button if
the user does not supply a :type property.
--
Francis Litterio
franl <at> world . std . com
--- button.el 13 Oct 2004 14:52:52 -0400 1.14
+++ button.el 26 Feb 2005 19:17:48 -0500
@@ -315,6 +315,9 @@
(error "Button `category' property may not be set directly")))
;; Add the property.
(put-text-property beg end prop val)))
+ ;; If the user didn't specify a type, use the default.
+ (unless (get-text-property beg 'category)
+ (put-text-property beg end 'category 'default-button))
;; Return something that can be used to get at the button.
beg)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-03-02 9:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-27 0:21 Patch to function make-text-button in lisp/button.el Francis Litterio
2005-03-02 9:11 ` Miles Bader
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.