X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=lisp%2Fglyphs.el;h=c15067098a3e34feba5ec0c31cb829ed4994ee54;hb=2ced49725acf14b38ee72660632dbf4041d7fa25;hp=dc3b882f199bbb52c515b8291ab8ae0835c03778;hpb=76759ab036458c54499a454399e19602b8ae6ce3;p=chise%2Fxemacs-chise.git.1 diff --git a/lisp/glyphs.el b/lisp/glyphs.el index dc3b882..c150670 100644 --- a/lisp/glyphs.el +++ b/lisp/glyphs.el @@ -543,6 +543,14 @@ Normally DOMAIN will be a window or nil (meaning the selected window), See `glyph-property-instance' for more information." (glyph-property-instance glyph 'image domain default no-fallback)) +(defun glyph-image-property (glyph prop &optional domain default no-fallback) + "Return property PROP of the instance of GLYPH's image in DOMAIN. + +Normally DOMAIN will be a window or nil (meaning the selected window). +The value returned is dependent on the image instance type." + (image-instance-property + (glyph-image-instance glyph domain default no-fallback) prop)) + (defun set-glyph-image (glyph spec &optional locale tag-set how-to-add) "Change the image of GLYPH in LOCALE. @@ -746,7 +754,7 @@ Once you have created a glyph, you specify where it will be used as follows: `modeline-pointer-glyph' for the pointer used over the modeline, etc. Do an apropos over `*-pointer-glyph' to find all of them. (Note also that you can temporarily set the mouse pointer to some specific shape - by using `set-frame-pointer', which takes an image instace, as obtained + by using `set-frame-pointer', which takes an image instance, as obtained from calling `glyph-image-instance' on a glyph of type `pointer' -- either one of the above-mentioned variables or one you created yourself. (See below for what it means to create a glyph of type `pointer'.) @@ -1015,7 +1023,8 @@ If unspecified in a particular domain, `nontext-pointer-glyph' is used.") [jpeg :data nil] 2))) ,@(if (featurep 'png) '(("\\.png\\'" [png :file nil] 2))) ,@(if (featurep 'png) '(("\\`\211PNG" [png :data nil] 2))) - ("" [autodetect :data nil] 2)))) + ("" [string :data nil] 2) + ("" [nothing])))) ;; #### this should really be formatted-string, not string but we ;; don't have it implemented yet ;;