Re: serializing hash tables
16 years
Aidan Kehoe
Ar an dara lá is fiche de mí na Samhain, scríobh Zajcev Evgeny:
> Hello guys, here is my problem that i have no ideas how to solve.
>
> I have really HUGE hash table that builds on (S)XEmacs start from text
> file. That takes really long time and annoys much. What i want is
> somehow serialize this hash table and save to file, so on start i just
> need read this file and deserialize data back to hash table, which i
> believe will be much faster than building it from text file.
>
> is there any known methods to do this task?
(with-temp-buffer
(princ ";; -*- coding: escape-quoted -*-\n")
(princ "(setq desired-hash-table-variable-name ")
(let ((print-readably t))
(prin1 really-huge-hash-table))
(princ ")\n")
(write-file "desired-output-file-name" nil 'escape-quoted))
To load the data, you would just call #'load on the file. Alternatively:
(let ((database-handle (open-database
"desired-output-database-name"
'berkeley-db nil "rw+" #o644)))
(maphash #'(lambda (key value) (put-database
(encode-coding-string key 'koi8-r)
(encode-coding-string value 'koi8-r)
database-handle t))
really-huge-hash-table)
(close-database database-handle))
You would need to call #'get-database and #'decode-coding-string to do the
lookup, though.
> If no, what is the best aproaches you see in order to implement this?
>
> for someone who is interested in details: my hash is table of russian
> words that contains YO[1] and i use this table to perform automatic
> YOfication of the text.
>
> thanks
>
> Footnotes:
> [1] http://en.wikipedia.org/wiki/%D0%81
--
¿Dónde estará ahora mi sobrino Yoghurtu Nghé, que tuvo que huir
precipitadamente de la aldea por culpa de la escasez de rinocerontes?
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta
serializing hash tables
16 years
Zajcev Evgeny
Hello guys, here is my problem that i have no ideas how to solve.
I have really HUGE hash table that builds on (S)XEmacs start from text
file. That takes really long time and annoys much. What i want is
somehow serialize this hash table and save to file, so on start i just
need read this file and deserialize data back to hash table, which i
believe will be much faster than building it from text file.
is there any known methods to do this task? If no, what is the best
aproaches you see in order to implement this?
for someone who is interested in details: my hash is table of russian
words that contains YO[1] and i use this table to perform automatic
YOfication of the text.
thanks
Footnotes:
[1] http://en.wikipedia.org/wiki/%D0%81
--
lg
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta
[Bug: 21.5-b28] cperl-mode fontification aborts or hangs xemacs
16 years
Ed Avis
================================================================
Dear Bug Team!
The following perl code trips up font-lock-mode in cperl-mode:
#!/usr/bin/perl
use warnings;
use strict;
use 5.010;
while (<>) {
s{\A\s*<(\w+)>\1Slot</\1>\s*\z}
To reproduce, run 'xemacs -nw -vanilla test-file' and type or paste in
this code, then
M-x cperl-mode RET
M-x font-lock-mode RET
M-x font-lock-fontify-buffer RET
XEmacs prints in the minibuffer:
Fontifying test... aborted.aborted.
Originally, when I entered this code it caused xemacs to hang so that
no keypress (not even C-x C-x or C-g) would do anything. But that has
been harder to reproduce. I hope that if you fix whatever bug causes
the 'aborted' message then the hang will also be fixed.
I understand that the code is not a correct perl program, but fontification
should cope with that without errors or warnings, since it's to be
expected that the buffer contents will be invalid perl during editing.
Slightly different errors can be caused if you put the buffer in
cperl-mode and font-lock-mode before entering the program text.
================================================================
System Info to help track down your bug:
---------------------------------------
uname -a: Linux xenbuilder1.fedora.redhat.com 2.6.18-53.1.6.el5xen #1 SMP Wed Jan 16 04:10:44 EST 2008 i686 athlon i386 GNU/Linux
./configure '--build=i386-redhat-linux-gnu' '--host=i386-redhat-linux-gnu' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--mandir=/usr/share/man/man1' '--with-archlibdir=/usr/lib/xemacs-21.5-b28/i386-redhat-linux' '--with-moduledir=/usr/lib/xemacs-21.5-b28/i386-redhat-linux/modules' '--with-lispdir=/usr/share/xemacs-21.5-b28/lisp' '--with-etcdir=/usr/share/xemacs-21.5-b28/etc' '--with-system-packages=/usr/share/xemacs' '--without-msw' '--with-mule' '--with-clash-detection' '--with-database=no' '--without-ldap' '--without-postgresql' '--with-mail-locking=lockf' '--with-pop' '--without-hesiod' '--with-pdump' '--with-debug' '--with-error-checking=none' '--with-docdir=/usr!
/lib/xemacs-21.5-b28/doc' '--with-xfs' '--with-athena=next' '--with-menubars=lucid' '--with-widgets=athena' '--with-dialogs=athena' '--with-scrollbars=lucid' '--with-xim=xlib' '--without-wnn' 'build_alias=i386-redhat-linux-gnu' 'host_alias=i386-redhat-linux-gnu' 'target_alias=i386-redhat-linux-gnu' 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -fno-strict-aliasing'
XEmacs 21.5-b28 "fuki" configured for `i386-redhat-linux'.
Compilation Environment and Installation Defaults:
Source code location: /builddir/build/BUILD/xemacs-21.5.28
Installation prefix: /usr
Operating system description file: `s/linux.h'
Machine description file: `m/intel386.h'
Compiler version: gcc (GCC) 4.3.0 20080218 (Red Hat 4.3.0-0.10)
- GCC specs file: specs.
- Compiler command: gcc -Wall -Wno-switch -Wundef -Wsign-compare -Wno-char-subscripts -Wpacked -Wunused-parameter -g -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -fno-strict-aliasing
libc version: glibc-2.7.90-7.i686
Relocating allocator for buffers: no
GNU version of malloc: yes
- Using Doug Lea's new malloc from the GNU C Library.
Window System:
Compiling in support for the X window system:
- X Windows headers location:
- X Windows libraries location:
- Handling WM_COMMAND properly.
Compiling in support for the Athena widget set:
- Athena headers location: X11/neXtaw
- Athena library to link: neXtaw
Using Lucid menubars.
Using Lucid scrollbars.
Using Athena dialog boxes.
Using Athena native widgets.
TTY:
Compiling in support for ncurses.
Compiling in support for GPM (General Purpose Mouse).
Images:
Compiling in support for GIF images (builtin).
Compiling in support for XPM images.
Compiling in support for PNG images.
Compiling in support for JPEG images.
Compiling in support for TIFF images.
Compiling in support for X-Face message headers.
Sound:
Compiling in support for sound (native).
Compiling in support for ALSA (Advanced Linux Sound Architecture).
Databases:
Internationalization:
Compiling in support for Mule (multi-lingual Emacs).
Compiling in support for XIM (X11R5+ I18N input method).
- Using raw Xlib to provide XIM support.
- Using XFontSet to provide bilingual menubar.
Compiling in support for Canna on Mule.
Mail:
Compiling in support for POP mail retrieval.
Compiling in support for "lockf" mail spool file locking method.
Other Features:
Inhibiting IPv6 canonicalization at startup.
Compiling in support for dynamic shared object modules.
Using the new GC mark algorithms (KKCC).
WARNING: ---------------------------------------------------------
WARNING: The new algorithms are experimental. They are enabled by
WARNING: default for this release. Use `--disable-kkcc' to
WARNING: turn it off.
WARNING: ---------------------------------------------------------
Using the new portable dumper.
Dumping into executable.
Compiling in support for extra debugging code.
Load-Path Lisp Shadows:
----------------------
(/usr/share/xemacs/mule-packages/lisp/mule-base/viet-util
/usr/share/xemacs-21.5-b28/lisp/mule/viet-util
/usr/share/xemacs/mule-packages/lisp/mule-base/ethio-util
/usr/share/xemacs-21.5-b28/lisp/mule/ethio-util
/usr/share/xemacs/mule-packages/lisp/mule-base/korea-util
/usr/share/xemacs-21.5-b28/lisp/mule/korea-util
/usr/share/xemacs/mule-packages/lisp/mule-base/japan-util
/usr/share/xemacs-21.5-b28/lisp/mule/japan-util
/usr/share/xemacs/mule-packages/lisp/mule-base/china-util
/usr/share/xemacs-21.5-b28/lisp/mule/china-util
/usr/share/xemacs/mule-packages/lisp/mule-base/cyril-util
/usr/share/xemacs-21.5-b28/lisp/mule/cyril-util
/usr/share/xemacs/xemacs-packages/lisp/build/build-report
/usr/share/xemacs-21.5-b28/lisp/build-report
/usr/share/xemacs/xemacs-packages/lisp/xemacs-base/easy-mmode
/usr/share/xemacs-21.5-b28/lisp/easy-mmode
/usr/share/xemacs/xemacs-packages/lisp/xemacs-base/regexp-opt
/usr/share/xemacs-21.5-b28/lisp/regexp-opt)
Installed XEmacs Packages:
-------------------------
(zenirc ver: 1.16 upstream: 2.112)
(xwem ver: 1.22 upstream: lg(a)xwem.org--2005/xwem--main--2.1--versionfix-1)
(xslt-process ver: 1.12 upstream: 1.2.1)
(xslide ver: 1.09 upstream: 0.2.2)
(xlib ver: 1.14 upstream: lg(a)xwem.org--2005/xlib--main--2.1--version-0)
(xetla ver: 1.01 upstream: steve(a)eicq.org--2005/xetla--main--1.1--version-0)
(xemacs-devel ver: 1.75 upstream: No-Upstream-Ver)
(xemacs-base ver: 2.1 upstream: No-Upstream-Ver)
(x-symbol ver: 1.1 upstream: 4.5.1)
(w3 ver: 1.33 upstream: 4.0pre47)
(vm ver: 7.22 upstream: 7.17)
(viper ver: 1.55 upstream: 3.09)
(view-process ver: 1.13 upstream: 2.4)
(vhdl ver: 1.22 upstream: 3.33.12)
(vc ver: 1.41 upstream: No-Upstream-Ver)
(tramp ver: 1.37 upstream: 2.0.55)
(tpu ver: 1.14 upstream: 4.2X)
(tm ver: 1.38 upstream: No-Upstream-Ver)
(time ver: 1.14 upstream: 1.17)
(textools ver: 1.15 upstream: No-Upstream-Ver)
(text-modes ver: 1.92 upstream: No-Upstream-Ver)
(texinfo ver: 1.3 upstream: No-Upstream-Ver)
(supercite ver: 1.21 upstream: 3.55x3)
(strokes ver: 1.1 upstream: No-Upstream-Ver)
(speedbar ver: 1.28 upstream: 0.14beta4)
(slider ver: 1.15 upstream: 0.3x1)
(sieve ver: 1.18 upstream: No-Upstream-Ver)
(sh-script ver: 1.22 upstream: 2.0f)
(sgml ver: 1.11 upstream: No-Upstream-Ver)
(semantic ver: 1.2 upstream: 1.4.4)
(scheme ver: 1.15 upstream: No-Upstream-Ver)
(ruby-modes ver: 1.02 upstream: 1.6.8)
(rmail ver: 1.14 upstream: No-Upstream-Ver)
(riece ver: 1.23 upstream: 3.1.2)
(reftex ver: 1.34 upstream: 4.21)
(re-builder ver: 1.05 upstream: 1.20)
(python-modes ver: 1.08 upstream: No-Upstream-Ver)
(psgml ver: 1.44 upstream: 1.3.1)
(ps-print ver: 1.11 upstream: 6.5.6)
(prog-modes ver: 2.1 upstream: No-Upstream-Ver)
(pgg ver: 1.06 upstream: 0.1)
(perl-modes ver: 1.09 upstream: No-Upstream-Ver)
(pcomplete ver: 1.04 upstream: 1.1.6)
(pcl-cvs ver: 1.67 upstream: R-2_9_9)
(pc ver: 1.28 upstream: No-Upstream-Ver)
(os-utils ver: 1.39 upstream: No-Upstream-Ver)
(oo-browser ver: 1.04 upstream: 4.08)
(ocaml ver: 0.06 upstream: 3.06)
(net-utils ver: 1.52 upstream: N/A)
(misc-games ver: 1.19 upstream: No-Upstream-Ver)
(mine ver: 1.16 upstream: 1.9)
(mh-e ver: 1.29 upstream: 7.4.2)
(mailcrypt ver: 2.14 upstream: 3.5.8)
(mail-lib ver: 1.79 upstream: No-Upstream-Ver)
(ispell ver: 1.32 upstream: 3.6)
(ilisp ver: 1.34 upstream: 5.12.0)
(igrep ver: 1.14 upstream: 2.111)
(idlwave ver: 1.32 upstream: 5.1)
(ibuffer ver: 1.09 upstream: No-Upstream-Ver)
(hyperbole ver: 1.16 upstream: 4.18)
(hm--html-menus ver: 1.23 upstream: 5.9)
(haskell-mode ver: 1.11 upstream: 2.1)
(gnats ver: 1.17 upstream: 3.101)
(games ver: 1.17 upstream: 1.04)
(fsf-compat ver: 1.15 upstream: No-Upstream-Ver)
(fortran-modes ver: 1.05 upstream: No-Upstream-Ver)
(forms ver: 1.15 upstream: 2.37)
(footnote ver: 1.16 upstream: 0.18x)
(eudc ver: 1.39 upstream: 1.32)
(eterm ver: 1.17 upstream: No-Upstream-Ver)
(eshell ver: 1.1 upstream: 2.4.1)
(escreen ver: 1.01 upstream: 1.16)
(erc ver: 0.21 upstream: Version 5.1.2 Revision: 1.796.2.6)
(emerge ver: 1.11 upstream: No-Upstream-Ver)
(eieio ver: 1.05 upstream: 0.17)
(efs ver: 1.33 upstream: 1.23)
(edt ver: 1.13 upstream: No-Upstream-Ver)
(edit-utils ver: 2.37 upstream: No-Upstream-Ver)
(ediff ver: 1.68 upstream: 2.75)
(edebug ver: 1.22 upstream: No-Upstream-Ver)
(ecrypto ver: 0.2 upstream: 2.0)
(ecb ver: 1.22 upstream: 2.31)
(docbookide ver: 0.08 upstream: 0.1)
(dired ver: 1.17 upstream: 7.13)
(dictionary ver: 1.16 upstream: 1.8)
(debug ver: 1.18 upstream: No-Upstream-Ver)
(cookie ver: 1.15 upstream: No-Upstream-Ver)
(clearcase ver: 1.1 upstream: /main/laptop/165)
(cc-mode ver: 1.45 upstream: 5.30.10)
(calendar ver: 1.32 upstream: No-Upstream-Ver)
(calc ver: 1.26 upstream: 2.02fX3)
(c-support ver: 1.22 upstream: No-Upstream-Ver)
(build ver: 1.14 upstream: 2.02)
(bbdb ver: 1.32 upstream: 2.35)
(auctex ver: 1.47 upstream: 11.55)
(apel ver: 1.32 upstream: 10.6)
(ada ver: 1.14 upstream: 2.27)
(mule-base ver: 1.49 upstream: No-Upstream-Ver)
(lookup ver: 1.15 upstream: 1.0)
(leim ver: 1.24 upstream: No-Upstream-Ver)
(latin-unity ver: 1.2 upstream: 1.20)
(egg-its ver: 1.27 upstream: No-Upstream-Ver)
(edict ver: 1.16 upstream: 0.9.9)
Installed Modules:
-----------------
Features:
--------
(mail-abbrevs xemacsbug shadow sendmail rfc822 wid-edit font-lock
cperl-mode cus-face efs-cu zenirc-autoloads xwem-autoloads
xslt-process-autoloads xslide-autoloads xlib-autoloads xetla-autoloads
xemacs-devel-autoloads xemacs-base-autoloads x-symbol-autoloads
w3-autoloads vm-autoloads viper-autoloads view-process-autoloads
vhdl-autoloads vc-autoloads tramp-autoloads tpu-autoloads tm-autoloads
time-autoloads textools-autoloads text-modes-autoloads
texinfo-autoloads supercite-autoloads strokes-autoloads
speedbar-autoloads slider-autoloads sieve-autoloads
sh-script-autoloads sgml-autoloads semantic-autoloads scheme-autoloads
ruby-modes-autoloads rmail-autoloads riece-autoloads reftex-autoloads
re-builder-autoloads python-modes-autoloads psgml-autoloads
ps-print-autoloads prog-modes-autoloads pgg-autoloads
perl-modes-autoloads pcomplete-autoloads pcl-cvs-autoloads
pc-autoloads os-utils-autoloads oo-browser-autoloads ocaml-autoloads
net-utils-autoloads misc-games-autoloads mine-autoloads mh-e-autoloads
mailcrypt-autoloads mail-lib-autoloads ispell-autoloads
ilisp-autoloads igrep-autoloads idlwave-autoloads ibuffer-autoloads
hyperbole-autoloads hm--html-menus-autoloads haskell-mode-autoloads
gnus-autoloads gnats-autoloads games-autoloads fsf-compat-autoloads
fortran-modes-autoloads forms-autoloads footnote-autoloads
eudc-autoloads eterm-autoloads eshell-autoloads escreen-autoloads
erc-autoloads emerge-autoloads eieio-autoloads efs-autoloads
edt-autoloads edit-utils-autoloads ediff-autoloads edebug-autoloads
ecrypto-autoloads ecb-autoloads docbookide-autoloads dired-autoloads
dictionary-autoloads debug-autoloads cookie-autoloads
clearcase-autoloads cc-mode-autoloads calendar-autoloads
calc-autoloads c-support-autoloads build-autoloads bbdb-autoloads
auctex-autoloads apel-autoloads ada-autoloads mule-base-autoloads
lookup-autoloads leim-autoloads latin-unity-autoloads
egg-its-autoloads edict-autoloads modules-autoloads mule-autoloads
auto-autoloads auto-show fontl-hooks canna-leim tibetan slovenian
czech romanian lao devanagari indian ccl code-cmds gutter-items
menubar-items x-menubar mode-motion mouse behavior itimer auto-save
lisp-mode easymenu easy-mmode iso8859-1 page buff-menu lib-complete
loadhist cus-file derived newcomment rsz-minibuf env text-props frame
obsolete cus-start custom widget cl-extra cl cl-19 packages backquote
unicode lucid-scrollbars cut-buffer lucid-menubars athena-dialogs x
c-balloon-help tty-frames tty toolbar native-sound alsa-sound
scrollbar unix-processes multicast network-streams subprocesses
modules menu-accelerator-support menubar md5 xemacs xim mule gutter
tiff png gif jpeg xface xpm xbm lisp-float-type file-coding linux
dialog devices window-system base64)
Recent keystrokes:
-----------------
} RET ESC x p e r l - m o SPC RET ESC x f o n SPC l
SPC m SPC RET C-x k RET ESC x C-g C-g C-x k RET y e
s RET ESC x r e p o r t - x e m a c s - b u g C-g ESC
x a b o SPC i SPC BS u SPC - BS x e m SPC RET ESC x
r e p o t y BS BS r t - x e m a c s - b u g RET
Recent messages (most recent first):
-----------------------------------
Warning:
Defaulting to the GNU Emacs-derived `sendmail.el' mail client. This facility,
while part of base XEmacs, is heinously underfeatured, and not going to get
better in the medium term. We include it so that bug reports work without
packages; we suggest that you choose and/or install one of the other mail
clients from packages if you're doing something other than M-x
report-xemacs-bug , or even if you are reporting bugs regularly.
To choose a package from those installed, click on "Options" ->
"Internet" -> "Compose Mail With ..." and decide on one from the
list. Gnus and VM are full-featured and have active user communities.
To disable this warning and stick with the old behavior, you can explicitly
initialize `mail-user-agent' to 'sendmail-user-agent .
Loading xemacsbug...done
Loading xemacsbug...
Loading about...done
Loading about...
Making completion list...
Quit
Quit
Quit
Command attempted to use minibuffer while in minibuffer
Fontifying test... aborted.aborted.
End of `s{ ... }
--
Ed Avis <eda(a)waniasset.com>
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta
Re: babel: problem with the output
16 years
Uwe Brauer
>>>>> "Stephen" == Stephen J Turnbull <stephen(a)xemacs.org> writes:
> Uwe Brauer writes:
>> (with-current-buffer tmp
>> ;;shrug: we asume utf8
>> ;; (mm-decode-coding-region (point-min) (point-max) 'utf-8)
>> (copy-to-buffer current (point-min) (point-max)))))
> That can't work. `url-retrieve' returns a buffer containing exact
> binary contents of the document, no decoding or parsing. Uncomment
> the decoding call. In XEmacs 21.5 you can just use
> `decode-coding-region' and maybe avoid pulling in mm stuff from
> Gnus.
Right and this function also exists in Xemacs 21.4 excellent so the
following trivial modifications saves the day:
(decode-coding-region (point-min) (point-max) 'utf-8)
(copy-to-buffer current (point-min) (point-max)))))
I send this "patch" to the author, thanks a lot to all of you!!
Uwe
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta
Proposal - functions for access to desktop information
16 years
Jonathan Marten
I've been trying to improve support for using XEmacs on window systems
with mutiple virtual desktops, in order to be able to do things like
"open a new XEmacs frame on the current desktop if there isn't one
there already, otherwise uniconify/raise an existing one". Triggering
some Lisp code via gnuclient is no problem, but there doesn't seem to
be an easy way to find out the desktop that a frame is currently on
(accessed via X11 window properties). I've tried capturing and
parsing the output of xwininfo/xprop, but this is not easy because the
X window ID (returned by x-window-id) is not the XEmacs frame's
top-level window.
So I'd like to suggest some new built-in functions, to provide access
to the desktop information:
`x-on-desktop'
Built-in function:
arguments: (&optional FRAME)
Get the ID of the desktop on which the FRAME is displayed, by reading
the _NET_WM_DESKTOP property of its top level window.
The format of this depends on the desktop system and window manager
in use. With an ICCCM-compliant window manager the result returned
is an integer representing the desktop (0 being the first), t for
all desktops, or nil if the desktop cannot be determined.
`x-current-desktop'
Built-in function:
arguments: (&optional FRAME)
Get the ID of the current desktop for the display on which the FRAME
appears, by reading the _NET_CURRENT_DESKTOP property of the root window.
The format of this depends on the desktop system and window manager
in use. With an ICCCM-compliant window manager the result returned
is an integer representing the current desktop (0 being the first),
or nil if the desktop cannot be determined.
These can then be accessed as frame properties 'on-desktop and
'current-desktop respectively.
Could these be added to the XEmacs core? I've developed a patch
(currently against 21.5.27) to add these functions, will post that if
these suggestions are acceptable.
Regards,
--
Jonathan Marten http://www.keelhaul.demon.co.uk
Twickenham, UK jjm2(a)keelhaul.demon.co.uk
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta
Posting delays due to "Invalid from address"
16 years
Stephen J. Turnbull
Zajcev Evgeny writes:
> BTW, my first reply wasn't delivered to xemacs-beta@
> because of invalid from address i used, so i will repost it.
Note that this is a *delay*, not a failure. It will go through
eventually, but it takes time until the postmaster (currently, just
me, volunteers welcome) gets to looking at the Mailman spamtrap.
Also, there's no harm subscribing multiple addresses, because you can
set ones you don't want xemacs-beta traffic to go to "no mail" in the
Mailman user preferences URL. This includes *all* your posting
addresses if you like to read via Gmane (which many do).
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta
Re: Proposal - functions for access to desktop information
16 years
Aidan Kehoe
Ar an fichiú lá de mí na Samhain, scríobh Zajcev Evgeny:
> "Stephen J. Turnbull" <stephen(a)xemacs.org> writes:
>
> > Aidan Kehoe writes:
> >
> > > They look reasonable to me. They should return strings, though,
> >
> > An alternative would be a cons of two integers, as in the time
> > functions.
> >
> > I wonder how/if xlib.el deals with this?
>
> it uses floats afaik, or just pretends that xemacsen integers have 32
> bits ;)
>
> BTW, my first reply wasn't delivered to xemacs-beta@
> because of invalid from address i used, so i will repost it.
>
> Here is example how you could use it to access desktop information:
>
> (let ((xdpy (XOpenDisplay (getenv "DISPLAY"))))
> (unwind-protect
> (XGetWindowProperty
> xdpy (XDefaultRootWindow xdpy)
> (XInternAtom xdpy "_NET_CURRENT_DESKTOP")
> nil nil nil XA-cardinal)
> (XCloseDisplay xdpy)))
That’s not workable for implementing what Jonathan wants to do, though. This
is from one of my current sessions, started in a screen(1) pseudo-tty, with
a gnuclient X11 window:
(getenv "DISPLAY")
=> nil ;; This means we can’t trust getenv
(selected-device)
=> #<x-device on ":0.0" 0x1400f016>
(XOpenDisplay (device-connection (selected-device)))
=> (error "Network error: connection failed, \"Connection refused\", \"bonbon\", \"X-bonbon:0\"")
;; That was because the connection wasn’t a TCP connection, it was a local
;; unix connection.
--
¿Dónde estará ahora mi sobrino Yoghurtu Nghé, que tuvo que huir
precipitadamente de la aldea por culpa de la escasez de rinocerontes?
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta
Re: babel: problem with the output
16 years
Aidan Kehoe
Ar an chéad lá is fiche de mí na Samhain, scríobh Stephen J. Turnbull:
> Uwe Brauer writes:
>
> > (with-current-buffer tmp
> > ;;shrug: we asume utf8
> > ;; (mm-decode-coding-region (point-min) (point-max) 'utf-8)
> > (copy-to-buffer current (point-min) (point-max)))))
>
> That can't work. `url-retrieve' returns a buffer containing exact
> binary contents of the document, no decoding or parsing. Uncomment
> the decoding call. In XEmacs 21.5 you can just use
> `decode-coding-region' and maybe avoid pulling in mm stuff from Gnus.
Aye, what he said.
XEmacs #'decode-coding-region destroys the markers, which is why some
packages wrap it. That’s irrelevant here, though, no markers are used in the
temp buffer.
--
¿Dónde estará ahora mi sobrino Yoghurtu Nghé, que tuvo que huir
precipitadamente de la aldea por culpa de la escasez de rinocerontes?
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta
XEmacs Packages have been pre-released (2008-11-20-13)
16 years
Norbert Koch
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hey there everyone.
I have just added the following packages to the 'Pre-Releases'
directory:
New Packages in Pre-Release:
===========================
slider-1.16-pkg.tar.gz upstream version: 0.3x1
Previously Announced Packages Still in Pre-Release:
==================================================
apel-1.33-pkg.tar.gz upstream version: 10.6
auctex-1.51-pkg.tar.gz upstream version: 11.84
calendar-1.38-pkg.tar.gz upstream version: none
cedet-common-1.01-pkg.tar.gz upstream version: 1.0pre4
dired-1.19-pkg.tar.gz upstream version: 7.16
easypg-1.02-pkg.tar.gz upstream version: 0.0.16
ediff-1.76-pkg.tar.gz upstream version: 2.75
edit-utils-2.40-pkg.tar.gz upstream version: none
edt-1.14-pkg.tar.gz upstream version: none
efs-1.34-pkg.tar.gz upstream version: 1.24
eieio-1.06-pkg.tar.gz upstream version: 1.0pre4
elib-1.13-pkg.tar.gz upstream version: 1.0
erc-0.22-pkg.tar.gz upstream version: Version 5.1.2 Revision: 1.796.2.6
eshell-1.16-pkg.tar.gz upstream version: 0fc80a3f6bb3bb59f42e9ff83cc8b89bf90fe658
eudc-1.40-pkg.tar.gz upstream version: 1.32
fsf-compat-1.17-pkg.tar.gz upstream version: none
games-1.18-pkg.tar.gz upstream version: 1.04
general-docs-1.05-pkg.tar.gz upstream version: none
gnus-1.93-pkg.tar.gz upstream version: 5.10.8
guided-tour-0.52-pkg.tar.gz upstream version: none
hm--html-menus-1.24-pkg.tar.gz upstream version: 5.9
hyperbole-1.17-pkg.tar.gz upstream version: 5.0
igrep-1.16-pkg.tar.gz upstream version: 2.111
latin-euro-standards-1.08-pkg.ta upstream version: 1.08
leim-1.27-pkg.tar.gz upstream version: none
locale-1.28-pkg.tar.gz upstream version: none
mail-lib-1.80-pkg.tar.gz upstream version: none
mh-e-1.31-pkg.tar.gz upstream version: 7.4.2
mule-base-1.53-pkg.tar.gz upstream version: none
mule-ucs-1.17-pkg.tar.gz upstream version: 0.84
net-utils-1.56-pkg.tar.gz upstream version: N/A
oo-browser-1.05-pkg.tar.gz upstream version: 4.08
os-utils-1.41-pkg.tar.gz upstream version: none
pcl-cvs-1.68-pkg.tar.gz upstream version: R-2_9_9
pcomplete-1.05-pkg.tar.gz upstream version: 1.1.6
perl-modes-1.14-pkg.tar.gz upstream version: none
prog-modes-2.17-pkg.tar.gz upstream version: none
ps-print-1.12-pkg.tar.gz upstream version: 6.5.6
psgml-1.45-pkg.tar.gz upstream version: 1.3.2
python-modes-1.10-pkg.tar.gz upstream version: 426
scheme-1.17-pkg.tar.gz upstream version: none
sh-script-1.24-pkg.tar.gz upstream version: 2.0f
skk-1.24-pkg.tar.gz upstream version: 10.62a
speedbar-1.29-pkg.tar.gz upstream version: 1.0pre4
text-modes-1.95-pkg.tar.gz upstream version: none
tm-1.39-pkg.tar.gz upstream version: none
tramp-1.40-pkg.tar.gz upstream version: 2.0.56
vc-1.45-pkg.tar.gz upstream version: none
viper-1.64-pkg.tar.gz upstream version: 3.09
vm-8.07-pkg.tar.gz upstream version: 8.0.12-devo
w3-1.35-pkg.tar.gz upstream version: 4.0pre47
x-symbol-1.11-pkg.tar.gz upstream version: 4.5.1
xemacs-base-2.18-pkg.tar.gz upstream version: none
xemacs-devel-1.78-pkg.tar.gz upstream version: none
xetla-1.02-pkg.tar.gz upstream version: steve(a)eicq.org--2005/xetla--main--1.1--version-0
Detailed Changes:
================
- ------- ChangeLog Entries from xemacs-packages/slider/ChangeLog -------
2008-11-20 Norbert Koch <viteno(a)xemacs.org>
* Makefile (VERSION): XEmacs package 1.16 released.
2008-11-13 Steve Youngs <steve(a)sxemacs.org>
* slider.el: Add compatibility code for SXEmacs.
(slider-new): Use it.
(slider-set): Use it.
(slider-activate-arrow-or-bar): Use it.
Installing These:
================
Manually:
- --------
1) Download the packages that you want to install from:
/ftp.xemacs.org:/pub/xemacs/beta/experimental/packages/
2) Unpack them to: [1]
/usr/local/lib/xemacs/xemacs-packages/
3) Re-start XEmacs.
Using XEmacs Package Tools (XEmacs 21.[245].x):
- ----------------------------------------------
1) Tools -> Packages -> Add Download Site -> Pre-Releases
2) Tools -> Packages -> List and Install
3) Select the packages you wish to install (there are brief
instructions at the bottom of the packages buffer).
4) Packages -> Install/Remove Selected
5) Re-start XEmacs.
Using XEmacs Package Tools (XEmacs 21.1.14):
- -------------------------------------------
1) Options -> Manage Packages -> Add Download Site -> Pre-Releases
2) Options -> Manage Packages -> List and Install
3 - 5) As per XEmacs 21.[245].x.
norbert - XEmacs Package Release Manager.
Footnotes:
[1] Note: Mule packages should be installed into:
/usr/local/lib/xemacs/mule-packages/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iD8DBQFJJVqOgu3ywdHdhM0RAschAKDOkPaM8Hb9AV+XUENU+KPBU0YVNwCgydqN
L+vGQHHWn9rGliKBT2S7JDA=
=N9LC
-----END PGP SIGNATURE-----
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta
Re: babel: problem with the output
16 years
Aidan Kehoe
Ar an naoú lá déag de mí na Samhain, scríobh Uwe Brauer:
> >>>>> "Aidan" == Aidan Kehoe <kehoea(a)parhasard.net> writes:
>
> > Ar an naoú lá déag de mí na Samhain, scríobh Uwe Brauer:
>
> >> > I don't know. It depends on the details of how babel.el works, and
> >> > I'm not going to have time to look at it this week.
> >>
> >> Right you are travelling? May somebody else, Aidan :) ? Will come up
> >> with and advice
>
> > Try
>
> > (setq-default buffer-file-coding-system 'utf-8)
> I did
>
> > Check that it’s worked by evaluating the following in *scratch*:
>
> > (with-temp-buffer
> > (message "b-f-c-s is %S" buffer-file-coding-system))
>
> works
>
> But babel does not display the translation correctly in the *babel*
> buffer it translates côte as cÃ�'te
> instead of Küste.
Bugger.
Wait, it translates côte as cÃ�'te, not kcÃ�'ste?
And it works on GNU? How much code is XEmacs-specific? Something seems to be
double-encoding the string, which should be happening on GNU as well, unless
the code is XEmacs-specific.
--
¿Dónde estará ahora mi sobrino Yoghurtu Nghé, que tuvo que huir
precipitadamente de la aldea por culpa de la escasez de rinocerontes?
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta