Subject: 23.3; print-buffer may need improvement under MAC OSX

From: Chao LU <[email-masked]>
Date: Mon, 21 Mar 2011 20:56:39 -0400

I'm using the Emacs for OSX, GNU Emacs 23.3.1 (x86_64-apple-darwin,
    NS apple-appkit-1038.35) of 2011-03-09 on black.porkrind.org,
    which I obtained from this URL: http://emacsformacosx.com/
    
    The printing is not working perfectly. The function (print-buffer)
    will lead to a printed paper like this

    -------------------
    | abcdefgabcd|
    -------------------

    instead of

    -------------------
    |  abcdefabc   |
    -------------------

    And I really failed to find out where I could setup the margin. And I did
    try to print with postscript,
    but in that case, the font is really small, and adjusting the fonts is
    another headache.

In GNU Emacs 23.3.1 (x86_64-apple-darwin, NS apple-appkit-1038.35)
of 2011-03-09 on black.porkrind.org
Windowing system distributor `Apple', version 10.3.1038
configured using `configure  '--host=x86_64-apple-darwin' '--build=i686-apple-darwin' '--with-ns' 'build_alias=i686-apple-darwin' 'host_alias=x86_64-apple-darwin' 'CC=gcc -mmacosx-version-min=10.5''

Important settings:
  value of $LC_ALL: en_US.UTF-8
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: nil
  default enable-multibyte-characters: t

Major mode: Dired by name

Minor modes in effect:
  hl-line-mode: t
  yas/global-mode: t
  shell-dirtrack-mode: t
  global-auto-complete-mode: t
  dired-omit-mode: t
  show-paren-mode: t
  display-time-mode: t
  delete-selection-mode: t
  auto-image-file-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  size-indication-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<return> <tab> <return> <backspace> h <return> c h 
a o l <tab> <backspace> <backspace> <backspace> <backspace> 
<backspace> <tab> <tab> / <backspace> c h a o <tab> 
<tab> <tab> <backspace> <backspace> <backspace> <backspace> 
<backspace> h o <tab> <tab> <tab> <backspace> <backspace> 
<backspace> C-d C-n C-n C-n C-n C-n C-n C-p C-p C-p 
C-p C-p C-p C-n C-n C-n C-n C-n C-n C-p C-p C-p C-n 
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n 
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n 
C-n C-n C-n C-n C-p C-p C-p <return> C-n C-n C-p C-p 
C-x C-f u / c h a o l / p u b <return> C-d C-x C-f 
C-g C-x b C-s <return> R s <backspace> / s <backspace> 
<backspace> C-g C-x b C-g C-x b C-g R / s c p c : c 
h a o <backspace> <backspace> <backspace> <backspace> 
<backspace> C-g <return> C-2 M-> M-w C-x b C-s C-s 
<return> C-x k <return> C-x b C-s <return> C-x C-f 
n e c <backspace> <backspace> <backspace> N e <backspace> 
E C B L . h t m l <return> <return> C-y C-x C-s C-x 
C-s C-x k <return> <f9> 1 C-s p r o C-g C-n C-n C-n 
C-n C-n C-n c <wheel-down> <double-wheel-down> <triple-wheel-down> 
<wheel-down> <double-wheel-down> <wheel-up> <help-echo> 
C-n C-n C-n C-n C-n C-n d x y C-p C-p C-p C-p C-p C-p 
C-p C-p C-p C-p C-p C-p C-n <return> C-n C-p ^ C-n 
<return> ^ <help-echo> g <wheel-up> <down-mouse-1> 
<mouse-1> <help-echo> <help-echo> M-x r e p o r t - 
e m <tab> b u <tab> <return>

Recent messages:
Omitting...
(Nothing to omit)
Directory has changed on disk; type g to update Dired
Omitting...
(Nothing to omit)
Omitting...
(Nothing to omit)
Directory has changed on disk; type g to update Dired
Omitting...
(Nothing to omit)

