font, faces woes, texexp etc
14 years
Uwe Brauer
Hello
The following setting works in lisp mode
(let ((lisp-regexp-4 " ?\\(\\<\\*[a-zA-Z]*\\*\\>\\)"))
(setq lisp-font-lock-keywords-1
(append lisp-font-lock-keywords-1
(list (list lisp-regexp-4 0
'font-lock-log-warn-face t))))
(setq lisp-font-lock-keywords-2
(append lisp-font-lock-keywords-2
(list (list lisp-regexp-4 0
'font-lock-log-warn-face t)))))
Every word surrounded by an * gets highlighted by the
font-lock-log-warn-face.
I tried something similar for LaTeX mode namely
(add-to-list 'font-latex-keywords ;Version-1.14
'(" ?\\(\\<\\*[a-zA-Z]*\\*\\>\\)" 1 'font-lock-comment-warn-face append t))
(add-to-list 'font-latex-keywords-1 ;Version-1.14
'(" ?\\(\\<\\*[a-zA-Z]*\\*\\>\\)" 1 'font-lock-comment-warn-face append t))
(add-to-list 'font-latex-keywords-2 ;Version-1.14
'(" ?\\(\\<\\*[a-zA-Z]*\\*\\>\\)" 1 'font-lock-comment-warn-face append t))
But it does not work the words surrounded by * don't get
highlighted. Unfortunately the docstring of
fonts-latex-keyword does not give much information.
Can anybody help me?
Uwe Brauer
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/mailman/listinfo/xemacs-beta
emacs' visual-line-mode equivalent in xemacs 21.5 (beta29)
14 years
Giacomo Boffi
visual-line-mode is an interactive compiled Lisp function in
`simple.el'.
(visual-line-mode &optional ARG)
Redefine simple editing commands to act on visual lines, not logical lines.
This also turns on `word-wrap' in the buffer.
--
sapete contare fino a venticinque?
Olimpia Milano Jugoplastika Split Partizan Beograd
Roberto Premier Duska Ivanovic Zarko Paspalj
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/mailman/listinfo/xemacs-beta
interactive function which could call an interactive function with arguments.
14 years
Uwe Brauer
Hello
That is most likely very elementary but I don't get it to
work.
I have an interactive function with some input arguments.
(defun bbdb-select-dict (ch)
"This function allows select the different ispell dicts+abbrev table."
(interactive "c1: deutsch, 2: british, 3: american, 4: castellano 5: francais| ")
(setq ch (downcase ch))
(call-interactively (cond ((eql ch ?1) #'my-new-set-german)
((eql ch ?2) #'my-new-set-british)
((eql ch ?2) #'my-new-set-american)
((eql ch ?2) #'my-new-set-castellano)
((eql ch ?3) #'my-new-set-francais)
(t (error 'args-out-of-range '(1 2 3 4 5 ch)))))))
Now I want to have a new interactive function, bbdb-check-dict
- which let you decide to call bbdb-select-dict, or
- calls bbdb-select-dict if a variable is set.
So I tried for 1.
(defun bbdb-check-dict (ch)
"Just check whether we have set the dict."
(interactive "c")
(if (y-or-n-p (format "Did you set the dict? "))
(message "Dict seems to be set.")
(bbdb-select-dict ch)))
But this does not work.
I want to avoid to have the (interactive "c1: deutsch, 2: british, 3: american, 4: castellano 5: francais| ")
because then I am forced to type an select *before* the functions
body is executed.
For 2 I am faced with the same problem
(defun bbdb-check-dict (ch)
(interactive "c")
(unless ispell-dictionary
(bbdb-select-dict ch)))
Does not work neither.
What do I miss?
Thanks
Uwe Brauer
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/mailman/listinfo/xemacs-beta
Re: Latest ecb and cedet!?
14 years
Eric M. Ludlam
On 09/15/2010 03:56 AM, Mats Lidell wrote:
> Hi Eric
>
> You wrote:
>
> Eric> Hopefully CEDET won't pose much trouble compiling against
> Eric> XEmacs. I'm happy to help things along if needed.
>
> I tried to build it and got this error message.
>
> ...
> Compiling /home/matsl/work/cedet/cedet_xemacs/semantic/semantic-grammar.el...
> While compiling toplevel forms in file /home/matsl/work/cedet/cedet_xemacs/semantic/semantic-grammar.el:
> !! error (("Bad input grammar"))
> Compiling /home/matsl/work/cedet/cedet_xemacs/semantic/semantic-grammar.el...
>>> Error occurred processing semantic-grammar.el: Bad input grammar
>
> I know this is not much to go on but maybe the type of error tells you
> something.
>
> I picked the latest version from CVS to work on. Maybe that was a
> mistake?
The latest CVS is a fine place to start with CEDET. What you reported
is the same problem I ran into. If you use what did compile to start up
XEmacs with a typical install (thus loading lots of .el files instead of
.elc files) you can compile the grammars using EDE. A side effect is
that I have no idea how to debug this, nor really what the error means.
That's where I need some help from an XEmacs expert.
Of course, I was using XEmacs 21.5 which is probably older.
Thanks!
Eric
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/mailman/listinfo/xemacs-beta
Greek accented characters
14 years
Nick Tzanos
Hello,
I have a problem inputting greek accented characters. Although if I select
the menu option to show hello in the various languages, accented characters
show ok, whenever I try to input them directly I get a message stating that
the character is not defined (where in the place of character I get the
unicode value of the accented greek character I am trying to input).
I do not have any similar problems with any other x applications.
Please help.
Regards,
Nick Tzanos
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/mailman/listinfo/xemacs-beta
Re: multiple redefinitions of #'values
14 years
Aidan Kehoe
Ar an naoú lá déag de mí Méan Fómhair, scríobh Mike Kupfer:
> [...] I'm trying to merge those changes into my MH-E 8.0.3 workspace, and
> I'm wondering whether I really need the sexp in all 3 files. mh-index.el
> and mh-seq.el both have
>
> (require 'mh-e)
>
> so would it be sufficient to just put the eval-when-compile in mh-e.el?
No. Depending on the order of The (require 'mh-e) may load a compiled
version of the file, in which context the (eval-when-compile ...) expression
would not be executed. This expression in mh-e.el should work, though:
(eval-and-compile
(when (and (featurep 'xemacs) (eq 'list (symbol-function 'values))
(cl-compiling-file))
(define-compiler-macro values (&rest args)
`(list ,@args))
(define-compiler-macro values-list (list)
list)))
I haven’t tested it. One way to verify whether it did work would be to make
sure both these expressions give nil, once you’ve loaded the compiled
mh-index.elc and mh-seq.elc:
(find 'values (compiled-function-constants (symbol-function 'mh-thread-prune-subject)))
(find 'values (compiled-function-constants (symbol-function 'mh-index-evaluate))))
Best,
Aidan
--
“Apart from the nine-banded armadillo, man is the only natural host of
Mycobacterium leprae, although it can be grown in the footpads of mice.”
-- Kumar & Clark, Clinical Medicine, summarising improbable leprosy research
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/mailman/listinfo/xemacs-beta
Re: Native Windows Build Failure
14 years
Aidan Kehoe
Ar an t-ochtú lá déag de mí Méan Fómhair, scríobh Vin Shelton:
> Aidan et al,
>
> On Thu, Sep 16, 2010 at 9:10 PM, Vin Shelton <acs(a)alumni.princeton.edu> wrote:
> > Thanks for keeping things going. With the latest 21.5 sources, I'm
> > getting the following errors when building a native Windows executable
> > with VS6.
>
> The problem is similar to previous ones. EXTERNAL_LIST_LOOP_3 needs
> to be the first statement in the block. An inelegant potential patch
> is attached.
Thanks, Vin! I’ve committed a slightly different change, but it’s very good
to see these problems. Again, I don’t see the error with Visual Studio 2005;
are there extra flags you are turning on?
--
“Apart from the nine-banded armadillo, man is the only natural host of
Mycobacterium leprae, although it can be grown in the footpads of mice.”
-- Kumar & Clark, Clinical Medicine, summarising improbable leprosy research
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/mailman/listinfo/xemacs-beta