bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#9009: 24.0.50; format does not zero pad hex numbers higher than 9


From: Remco van 't Veer
Subject: bug#9009: 24.0.50; format does not zero pad hex numbers higher than 9
Date: Wed, 06 Jul 2011 14:22:52 +0200

Here's an example:

  (format "%04x"  9) ; "0009"
  (format "%04x" 10) ; "   a"

In GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.22.0)
 of 2011-06-01 on dfontaine-laptop, modified by Debian
 (emacs-snapshot package, version 1:20110531-1+ubuntu1)
Windowing system distributor `The X.Org Foundation', version 11.0.10900000
configured using `configure  '--build' 'i686-linux-gnu' '--host' 
'i686-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' 
'--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' 
'--mandir=/usr/share/man' '--with-pop=yes' 
'--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/24.0.50/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.0.50/site-lisp:/usr/share/emacs/site-lisp'
 '--without-compress-info' '--with-x=yes' '--with-x-toolkit=gtk' 
'--with-imagemagick=yes' 'build_alias=i686-linux-gnu' 
'host_alias=i686-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g 
-O2' 'LDFLAGS=-g -Wl,--as-needed' 'CPPFLAGS=''

Important settings:
  value of $LC_ALL: nil
  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: utf-8-unix
  default enable-multibyte-characters: t

Major mode: C/l

Minor modes in effect:
  diff-auto-refine-mode: t
  erc-track-mode: t
  erc-track-minor-mode: t
  erc-ring-mode: t
  erc-networks-mode: t
  erc-netsplit-mode: t
  erc-menu-mode: t
  erc-match-mode: t
  erc-log-mode: t
  erc-list-mode: t
  erc-pcomplete-mode: t
  erc-button-mode: t
  erc-fill-mode: t
  erc-stamp-mode: t
  erc-autojoin-mode: t
  erc-irccontrols-mode: t
  erc-noncommands-mode: t
  erc-move-to-prompt-mode: t
  erc-readonly-mode: t
  show-paren-mode: t
  display-time-mode: t
  display-battery-mode: t
  shell-dirtrack-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-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t
  abbrev-mode: t

Recent input:
m e SPC e d i t f n s . c <return> C-x C-f s r C-g 
C-x b <return> <return> <switch-frame> <switch-frame> 
C-x C-g C-x b <return> C-x C-f s r <return> e d <return> 
C-s f o r m a t C-s C-s C-s C-s C-s <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> C-s e m a c s _ f o r m 
a t SPC C-s C-s <down> <up> M-> <prior> <prior> <prior> 
<prior> <prior> <prior> <prior> <prior> <prior> C-s 
f o r m a t SPC C-s C-s C-s C-s C-s C-s C-s C-s C-s 
C-s C-s C-s C-s C-s C-s C-s C-s <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> C-x 1 <next> <next> 
<next> <next> <next> <next> <next> <next> <next> <next> 
<next> <next> <prior> <prior> <prior> <prior> <prior> 
<prior> <prior> <prior> <prior> <prior> <prior> <prior> 
C-s p a d d C-s C-s <down> <down> <down> C-s <down> 
<left> <left> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <up> <up> <up> <up> <up> 
<up> C-s C-s C-s C-s C-s C-s C-s C-r C-r C-r C-r C-r 
C-r <prior> <prior> <up> <up> <up> <up> <up> <up> <up> 
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up> 
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up> 
<up> <up> <up> <up> <up> <up> <up> <up> <up> <prior> 
<prior> <prior> <prior> <prior> <prior> <up> <up> <up> 
C-s ' 0 ' C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s 
C-s C-s C-s C-s <switch-frame> <switch-frame> M-x r 
e p o <tab> r <tab> b u <tab> <return>

Recent messages:
Mark set
find-function-C-source: The C source file editfns.c is not available
Mark set
Quit
find-function-C-source: The C source file editfns.c is not available
Loading vc-bzr...done
Mark saved where search started [2 times]
Mark set
Mark saved where search started [4 times]
Making completion list...

