Mercurial > hg > xemacs-beta
changeset 4765:1257b938f03a
automatic merge
author | Stephen J. Turnbull <stephen@xemacs.org> |
---|---|
date | Fri, 04 Dec 2009 10:59:45 +0900 |
parents | dec62ca5a899 (diff) 1de041b8edf7 (current diff) |
children | 32b358a240b0 |
files | dynodump/Makefile.in.in dynodump/README dynodump/_dynodump.h dynodump/dynodump.c dynodump/i386/_relocate.c dynodump/i386/machdep.h dynodump/i386/uninit.c dynodump/ppc/_relocate.c dynodump/ppc/machdep.h dynodump/ppc/uninit.c dynodump/sparc/_relocate.c dynodump/sparc/machdep.h dynodump/sparc/uninit.c dynodump/syms.c lisp/ChangeLog src/broken-sun.h src/hftctl.c src/m/7300.h src/m/acorn.h src/m/alliant-2800.h src/m/alliant.h src/m/alliant1.h src/m/alliant4.h src/m/altos.h src/m/amdahl.h src/m/apollo.h src/m/att3b.h src/m/aviion.h src/m/celerity.h src/m/clipper.h src/m/cnvrgnt.h src/m/convex.h src/m/cydra5.h src/m/delta.h src/m/delta88k.h src/m/dpx2.h src/m/dual.h src/m/elxsi.h src/m/ews4800r.h src/m/gould-np1.h src/m/gould.h src/m/hp300bsd.h src/m/hp9000s300.h src/m/i860.h src/m/ibm370aix.h src/m/ibmps2-aix.h src/m/ibmrt-aix.h src/m/ibmrt.h src/m/iris4d.h src/m/iris5d.h src/m/iris6d.h src/m/irist.h src/m/is386.h src/m/isi-ov.h src/m/luna88k.h src/m/masscomp.h src/m/mega68.h src/m/mg1.h src/m/mips-nec.h src/m/mips-siemens.h src/m/mips4.h src/m/ncr386.h src/m/news-risc.h src/m/news.h src/m/next.h src/m/nh3000.h src/m/nh4000.h src/m/ns16000.h src/m/ns32000.h src/m/nu.h src/m/orion.h src/m/orion105.h src/m/paragon.h src/m/pfa50.h src/m/plexus.h src/m/pmax.h src/m/pyramid.h src/m/pyrmips.h src/m/sequent-ptx.h src/m/sequent.h src/m/sgi-challenge.h src/m/sgi3000.h src/m/sps7.h src/m/stride.h src/m/sun1.h src/m/sun2.h src/m/sun3-68881.h src/m/sun3-fpa.h src/m/sun3-soft.h src/m/sun3.h src/m/sun386.h src/m/symmetry.h src/m/tad68k.h src/m/tahoe.h src/m/tandem-s2.h src/m/targon31.h src/m/tek4300.h src/m/tekxd88.h src/m/tower32.h src/m/tower32v3.h src/m/ustation.h src/m/vax.h src/m/wicat.h src/m/xps100.h src/nsselect.m src/s/3700.h src/s/386-ix.h src/s/386bsd.h src/s/aix3-1.h src/s/aix3-2-5.h src/s/aix3-2.h src/s/aix4-1.h src/s/aix4.h src/s/alliant-2800.h src/s/alliant.h src/s/altos.h src/s/amdahl.h src/s/bsd386.h src/s/bsd4-1.h src/s/bsd4-2.h src/s/bsdos2-1.h src/s/bsdos2.h src/s/bsdos3.h src/s/bsdos4.h src/s/cxux.h src/s/cxux7.h src/s/decosf1-2.h src/s/decosf1-3.h src/s/decosf3-1.h src/s/decosf3-2.h src/s/decosf4-0.h src/s/dgux.h src/s/dgux5-4r2.h src/s/dgux5-4r3.h src/s/dgux5-4r4.h src/s/domain.h src/s/esix.h src/s/esix5r4.h src/s/ewsux5r4.h src/s/hpux.h src/s/hpux10-shr.h src/s/hpux10.h src/s/hpux8-shr.h src/s/hpux8.h src/s/hpux9-shr.h src/s/hpux9-x11r4.h src/s/hpux9.h src/s/hpux9shxr4.h src/s/iris3-5.h src/s/iris3-6.h src/s/irix3-3.h src/s/irix4-0.h src/s/irix5-0.h src/s/irix5-1.h src/s/irix5-2.h src/s/irix5-3.h src/s/isc2-2.h src/s/isc3-0.h src/s/isc4-0.h src/s/isc4-1.h src/s/linux.h src/s/newsos5.h src/s/nextstep.h src/s/osf1.h src/s/ptx.h src/s/riscix1-1.h src/s/riscix1-2.h src/s/riscos5.h src/s/rtu.h src/s/sco4.h src/s/sco5-shr.h src/s/sco5.h src/s/sunos4-0-shr.h src/s/sunos4-0.h src/s/sunos4-1-1.h src/s/sunos4-1-2-shr.h src/s/sunos4-1-2.h src/s/sunos4-1-3-shr.h src/s/sunos4-1-3.h src/s/sunos4-1-4-shr.h src/s/sunos4-1-4.h src/s/sunos4-1-shr.h src/s/sunos4-1.h src/s/ultrix.h src/s/ultrix4-3.h src/s/umax.h src/s/umips.h src/s/unipl5-0.h src/s/unipl5-2.h src/s/usg5-0.h src/s/usg5-2-2.h src/s/usg5-2.h src/s/usg5-3.h src/s/xenix.h src/strcmp.c src/strcpy.c src/sunOS-fix.c src/unexapollo.c src/unexconvex.c src/unexelfsgi.c src/unexencap.c src/unexenix.c src/unexfreebsd.c src/unexfx2800.c src/unexhp9k3.c src/unexmips.c src/unexnext.c src/unexsni.c src/unexsol2.c src/unexsunos4.c |
diffstat | 2 files changed, 45 insertions(+), 16 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/ChangeLog Thu Dec 03 13:55:59 2009 -0700 +++ b/lisp/ChangeLog Fri Dec 04 10:59:45 2009 +0900 @@ -95,6 +95,20 @@ (narrow-to-defun): Document that optional ARG is ignored. +2009-11-01 Stephen Turnbull <stephen@xemacs.org> + + * faces.el (Face-frob-property): + Give mapper for TTYs 2 args. + (make-face-family): + (make-face-size): + Generic mapper ignores TTYs and null devices. + (make-face-bold): + (make-face-italic): + (make-face-bold-italic): + (make-face-unbold): + (make-face-unitalic): + TTY mapper takes 2 args. + 2009-10-09 Stephen Turnbull <stephen@xemacs.org> * lisp.el (beginning-of-defun-function):
--- a/lisp/faces.el Thu Dec 03 13:55:59 2009 -0700 +++ b/lisp/faces.el Fri Dec 04 10:59:45 2009 +0900 @@ -933,10 +933,11 @@ ;; and EXACT-P are as in that call. UNFROBBED-FACE and FROBBED-FACE are ;; what we expect the original face and the result to look like, ;; respectively. TTY-PROPS is a list of face properties to frob in place - ;; of `font' for TTY's. FROB-MAPPING is either a plist mapping device + ;; of `font' for TTYs. FROB-MAPPING is either a plist mapping device ;; types to functions of two args (NAME DEVICE) that will frob the - ;; instantiator as appropriate for the device type (this includes TTY's), - ;; or a function to handle the mapping for all device types. + ;; instantiator to NAME as appropriate for DEVICE's type (this includes + ;; TTYs #### TTYs are not passed the device, just the symbol 'tty), or a + ;; function to handle the mapping for all device types. ;; STANDARD-FACE-MAPPING is an alist of mappings of inheritance ;; instantiators to be replaced with other inheritance instantiators, meant ;; for e.g. converting [bold] into [bold-italic]. @@ -1038,7 +1039,11 @@ (t (let ((value (if (eq devtype-spec 'tty) - (funcall mapper x) + ;; #### not quite right but need + ;; two args to match documentation + ;; mostly we just ignore TTYs so + ;; for now just pass the devtype + (funcall mapper x 'tty) (funcall mapper x (derive-domain-from-locale locale devtype-spec @@ -1193,11 +1198,16 @@ (Face-frob-property face locale tags exact-p nil nil 'font nil + ;; #### this code is duplicated in make-face-size `(lambda (f d) - ;; keep the dependency on font.el for now - (let ((fo (font-create-object f d))) - (set-font-family fo ,family) - (font-create-name fo d))) + ;; keep the dependency on font.el for now + ;; #### The filter on null d is a band-aid. + ;; Frob-face-property should not be passing in + ;; null devices. + (unless (or (null d) (eq d 'tty)) + (let ((fo (font-create-object f d))) + (set-font-family fo ,family) + (font-create-name fo d)))) nil)) ;; Style (ie, typographical face) frobbing @@ -1311,7 +1321,7 @@ (interactive (list (read-face-name "Make which face bold: "))) (Face-frob-property face locale tags exact-p 'default 'bold 'font '(highlight) - '(tty (lambda (x) t) + '(tty (lambda (f d) t) x x-make-font-bold gtk gtk-make-font-bold mswindows mswindows-make-font-bold @@ -1330,7 +1340,7 @@ (interactive (list (read-face-name "Make which face italic: "))) (Face-frob-property face locale tags exact-p 'default 'italic 'font '(underline) - '(tty (lambda (x) t) + '(tty (lambda (f d) t) x x-make-font-italic gtk gtk-make-font-italic mswindows mswindows-make-font-italic @@ -1349,7 +1359,7 @@ (interactive (list (read-face-name "Make which face bold-italic: "))) (Face-frob-property face locale tags exact-p 'default 'bold-italic 'font '(underline highlight) - '(tty (lambda (x) t) + '(tty (lambda (f d) t) x x-make-font-bold-italic gtk gtk-make-font-bold-italic mswindows mswindows-make-font-bold-italic @@ -1369,7 +1379,7 @@ (interactive (list (read-face-name "Make which face non-bold: "))) (Face-frob-property face locale tags exact-p 'bold 'default 'font '(highlight) - '(tty (lambda (x) nil) + '(tty (lambda (f d) nil) x x-make-font-unbold gtk gtk-make-font-unbold mswindows mswindows-make-font-unbold @@ -1388,7 +1398,7 @@ (interactive (list (read-face-name "Make which face non-italic: "))) (Face-frob-property face locale tags exact-p 'italic 'default 'font '(underline) - '(tty (lambda (x) nil) + '(tty (lambda (f d) nil) x x-make-font-unitalic gtk gtk-make-font-unitalic mswindows mswindows-make-font-unitalic @@ -1408,11 +1418,16 @@ (read-number "Size to set: " t 10))) (Face-frob-property face locale tags exact-p nil nil 'font nil + ;; #### this code is duplicated in make-face-family `(lambda (f d) ;; keep the dependency on font.el for now - (let ((fo (font-create-object f d))) - (set-font-size fo ,size) - (font-create-name fo d))) + ;; #### The filter on null d is a band-aid. + ;; Frob-face-property should not be passing in + ;; null devices. + (unless (or (null d) (eq d 'tty)) + (let ((fo (font-create-object f d))) + (set-font-size fo ,size) + (font-create-name fo d)))) nil)) ;; Why do the following two functions lose so badly in so many