all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Ubuntu font of wisdom
@ 2016-12-15 22:43 James K. Lowden
  2016-12-16 21:41 ` Javier
  0 siblings, 1 reply; 8+ messages in thread
From: James K. Lowden @ 2016-12-15 22:43 UTC (permalink / raw
  To: help-gnu-emacs

$ cat /etc/debian_version 
stretch/sid
$ /usr/bin/emacs --version | grep 2[45]
GNU Emacs 24.5.1
$ /usr/local/bin/emacs --version | grep 2[45] 
GNU Emacs 25.1.1

I just upgraded emacs from source (see makefile below for steps)
because 25 is not packaged for Ubuntu 16.04.1 LTS.  Unfortuately, my
new version no longer has access to 

	DejaVu Sans Mono-10

which is what I usually use.  Since the old version is still installed
and still uses that font, I know it's still installed and available.
What I don't know is how to get Emacs to use it.  

On the old version, "describe-font" starts out this way:

name (opened by): -PfEd-DejaVu Sans
Mono-normal-normal-normal-*-13-*-*-*-m-0-iso10646-1 
	full name: DejaVu Sans Mono:pixelsize=13:....

I guess it's an outline font because xfontsel does not report it.  

My X server is XQuartz on macOS.  I usually display emacs remotely using
ssh X forwarding.  

Questions: 

1.  How to have version 24 report where it found its font? 
2.  How to configure version 25 the same way?

While I'm at it, the new version uses the ugly Motif-gray toolbar,
while the packaged version uses a much more attractive, colorful
toolbar (and puts the scrollabar on the right).  Is that a build
option, or a theme of some kind?  

A lot of the advice I've read in searching basically says how to
install fonts, and claims emacs will DTRT when that's done.  I have the
font, and it is accessible.  It's just not being accessed.  

Many thanks.  

--jkl

== Makefile (installation & build steps) ==
EMACS = emacs-25.1
SOURCES = /etc/apt/sources.list
TMPSRCS = /tmp/$(notdir $(SOURCES))
PATCH = $(TMPSRCS).diff
PKG.OPTIONS = --pkgname emacs --maintainer jkl --pkgversion 25.1


all: .checkinstall

.checkinstall: .update .build $(EMACS)/build/description-pak
        (cd $(EMACS)/build && sudo checkinstall $(PKG.OPTIONS))

$(EMACS)/build/description-pak:
        echo 'emacs is the new black' > $@

.update: .source-ok
        sudo apt-get -y update
        @touch $@

.source-ok: $(PATCH)
        sudo patch < $(PATCH) $(SOURCES)
        @touch $@

# apt update fails unless some sources are mentioned in sources.list 
$(PATCH): 
        test -f $(TMPSRCS).orig || cp $(SOURCES) $(TMPSRCS).orig
        chmod -w $(TMPSRCS).orig
        sed -E 's/^# deb-src/deb-src/' $(SOURCES) > $(TMPSRCS)
        diff -u $(TMPSRCS).orig $(TMPSRCS) > $(PATCH)~ || test $$? = 1
        mv $(PATCH)~ $(PATCH)

.build: .fetched
        mkdir -p $(EMACS)/build
        (cd $(EMACS)/build && nohup ../configure > log)
        (cd $(EMACS)/build && nohup make -j8 > log)

.fetched: $(EMACS).tar.xz
        pax -Jrf $^
        @touch $@

$(EMACS).tar.xz:
        wget http://ftp.gnu.org/gnu/emacs/$(EMACS).tar.xz

.build-dep: .pre-checkinstall
        sudo apt-get build-dep emacs24
        @touch $@

.pre-checkinstall:
        sudo apt install -y build-essential checkinstall
        @touch $@
== EOF ==


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

end of thread, other threads:[~2016-12-18 21:32 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-15 22:43 Ubuntu font of wisdom James K. Lowden
2016-12-16 21:41 ` Javier
2016-12-17  5:29   ` James K. Lowden
2016-12-17  6:02     ` Dan Espen
2016-12-17 17:04       ` James K. Lowden
2016-12-17 17:53         ` Dan Espen
2016-12-17 18:59           ` James K. Lowden
2016-12-18 21:32     ` Tomas Nordin

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.