Load-path shadows:
/Users/LooChao/Dropbox/.emacs.d/rc/../site-lisp/dictionary-1.8.7/lpath hides /Users/LooChao/Dropbox/.emacs.d/site-lisp/wget-el/lpath
~/Dropbox/.emacs.d/site-lisp/htmlize hides /Users/LooChao/Dropbox/.emacs.d/site-lisp/org-7.4/contrib/lisp/htmlize
/Users/LooChao/Dropbox/.emacs.d/site-lisp/xwl-elisp/xwl-util hides ~/Dropbox/.emacs.d/rc/xwl-util
~/Dropbox/.emacs.d/site-lisp/thumbs hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/thumbs
~/Dropbox/.emacs.d/site-lisp/recentf hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/recentf
~/Dropbox/.emacs.d/site-lisp/iimage hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/iimage
~/Dropbox/.emacs.d/site-lisp/ibuffer hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/ibuffer
~/Dropbox/.emacs.d/site-lisp/table hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/textmodes/table
/Users/LooChao/Dropbox/.emacs.d/site-lisp/remember/remember hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/textmodes/remember
/Users/LooChao/Dropbox/.emacs.d/site-lisp/org-7.4/lisp/org hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org
/Users/LooChao/Dropbox/.emacs.d/site-lisp/org-7.4/lisp/org-xoxo hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-xoxo
/Users/LooChao/Dropbox/.emacs.d/site-lisp/org-7.4/lisp/org-wl hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-wl
/Users/LooChao/Dropbox/.emacs.d/site-lisp/org-7.4/lisp/org-w3m hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-w3m
/Users/LooChao/Dropbox/.emacs.d/site-lisp/org-7.4/lisp/org-vm hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-vm
/Users/LooChao/Dropbox/.emacs.d/site-lisp/org-7.4/lisp/org-timer hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-timer
/Users/LooChao/Dropbox/.emacs.d/site-lisp/org-7.4/lisp/org-table hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-table
/Users/LooChao/Dropbox/.emacs.d/site-lisp/org-7.4/lisp/org-src hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-src
/Users/LooChao/Dropbox/.emacs.d/site-lisp/org-7.4/lisp/org-rmail hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-rmail
/Users/LooChao/Dropbox/.emacs.d/site-lisp/org-7.4/lisp/org-remember hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-remember
/Users/LooChao/Dropbox/.emacs.d/site-lisp/org-7.4/lisp/org-publish hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-publish
/Users/LooChao/Dropbox/.emacs.d/site-lisp/org-7.4/lisp/org-protocol hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-protocol
/Users/LooChao/Dropbox/.emacs.d/site-lisp/org-7.4/lisp/org-plot hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-plot
/Users/LooChao/Dropbox/.emacs.d/site-lisp/org-7.4/lisp/org-mouse hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-mouse
/Users/LooChao/Dropbox/.emacs.d/site-lisp/org-7.4/lisp/org-mobile hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-mobile
/Users/LooChao/Dropbox/.emacs.d/site-lisp/org-7.4/lisp/org-mhe hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-mhe
/Users/LooChao/Dropbox/.emacs.d/site-lisp/org-7.4/lisp/org-mew hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-mew
/Users/LooChao/Dropbox/.emacs.d/site-lisp/org-7.4/lisp/org-macs hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-macs
/Users/LooChao/Dropbox/.emacs.d/site-lisp/org-7.4/lisp/org-mac-message hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-mac-message
/Users/LooChao/Dropbox/.emacs.d/site-lisp/org-7.4/lisp/org-list hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-list
/Users/LooChao/Dropbox/.emacs.d/site-lisp/org-7.4/lisp/org-latex hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-latex
/Users/LooChao/Dropbox/.emacs.d/site-lisp/org-7.4/lisp/org-jsinfo hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-jsinfo
/Users/LooChao/Dropbox/.emacs.d/site-lisp/org-7.4/lisp/org-irc hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-irc
/Users/LooChao/Dropbox/.emacs.d/site-lisp/org-7.4/lisp/org-install hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-install
/Users/LooChao/Dropbox/.emacs.d/site-lisp/org-7.4/lisp/org-inlinetask hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-inlinetask
/Users/LooChao/Dropbox/.emacs.d/site-lisp/org-7.4/lisp/org-info hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-info
/Users/LooChao/Dropbox/.emacs.d/site-lisp/org-7.4/lisp/org-indent hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-indent
/Users/LooChao/Dropbox/.emacs.d/site-lisp/org-7.4/lisp/org-id hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-id
/Users/LooChao/Dropbox/.emacs.d/site-lisp/org-7.4/lisp/org-icalendar hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-icalendar
/Users/LooChao/Dropbox/.emacs.d/site-lisp/org-7.4/lisp/org-html hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-html
/Users/LooChao/Dropbox/.emacs.d/site-lisp/org-7.4/lisp/org-habit hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-habit
/Users/LooChao/Dropbox/.emacs.d/site-lisp/org-7.4/lisp/org-gnus hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-gnus
/Users/LooChao/Dropbox/.emacs.d/site-lisp/org-7.4/lisp/org-freemind hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-freemind
/Users/LooChao/Dropbox/.emacs.d/site-lisp/org-7.4/lisp/org-footnote hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-footnote
/Users/LooChao/Dropbox/.emacs.d/site-lisp/org-7.4/lisp/org-feed hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-feed
/Users/LooChao/Dropbox/.emacs.d/site-lisp/org-7.4/lisp/org-faces hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-faces
/Users/LooChao/Dropbox/.emacs.d/site-lisp/org-7.4/lisp/org-exp hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-exp
/Users/LooChao/Dropbox/.emacs.d/site-lisp/org-7.4/lisp/org-exp-blocks hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-exp-blocks
/Users/LooChao/Dropbox/.emacs.d/site-lisp/org-7.4/lisp/org-docbook hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-docbook
/Users/LooChao/Dropbox/.emacs.d/site-lisp/org-7.4/lisp/org-datetree hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-datetree
/Users/LooChao/Dropbox/.emacs.d/site-lisp/org-7.4/lisp/org-crypt hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-crypt
/Users/LooChao/Dropbox/.emacs.d/site-lisp/org-7.4/lisp/org-compat hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-compat
/Users/LooChao/Dropbox/.emacs.d/site-lisp/org-7.4/lisp/org-colview hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-colview
/Users/LooChao/Dropbox/.emacs.d/site-lisp/org-7.4/lisp/org-clock hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-clock
/Users/LooChao/Dropbox/.emacs.d/site-lisp/org-7.4/lisp/org-bibtex hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-bibtex
/Users/LooChao/Dropbox/.emacs.d/site-lisp/org-7.4/lisp/org-bbdb hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-bbdb
/Users/LooChao/Dropbox/.emacs.d/site-lisp/org-7.4/lisp/org-attach hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-attach
/Users/LooChao/Dropbox/.emacs.d/site-lisp/org-7.4/lisp/org-ascii hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-ascii
/Users/LooChao/Dropbox/.emacs.d/site-lisp/org-7.4/lisp/org-archive hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-archive
/Users/LooChao/Dropbox/.emacs.d/site-lisp/org-7.4/lisp/org-agenda hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/org/org-agenda
/Users/LooChao/Dropbox/.emacs.d/site-lisp/emacs-w3m/attic/rfc2368 hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/mail/rfc2368
~/Dropbox/.emacs.d/site-lisp/pop3 hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/gnus/pop3
/Users/LooChao/Dropbox/.emacs.d/site-lisp/emms/lisp/tq hides /Applications/Documents/Emacs.app/Contents/Resources/lisp/emacs-lisp/tq