Load-path shadows:
/home/remco/.emacs.d/packages/yaml-mode/yaml-mode hides 
/home/remco/.emacs.d/elpa/yaml-mode-0.0.7/yaml-mode
/home/remco/.emacs.d/elpa/inf-ruby-2.2.1/inf-ruby hides 
/usr/share/emacs-snapshot/site-lisp/ruby1.8-elisp/inf-ruby
/home/remco/.emacs.d/elpa/ruby-mode-1.1/ruby-mode hides 
/usr/share/emacs-snapshot/site-lisp/ruby1.8-elisp/ruby-mode
/home/remco/.emacs.d/elpa/prolog-1.22/prolog hides 
/usr/share/emacs-snapshot/site-lisp/prolog-el/prolog
/home/remco/.emacs.d/elpa/prolog-1.22/prolog hides 
/usr/share/emacs/site-lisp/prolog-el/prolog
/usr/share/emacs-snapshot/site-lisp/nethack/nethack hides 
/usr/share/emacs/site-lisp/nethack/nethack
/usr/share/emacs-snapshot/site-lisp/nethack/nethack-keys hides 
/usr/share/emacs/site-lisp/nethack/nethack-keys
/usr/share/emacs-snapshot/site-lisp/nethack/nethack-cmd hides 
/usr/share/emacs/site-lisp/nethack/nethack-cmd
/usr/share/emacs-snapshot/site-lisp/nethack/nethack-api hides 
/usr/share/emacs/site-lisp/nethack/nethack-api
/usr/share/emacs-snapshot/site-lisp/nethack/nethack-compat hides 
/usr/share/emacs/site-lisp/nethack/nethack-compat
/usr/share/emacs-snapshot/site-lisp/nethack/nethack-tiles hides 
/usr/share/emacs/site-lisp/nethack/nethack-tiles
/usr/share/emacs-snapshot/site-lisp/nethack/nethack-keys-dvorak hides 
/usr/share/emacs/site-lisp/nethack/nethack-keys-dvorak
/usr/share/emacs-snapshot/site-lisp/nethack/slashem-tiles hides 
/usr/share/emacs/site-lisp/nethack/slashem-tiles
/home/remco/.emacs.d/elpa/haskell-mode-2.8.0/haskell-cabal hides 
/usr/share/emacs/site-lisp/haskell-mode/haskell-cabal
/home/remco/.emacs.d/elpa/haskell-mode-2.8.0/haskell-hugs hides 
/usr/share/emacs/site-lisp/haskell-mode/haskell-hugs
/home/remco/.emacs.d/elpa/haskell-mode-2.8.0/haskell-doc hides 
/usr/share/emacs/site-lisp/haskell-mode/haskell-doc
/home/remco/.emacs.d/elpa/haskell-mode-2.8.0/haskell-indentation hides 
/usr/share/emacs/site-lisp/haskell-mode/haskell-indentation
/home/remco/.emacs.d/elpa/haskell-mode-2.8.0/haskell-decl-scan hides 
/usr/share/emacs/site-lisp/haskell-mode/haskell-decl-scan
/home/remco/.emacs.d/elpa/haskell-mode-2.8.0/haskell-mode hides 
/usr/share/emacs/site-lisp/haskell-mode/haskell-mode
/home/remco/.emacs.d/elpa/haskell-mode-2.8.0/haskell-indent hides 
/usr/share/emacs/site-lisp/haskell-mode/haskell-indent
/home/remco/.emacs.d/elpa/haskell-mode-2.8.0/haskell-c hides 
/usr/share/emacs/site-lisp/haskell-mode/haskell-c
/home/remco/.emacs.d/elpa/haskell-mode-2.8.0/haskell-simple-indent hides 
/usr/share/emacs/site-lisp/haskell-mode/haskell-simple-indent
/home/remco/.emacs.d/elpa/haskell-mode-2.8.0/haskell-site-file hides 
/usr/share/emacs/site-lisp/haskell-mode/haskell-site-file
/home/remco/.emacs.d/elpa/haskell-mode-2.8.0/haskell-font-lock hides 
/usr/share/emacs/site-lisp/haskell-mode/haskell-font-lock
/home/remco/.emacs.d/elpa/haskell-mode-2.8.0/inf-haskell hides 
/usr/share/emacs/site-lisp/haskell-mode/inf-haskell
/home/remco/.emacs.d/elpa/haskell-mode-2.8.0/haskell-ghci hides 
/usr/share/emacs/site-lisp/haskell-mode/haskell-ghci
/usr/share/emacs-snapshot/site-lisp/jde/setnu hides 
/usr/share/emacs-snapshot/site-lisp/emacs-goodies-el/setnu
/home/remco/.emacs.d/elpa/haskell-mode-2.8.0/haskell-cabal hides 
/usr/share/emacs/24.0.50/site-lisp/haskell-mode/haskell-cabal
/home/remco/.emacs.d/elpa/haskell-mode-2.8.0/haskell-decl-scan hides 
/usr/share/emacs/24.0.50/site-lisp/haskell-mode/haskell-decl-scan
/home/remco/.emacs.d/elpa/haskell-mode-2.8.0/haskell-indent hides 
/usr/share/emacs/24.0.50/site-lisp/haskell-mode/haskell-indent
/home/remco/.emacs.d/elpa/haskell-mode-2.8.0/haskell-site-file hides 
/usr/share/emacs/24.0.50/site-lisp/haskell-mode/haskell-site-file
/home/remco/.emacs.d/elpa/haskell-mode-2.8.0/inf-haskell hides 
/usr/share/emacs/24.0.50/site-lisp/haskell-mode/inf-haskell
/home/remco/.emacs.d/elpa/haskell-mode-2.8.0/haskell-font-lock hides 
/usr/share/emacs/24.0.50/site-lisp/haskell-mode/haskell-font-lock
/home/remco/.emacs.d/elpa/haskell-mode-2.8.0/haskell-ghci hides 
/usr/share/emacs/24.0.50/site-lisp/haskell-mode/haskell-ghci
/home/remco/.emacs.d/elpa/haskell-mode-2.8.0/haskell-c hides 
/usr/share/emacs/24.0.50/site-lisp/haskell-mode/haskell-c
/home/remco/.emacs.d/elpa/haskell-mode-2.8.0/haskell-indentation hides 
/usr/share/emacs/24.0.50/site-lisp/haskell-mode/haskell-indentation
/home/remco/.emacs.d/elpa/haskell-mode-2.8.0/haskell-mode hides 
/usr/share/emacs/24.0.50/site-lisp/haskell-mode/haskell-mode
/home/remco/.emacs.d/elpa/haskell-mode-2.8.0/haskell-doc hides 
/usr/share/emacs/24.0.50/site-lisp/haskell-mode/haskell-doc
/home/remco/.emacs.d/elpa/haskell-mode-2.8.0/haskell-simple-indent hides 
/usr/share/emacs/24.0.50/site-lisp/haskell-mode/haskell-simple-indent
/home/remco/.emacs.d/elpa/haskell-mode-2.8.0/haskell-hugs hides 
/usr/share/emacs/24.0.50/site-lisp/haskell-mode/haskell-hugs
/usr/share/emacs/24.0.50/site-lisp/debian-startup hides 
/usr/share/emacs/site-lisp/debian-startup
/usr/share/emacs-snapshot/site-lisp/cedet-common/ezimage hides 
/usr/share/emacs/24.0.50/lisp/ezimage
/usr/share/emacs/24.0.50/site-lisp/flim/hex-util hides 
/usr/share/emacs/24.0.50/lisp/hex-util
/usr/share/emacs-snapshot/site-lisp/speedbar/speedbar hides 
/usr/share/emacs/24.0.50/lisp/speedbar
/usr/share/emacs/24.0.50/site-lisp/flim/md4 hides 
/usr/share/emacs/24.0.50/lisp/md4
/usr/share/emacs-snapshot/site-lisp/speedbar/sb-image hides 
/usr/share/emacs/24.0.50/lisp/sb-image
/home/remco/.emacs.d/custom hides /usr/share/emacs/24.0.50/lisp/custom
/usr/share/emacs-snapshot/site-lisp/speedbar/dframe hides 
/usr/share/emacs/24.0.50/lisp/dframe
/home/remco/.emacs.d/elpa/prolog-1.22/prolog hides 
/usr/share/emacs/24.0.50/lisp/progmodes/prolog
/home/remco/.emacs.d/elpa/ruby-mode-1.1/ruby-mode hides 
/usr/share/emacs/24.0.50/lisp/progmodes/ruby-mode
/usr/share/emacs/24.0.50/site-lisp/flim/sasl hides 
/usr/share/emacs/24.0.50/lisp/net/sasl
/usr/share/emacs/24.0.50/site-lisp/flim/hmac-def hides 
/usr/share/emacs/24.0.50/lisp/net/hmac-def
/usr/share/emacs/24.0.50/site-lisp/flim/sasl-ntlm hides 
/usr/share/emacs/24.0.50/lisp/net/sasl-ntlm
/usr/share/emacs/24.0.50/site-lisp/flim/sasl-cram hides 
/usr/share/emacs/24.0.50/lisp/net/sasl-cram
/usr/share/emacs/24.0.50/site-lisp/flim/hmac-md5 hides 
/usr/share/emacs/24.0.50/lisp/net/hmac-md5
/usr/share/emacs/24.0.50/site-lisp/flim/sasl-digest hides 
/usr/share/emacs/24.0.50/lisp/net/sasl-digest
/usr/share/emacs/24.0.50/site-lisp/flim/ntlm hides 
/usr/share/emacs/24.0.50/lisp/net/ntlm
/usr/share/emacs-snapshot/site-lisp/eieio/chart hides 
/usr/share/emacs/24.0.50/lisp/emacs-lisp/chart
/usr/share/emacs-snapshot/site-lisp/eieio/eieio-custom hides 
/usr/share/emacs/24.0.50/lisp/emacs-lisp/eieio-custom
/usr/share/emacs-snapshot/site-lisp/eieio/eieio hides 
/usr/share/emacs/24.0.50/lisp/emacs-lisp/eieio
/usr/share/emacs-snapshot/site-lisp/eieio/eieio-speedbar hides 
/usr/share/emacs/24.0.50/lisp/emacs-lisp/eieio-speedbar
/usr/share/emacs-snapshot/site-lisp/eieio/eieio-base hides 
/usr/share/emacs/24.0.50/lisp/emacs-lisp/eieio-base
/usr/share/emacs-snapshot/site-lisp/eieio/eieio-opt hides 
/usr/share/emacs/24.0.50/lisp/emacs-lisp/eieio-opt
/usr/share/emacs-snapshot/site-lisp/cedet-common/cedet hides 
/usr/share/emacs/24.0.50/lisp/cedet/cedet
/usr/share/emacs/24.0.50/site-lisp/ede/ede hides 
/usr/share/emacs/24.0.50/lisp/cedet/ede
/usr/share/emacs-snapshot/site-lisp/cedet-common/mode-local hides 
/usr/share/emacs/24.0.50/lisp/cedet/mode-local
/usr/share/emacs-snapshot/site-lisp/cedet-common/cedet-files hides 
/usr/share/emacs/24.0.50/lisp/cedet/cedet-files
/usr/share/emacs-snapshot/site-lisp/cedet-common/inversion hides 
/usr/share/emacs/24.0.50/lisp/cedet/inversion
/usr/share/emacs-snapshot/site-lisp/semantic/semantic hides 
/usr/share/emacs/24.0.50/lisp/cedet/semantic

