ishi soichi | 1 Jan 01:31 2011
Picon

byte-compile all files in a directory

hi. I would like to implement byte-compile elisp files.  Is there a way to do it for all files in a directory?

I tried "M-x byte-recompile-directory" but it does nothing.  Well, only way I can think of is dired-do-byte-compile...but it still needs to execute one by one.

And also, sometimes byte-compile-file produces errors like,

Byte compile error for /Users/ishidasouichi/.emacs.d/lisp/contrib/lisp/org-collector.el:

I have no idea why.  This elisp file is downloaded from the official site, so no corrections are made.  There should not be any problem in implementing byte-compile at all.

Thanks for your help in advance.


soichi
David Penton | 1 Jan 03:07 2011

Re: ps-print question


Ok, I took Pete Dyballa's advice and set up both ghostscript and aquamacs to add some fonts for ps-print in
aquamacs. It is not working correctly yet, although I have made considerable progress.

I did the following as a result of my research:

I added the Bitstream Vera fonts to my system fonts, and also to the ghostscript Fontmap.GS. This made the
fonts available in ghostscript. I was able to run gs interactively, do a findfont on all of the added fonts,
and output some text using those fonts. So the additions to Fontmap.GS worked. Here are the relevant lines
in Fontmap.GS:

(BitstreamVeraSans-Bold)                   (/Library/Fonts/VeraBd.ttf) ;
(BitstreamVeraSans-BoldOblique)	   (/Library/Fonts/VeraBI.ttf) ;
(BitstreamVeraSans-Oblique)	           (/Library/Fonts/VeraIt.ttf) ;
(BitstreamVeraSans-Roman)               (/Library/Fonts/Vera.ttf) ;
(BitstreamVeraSansMono-Bold)          (/Library/Fonts/VeraMoBd.ttf) ;
(BitstreamVeraSansMono-BoldOb)     (/Library/Fonts/VeraMoBI.ttf) ;
(BitstreamVeraSansMono-Oblique)	    (/Library/Fonts/VeraMoIt.ttf) ;
(BitstreamVeraSansMono-Roman)     (/Library/Fonts/VeraMono.ttf) ;
(BitstreamVeraSerif-Bold)                     (/Library/Fonts/VeraSeBd.ttf) ;

I then I added the following to my aquamacs preference file  (equivalent to .emacs) to make the fonts known to ps-print-buffer:

(setq ps-font-info-database
	    (append
	     '((BitstreamVera             ; the family key
	        (fonts (normal      . "BitstreamVeraSansMono-Roman")
		       (bold               . "BitstreamVeraSansMono-Bold")
		       (italic               . "BitstreamVeraSansMono-Oblique")
		       (bold-italic      . "BitstreamVeraSansMono-BoldOb"))
	        (size . 10.0)
	        (line-height . 23.84)
	        (space-width . 6.31739)
	        (avg-char-width . 6.31739)))
	     ps-font-info-database))

In aquamacs I then set the Ps Font Family customization to "BitstreamVera" to match the above addition to ps-font-info-database.

Then, when I did C-u M-x ps-print-buffer, aquamacs created a postscript file with no complaints.  I looked
at this file, and it did have a bunch of stuff that loads the Bitstream Vera fonts, apparently as desired.

However, the postscript file generates some font-related errors when passed to ghostscript.

I shall not post the offending postscript file, not the ghostscript errors just yet. It seems more likely to
me that there are additional emacs customizations that I may have to set to get this to work correctly. If I
should post these or other info please let me know.

Can anyone point me in the right direction?

TIA,

- Dave -

rusi | 1 Jan 04:32 2011
Picon

Re: font-lock woes

On Jan 1, 7:07 am, "K. Richard Pixley" <r... <at> noir.com> wrote:
> I find font-lock modes to be illegible and highly annoying.  Is there
> any way I can turn them off, completely, across the board, entirely,
> throughout my emacs?
>
> (global-font-lock-mode 0) doesn't seem to work.  I have it in my
> .emacs.el and I'm setting it manually and still when I visit a new file,
> or any of a number of popup buffers arrive, they still have illegible
> font-lock color settings.
>
> --rich

Theres some bug here; certainly a doc-bug.
global-font-lock-mode's doc refers to
turn-on-font-lock-if-desired but that is undocumented

Both in emacs23 and 24

Tim X | 1 Jan 05:33 2011

Re: apropos-documentation fails all the time

"Drew Adams" <drew.adams <at> oracle.com> writes:

>> I am using emacs 23.2.1 from Debian testing.  apropos-do-all 
>> is t.  The error occurs regardless of what I pass to
>> apropos-documentation, interactively typically; e.g.
>>    C-h d .*documentation.* RET
>> gives the error as does any string really, whether a regex or not.
>> I will report a bug if nobody can suggest anything that can alleviate
>> this problem.
>
> Yes, please report a bug. I assume you started from emacs -Q.
>
> With emacs 23.2.1 I cannot reproduce it:
> GNU Emacs 23.2.1 (i386-mingw-nt5.1.2600) of 2010-05-08 on G41R2F1
>
>

I cannot reproduce it either using emacs 24.0.50. Note that Drew's
comment regarding running with -Q and seeing if the problem exists is
critical. This will tell you if it is a bug in the core emacs program or
from something in your .emacs or an additional package that has been
installed

Tim

--

-- 
tcross (at) rapttech dot com dot au

