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

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

Re: elisp problem!


From: Joakim Hove
Subject: Re: elisp problem!
Date: Wed, 04 Feb 2004 13:58:18 +0100
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

"hans nieuwenhuizen" <address@hidden> writes:

> Dear Sirs, 

> [...] how to solve this, or --- better --- hear what books may contain

Well, first of all it is less than clear what you want to solve. When
asking for help on a forum like this you should try to formulate a
minimal version of your problem.




> but the best I an do is build ( as shown ) a 126 items Vector and extract 
> element [row][column] as [ 6 * row + column]. 
> (** `(aref (( aref Filetypes [row] )) [column] )` is flagged as error **) 

It seems you are trying to push C-throughts down the throat of the
lisp interpreter. Lisp has much more flexible lists (and builtin
hashes could be maybe be usefull).



> ;;; Find type of file
>     (search-forward "Filename")
>     (re-search-forward "\\.\\(\\w*\\)$")    ;;;     (setq postfix "\\1") THIS 
> DOES NOT WORK. Copy One after the other?

I would heavily recommend a function like

   (defun getheader (header)
     ...
   )  

returns the value of the header "header", or nil if it does not exist.


> Where can I find the needed info?  

Well it is all in the manual - but you seem to have started out on a
quite ambitious project. Maybe start with something simpler.


Joakim

-- 
  /--------------------------------------------------------------------\
 / Joakim Hove  / address@hidden  /  (55 5) 84076       |                 \
 | Unifob AS, Avdeling for Beregningsvitenskap (BCCS) | Stabburveien 18 |
 | CMU                                                | 5231 Paradis    |
 \ Thormøhlensgt.55, 5020 Bergen.                     | 55 91 28 18     /
  \--------------------------------------------------------------------/


reply via email to

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