Features:
(shadow vc-bzr semantic-c semantic-c-by semantic-lex-spp tramp-cache
tramp-sh emacsbug goto-addr cedet-edebug debug finder-inf clojure-mode
rails-controller-minor-mode rails-migration-minor-mode mule-util
rails-mailer-minor-mode rails-fixture-minor-mode
rails-unit-test-minor-mode org-wl org-w3m org-vm org-rmail org-mhe
org-mew org-irc org-jsinfo org-infojs org-html org-exp ob-exp
org-exp-blocks org-agenda org-info org-gnus org-docview org-bibtex
org-bbdb ibuf-ext ibuffer rails-model-minor-mode rect dired-aux
two-column iso-transl rails-lib-minor-mode flow-fill
rails-helper-minor-mode gnus-kill dabbrev eieio-opt help-mode css-mode
view find-file-in-project find-dired magit diff-mode log-edit pcvs-util
add-log magit-key-mode multi-isearch ebnf2ps ps-print ps-def lpr
semantic-edit rails-view-minor-mode sb-html sb-texinfo semantic-html
w3m-form w3m doc-view image-mode w3m-hist w3m-fb w3m-ems w3m-ccl ccl
w3m-favicon w3m-image w3m-proc w3m-util qp bbdb-gui erc-track erc-ring
erc-networks erc-netsplit erc-menu erc-match erc-log erc-pcomplete
erc-button erc-fill erc-stamp erc-join erc-goodies erc erc-backend
erc-compat term ehelp electric vc-git rails-functional-test-minor-mode
rails-snippets-feature dired tramp tramp-compat tramp-loaddefs ffap
mailalias smtpmail jka-compr sort smiley gnus-cite gnus-async gnus-bcklg
gnus-draft gnus-ml url-cache url-http url-gw url-auth url-handlers rot13
disp-table nnrss nndraft nnmh utf-7 gnus-agent gnus-srvr gnus-score
score-mode nnvirtual gnus-msg nnfolder gnus-cache bbdb-gnus gnus-art
mm-uu mml2015 epg-config mm-view mml-smime smime dig network-stream
starttls nnimap parse-time tls utf7 netrc nntp semantic-el
semantic-bovine bovine-debug semantic-debug highlight-parentheses
paredit ses unsafep project-local-variables highlight-current-line
uniquify paren time battery color-theme-remvee sb-info info color-theme
midnight edit-server server remember org-remember org-datetree org
ob-emacs-lisp ob-tangle ob-ref ob-lob ob-table org-footnote org-src
ob-comint ob-keys ob ob-eval org-complete pcomplete org-list org-faces
org-compat org-entities org-macs noutline outline cal-menu calendar
cal-loaddefs whitespace autotest shell yaml-path slime-repl slime
apropos hideshow pp mm-url url url-proxy url-privacy url-expand
url-methods url-history url-cookie url-util url-parse auth-source
password-cache url-vars mailcap bbdb-vcard-import vcard bbdb-snarf
mail-extr bbdb-com bbdb timezone nnir gnus-sum gnus-group gnus-undo
nnmail mail-source gnus-start gnus-spec gnus-int gnus-range message
sendmail format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode
mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils
mailheader gnus-win nnoo gnus gnus-ems nnheader gnus-util time-date
mail-utils mm-util mail-prsvr pretty-lambdada yaml-mode ses-extras
rtex-mode rhtml-mode rhtml-navigation rhtml-sgml-hacks rhtml-ruby-hook
sgml-mode rhtml-erb rhtml-fonts rfcview-browsing rails rails-refactoring
rails-shoulda rails-spec rails-lib-layout rails-features
rails-controller-layout rails-model-layout rails-ui rails-log rails-ws
rails-test rails-rake rails-scripts rails-find rails-navigation
rails-cmd-proxy rails-ruby flymake align rails-core rails-lib
rails-project rails-compat snippet inflections predictive-prog-mode
flyspell ispell find-recursive ansi-color sql grep ruby-electric
inf-ruby ruby-mode graphviz-dot-mode gist xml espresso ido json
newcomment elein android-mode edmacro kmacro clojure-test-mode-autoloads
clojure-mode-autoloads find-file-in-project-autoloads
haskell-mode-autoloads highlight-parentheses-autoloads
inf-ruby-autoloads lua-mode-autoloads magit-autoloads paredit-autoloads
project-local-variables-autoloads prolog-autoloads ruby-mode-autoloads
rvm-autoloads sass-mode-autoloads haml-mode-autoloads
slime-repl-autoloads slime-autoloads yaml-mode-autoloads package
tabulated-list ecb-autoloads jde etags jde-annotations jde-open-source
senator which-func warnings jde-class jde-parse-class jde-import
jde-java-font-lock byte-opt bytecomp byte-compile cconv macroexp
jde-which-method jde-java-grammar jde-wiz jde-complete semantic-idle
eldoc jde-plugins executable browse-url jde-gen tempo jde-run jde-jdb
jde-bug jde-dbs jde-dbo regress jde-db jde-parse sregex jde-imenu
semantic-imenu imenu semantic-java semantic-doc thingatpt avltree
stack-m elib-node semantic-sb cus-edit cus-start cus-load cc-mode
cc-fonts cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs
jde-help jde-widgets tree-widget jde-custom jde-project-file cedet
cedet-contrib-load speedbar-load semantic-load semantic-ia-sb
semantic-analyze semantic-ctxt semantic-format semantic-cb semantic-sort
semanticdb-find semanticdb-el semanticdb-search semantic-find semanticdb
semantic-util-modes semantic-util semantic semantic-lex semantic-tag
working fame semantic-fw mode-local find-func derived eieio-load
ede-speedbar ede ede-load eieio-speedbar speedbar sb-image ezimage
dframe assoc eieio-custom ede-source eieio-base cogre-load cedet-load
jde-autoload jde-util arc-mode archive-mode efc wid-edit jde-compile
compile beanshell easymenu comint regexp-opt ring eieio inversion cl
w3m-load emacs-goodies-el emacs-goodies-custom emacs-goodies-loaddefs
easy-mmode cedet-autogen advice advice-preload autoload help-fns
bbdb-autoloads tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win
x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar
rfn-eshadow timer select scroll-bar 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 minibuffer loaddefs button faces
cus-face files text-properties overlay sha1 md5 base64 format env
code-pages mule custom widget hashtable-print-readable backquote
make-network-process dbusbind dynamic-setting font-render-setting
move-toolbar gtk x-toolkit x multi-tty emacs)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]