Features:
(shadow mail-extr emacsbug tramp-imap tramp-gw tramp-fish tramp-smb
tramp-cache tramp-ftp tramp-cmds tramp auth-source tramp-compat trampver
hl-line multi-isearch sh-script executable cc-mode cc-fonts cc-menus
cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs org-table tabify
sgml-mode org-beamer vc-dispatcher vc-svn diary-lib diary-loaddefs
cal-iso org-wl org-w3m org-vm org-rmail org-mhe org-mew org-irc
org-jsinfo org-infojs org-html org-info org-gnus org-docview org-bibtex
org-bbdb lch-z lch-org yasnippet assoc org-publish org-exp ob-exp
org-exp-blocks org-agenda ob-sqlite ob-sh shell ob-ruby ob-python
ob-gnuplot ob-dot ob-ditaa ob-R org byte-opt warnings bytecomp
byte-compile ob-emacs-lisp ob-tangle ob-ref ob-lob ob-table org-footnote
org-src ob-comint comint ring ob-keys ob ob-eval org-complete pcomplete
org-list org-faces org-compat org-entities org-macs noutline outline
gnus-sum nnoo gnus-group gnus-undo nnmail mail-source gnus-start
gnus-spec gnus-int gnus-range message ecomplete rfc822 mml mml-sec
password-cache mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047
rfc2045 qp ietf-drums mailabbrev gmm-utils mailheader canlock sha1
hex-util hashcash gnus-win gnus gnus-ems nnheader gnus-util netrc
mail-utils org-install lch-shell xwl-calendar cal-china-x cal-china
lunar solar cal-dst holidays hol-loaddefs cal-menu calendar cal-loaddefs
xwl-wubi wubi quail help-mode view lch-dired xwl-util url-extra wdired
ansi-color lch-z-var lch-web w3m-lnum w3m browse-url doc-view jka-compr
image-mode timezone w3m-hist w3m-fb bookmark-w3m w3m-ems w3m-ccl ccl
w3m-favicon w3m-image w3m-proc w3m-util lch-emms emms-mode-line-icon
emms-volume emms-volume-amixer format-spec emms-tag-editor emms-i18n
emms-mark emms-history emms-bookmarks emms-last-played emms-stream-info
emms-metaplaylist-mode emms-lastfm emms-browser emms-playlist-sort
emms-score emms-player-xine emms-player-mpd emms-url url url-proxy
url-privacy url-expand url-methods url-history url-cookie url-util
url-parse url-vars mm-util mail-prsvr mailcap tq emms-playing-time
emms-lyrics time-date emms-streams emms-mode-line emms-cache
emms-info-ogginfo emms-info-mp3info emms-info later-do
emms-playlist-mode emms-player-mplayer emms-player-simple
emms-source-playlist emms-source-file locate emms-setup emms emms-compat
lch-dict wordnet lch-pgm lch-util lch-alias lch-skeleton skeleton
lch-template template lch-mouse lch-binding lch-coding lch-elisp desktop
highlight-symbol hi-lock thingatpt session preview-latex tex-site
auto-loads sunrise-commander sort find-dired auto-complete-config
auto-complete popup dired-x dired-aux dired htmlize browse-kill-ring ido
ibuffer derived uniquify highlight-beyond-fill-column lch-ui-theme
color-theme-zenburn color-theme-jimmy color-theme-railscasts
color-theme-tango2 color-theme-tango color-theme-lch color-theme-arjen
color-theme wid-edit sendmail reporter lch-ui menu-bar+ setnu tabbar
highlight-parentheses easy-mmode paren bar-cursor advice help-fns
advice-preload lch-init time delsel server regexp-opt image-file avoid
lch-env edmacro kmacro cl cl-19 tooltip ediff-hook vc-hooks
lisp-float-type mwheel ns-win easymenu tool-bar dnd fontset image fringe
lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar
mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham
georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese hebrew greek romanian slovak czech european ethiopic
indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple
abbrev loaddefs button minibuffer faces cus-face files text-properties
overlay md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process ns multi-tty
emacs)