From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "James K. Lowden" Newsgroups: gmane.emacs.help Subject: Ubuntu font of wisdom Date: Thu, 15 Dec 2016 17:43:58 -0500 Organization: http://www.NewsDemon.com Message-ID: <20161215174358.9656c013f10b66d2c7e029ad@speakeasy.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1481841933 15806 195.159.176.226 (15 Dec 2016 22:45:33 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 15 Dec 2016 22:45:33 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 15 23:45:28 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cHemC-0002II-A3 for geh-help-gnu-emacs@m.gmane.org; Thu, 15 Dec 2016 23:45:24 +0100 Original-Received: from localhost ([::1]:57295 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cHemF-00083a-7P for geh-help-gnu-emacs@m.gmane.org; Thu, 15 Dec 2016 17:45:27 -0500 Original-Path: usenet.stanford.edu!news.glorb.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!post01.iad.highwinds-media.com!fx43.iad.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help X-Newsreader: Sylpheed 3.4.3 (GTK+ 2.24.28; x86_64--netbsd) Original-Lines: 98 Original-X-Complaints-To: abuse@newsdemon.com Original-NNTP-Posting-Date: Thu, 15 Dec 2016 22:43:59 UTC X-Received-Bytes: 3614 X-Received-Body-CRC: 3317790512 Original-Xref: usenet.stanford.edu gnu.emacs.help:219030 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:111963 Archived-At: $ 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 ==