Le Wang | 1 Jan 07:07 2011
Picon

Re: byte-compile all files in a directory

On Sat, Jan 1, 2011 at 8:31 AM, ishi soichi <soichi777 <at> gmail.com> wrote:
hi. I would like to implement byte-compile elisp files.  Is there a way to do it for all files in a directory?
I tried "M-x byte-recompile-directory" but it does nothing.  Well, only way I can think of is dired-do-byte-compile...but it still needs to execute one by one.

<C-h>f
byte-recompile-directory

will give you help with the command.  Read it and pay attention to the "If the *.elc does not exist part"

 
And also, sometimes byte-compile-file produces errors like,

Byte compile error for /Users/ishidasouichi/.emacs.d/lisp/contrib/lisp/org-collector.el:

I have no idea why.  This elisp file is downloaded from the official site, so no corrections are made.  There should not be any problem in implementing byte-compile at all.

I can compile this file fine starting from "emacs -q".

Compiling file c:/Users/Le/cygwin_home/.emacs.d/packages/org-7.4/contrib/lisp/org-collector.el at Sat Jan 01 14:01:45 2011
Entering directory `c:/Users/Le/cygwin_home/.emacs.d/packages/org-7.4/contrib/lisp/'

In org-dblock-write:propview:
org-collector.el:159:31:Warning: assignment to free variable `idpos'
org-collector.el:159:31:Warning: reference to free variable `idpos'

You'll need to share more details if you want further help with this.

--
Le
Elena | 1 Jan 12:39 2011
Picon

Re: How to improve the readability of (any) LISP or any highlevel functional language to the level of FORTH ?

On Jan 1, 8:04 am, girosenth <girose... <at> india.com> wrote:
> Is there a postfix functional language that also gets rid of parens
> and is not as primitive as FORTH or POSTSCRIPT ?

Factor?  http://factorcode.org/

Ugly Ƨǝɒɳ | 1 Jan 04:05 2011

RE: pasting text from other program in emacs

I admit I have really no problem doing this.
Mind you - I use Windows, but I've successfully copied text from the browser and then used the paste button
(as opposed to ctl-Y) and it works quite well for me.
Until recently I was using Xemacs but realizing it may have very little future I've switched to GNU Emacs 23.2.1

-----Original Message-----
From: help-gnu-emacs-bounces+schwa=rogers.com <at> gnu.org
[mailto:help-gnu-emacs-bounces+schwa=rogers.com <at> gnu.org] On Behalf Of Bill O'Connor
Sent: Friday, December 31, 2010 3:40 PM
To: Javier
Cc: help-gnu-emacs <at> gnu.org
Subject: Re: pasting text from other program in emacs

Javier <javier <at> nospam.com> writes:

> Does anybody know how to do to paste text from external programs into 
> an emacs window?  I am using emacs 23.2.1 and debian Squezze.  Is this 
> a new "feature" of emacs 23?  is it because of the usage of gtk 
> libraries?  It happens in X and also in the console if I try to paste 
> text with gpm.

When you drag the original text with the left mouse button and paste it into emacs with the middle button,
what happens?

K. Richard Pixley | 1 Jan 03:07 2011

font-lock woes

I find font-lock modes to be illegible and highly annoying.  Is there 
any way I can turn them off, completely, across the board, entirely, 
throughout my emacs?

(global-font-lock-mode 0) doesn't seem to work.  I have it in my 
.emacs.el and I'm setting it manually and still when I visit a new file, 
or any of a number of popup buffers arrive, they still have illegible 
font-lock color settings.

--rich

K. Richard Pixley | 1 Jan 05:16 2011

display-buffer annoyance

Ordinarily, things that use display-buffer and friends, (eg, the C-x 4 
commands), split my window vertically.

If my window is very wide, they split it horizontally.  While I 
appreciate that this is completely reasonable default behavior, I find 
it annoying and would prefer that M-x compile, M-x debug, M-x grep, and 
friends would always split horizontally.

Is there a configuration for this?  (The only one I find is 
pop-up-frames which isn't quite what I want.)

--rich

girosenth | 1 Jan 08:04 2011

How to improve the readability of (any) LISP or any highlevel functional language to the level of FORTH ?

How to improve the readability of (any) LISP or any highlevel
functional language to the level of FORTH ?

There are many people who have trivia complaints about parens in lisp,
but I dont.

LISP is a prefix notation.

sequence of operations would look like this on operands (ops) :

(f ops (g ops (h ops (j ops (k ops (l ops ))...))))

How do you make it readable ?
How do you home to the center or centers ?

(f (g (h (j (k (l ops)))...)))

is easy to read or

ops l k j h g f

???

Which is linear reading from L->R ? LISP or FORTH ?

AND, if I must break the nested function structure, will I not be
visiting the forbidden territory of imperative programming ?

(setq L (l ops))
(setq K (k L  ))
....
....
(setq F (f G  ))

If I use setq, I am using globals, atleast in elisp.

If I use let*, I have limited options as I am constrained inside the
rigid structure of let*

(let*
  ((L (l ops))
   (K (k L  ))
   ....
   (F (f G  )))

some more
)

Is there a postfix functional language that also gets rid of parens
and is not as primitive as FORTH or POSTSCRIPT ?

What are the syntax advantages of ERLANG, ML, CAML, OCAML, HASKELL,
PROLOG, RUBY over LISP ?

How does one improve readability so that the code is self-commenting ?

girosenth


Gmane