Jérôme | 1 Jun 2006 10:38
Favicon

Re: Emacs 22 (CVS) and ada-find-**-references

Hello

I found a workaround : I added a change-directory to build_dir before
to start gnat find. I will try to go deeper inside compilation-mode
later.
See diff file below.

As there were quite few answers, it would be interesting to know what
IDE is the one you prefer to work with gnat/gcc on Windows (GPS ?,
Emacs/ada-mode ?, ...)

Please feel free to give your opinion.

*** c:/emacs-22/lisp/progmodes/ada-xref.el.orig	Mon May 01 13:44:02
2006
--- c:/emacs-22/lisp/progmodes/ada-xref.el	Wed May 31 14:19:53 2006
***************
*** 895,901 ****
  		(concat "'\"" (substring entity 1 -1) "\"'"))
  	    entity))
  	 (switches (ada-xref-get-project-field 'gnatfind_opt))
! 	 (command (concat "gnat find " switches " "
  			  quote-entity
                            (if file (concat ":"
(file-name-nondirectory file)))
                            (if line (concat ":" line))
--- 895,903 ----
  		(concat "'\"" (substring entity 1 -1) "\"'"))
  	    entity))
  	 (switches (ada-xref-get-project-field 'gnatfind_opt))
(Continue reading)

B. T. Raven | 1 Jun 2006 17:29

Re: length of query-replace-history list


"Kevin Rodgers" <ihs_4664 <at> yahoo.com> wrote in message
news:mailman.2489.1149100587.9609.help-gnu-emacs <at> gnu.org...
> B. T. Raven wrote:
> > Is it possible to set the maximum length of this variable to 2? I want
to
> > write the from and to strings either to an association list or to a
buffer
> > with one dotted pair per line. Maybe this is equivalent to repeatedly
> > setqing it to nil. ??
>
> ,----[ C-h v history-length RET ]
> | history-length is a variable defined in `C source code'.
> | Its value is 30
> |
> | Documentation:
> | *Maximum length for history lists before truncation takes place.
> | A number means that length; t means infinite.  Truncation takes place
> | just after a new element is inserted.  Setting the history-length
> | property of a history variable overrides this default.
> |
> | You can customize this variable.
> |
> | [back]
> `----
>
> So (put 'query-replace-history 'history-length 2)
>
> --
> Kevin
(Continue reading)

Stefan Reichör | 1 Jun 2006 21:44
Picon

emacs as terminal application for a serial interface

Hi!

I use an embedded device connected to a linux PC via the serial interface.
I can use minicom to communicate with that device.

Now I'd like to use command line terminal program that can be used for the emacs comint mode.

What I'd like to achieve is, displaying all incoming data from /dev/ttyS0 and sending
data to /dev/ttyS0 via emacs.

Does anyone have an idea, how I that can be accomplished?

Stefan.
Kevin Rodgers | 1 Jun 2006 22:57
Picon
Favicon

Re: Emacs 22 (CVS) and ada-find-**-references

Jérôme wrote:
> I found a workaround : I added a change-directory to build_dir before
> to start gnat find. I will try to go deeper inside compilation-mode
> later.

Since ada-xref.el defines ada-cd-command and ada-command-separator,
that's a reasonable fix.  But the usual way to affect compilation-start
and friends is to let-bind default-directory.

--

-- 
Kevin
Kevin Rodgers | 1 Jun 2006 23:36
Picon
Favicon

Re: length of query-replace-history list

B. T. Raven wrote:
> Thanks, Kevin. Now that I understand what's going on, it doesn't seem like
> it's worth while just to save a few hundred bytes. I had an idea to save
> the qrh into a saved association list, something like:
> 
> (setq sal (cons (cons  (cadr query-replace-history) (car
> query-replace-history)) sal))

You could use desktop-save-mode and add query-replace-history to
desktop-globals-to-save.

> The idea is to re-load this later and run query replace in batch mode on
> other files. I have no idea how to do this in detail but it seems possible
> and it would be very useful to me. Maybe instead of setting it to 2, I'll
> set it to t, and then then figure out how to manipulate the resulting flat
> list of strings after an hours' long session of query-replacing.

You could also set desktop-base-file-name to specify a file just for
this specific purpose, and save just the last elements of
query-replace-history.

,----[ C-h v desktop-save-hook RET ]
| desktop-save-hook is a variable defined in `desktop.el'.
| Its value is nil
|
| Documentation:
| Normal hook run before the desktop is saved in a desktop file.
| This is useful for truncating history lists, for example.
|
| You can customize this variable.
(Continue reading)

Stephen Berman | 2 Jun 2006 00:52
Picon

isearch-yank-line and field text property

The following seems like a bug to me; if so, I'll report it as such.
But maybe it's a feature of the field property or isearch-yank-line
that I don't understand; if so, I'd appreciate a pointer to
documentation (I couldn't find anything apposite in either the Emacs
or Elisp manuals).

1. Type the following three lines in an empty buffer:
test
test
test
2. Now put the cursor at the beginning of the second line and type this:
`M-: (add-text-properties (point) (point-max) '(field test))'
3. Now type `C-s C-y'.  The minibuffer contains the prompt "I-search:"
but the line is not yanked into the search string, and in fact nothing
else happens at all as long as you keep typing `C-y'.  

This happens only with isearch-yank-line, and only at that position;
any other isearch command (including isearch-yank-word) at that
position works fine.  Moreover, isearch-yank-line from any following
position also works fine, although they also have the field property;
isearch-yank-line from any preceding position works up to that
position and then stops as above.

This happens in both CVS Emacs and in Emacs 21.3.  The two Emacsen
differ in the return value of field-string called with the cursor over
the first character with the field property: in Emacs 21.3 it is "",
while in CVS Emacs it is "test^J".

Steve Berman
(Continue reading)

Tim Johnson | 2 Jun 2006 05:00

imenu-generic-expression elements (confusing)

Hello:
What follows is an excerpt from c-h v imenu-generic-expression:
"
The value should be an alist with elements that look like this:
 (MENU-TITLE REGEXP INDEX)
or like this:
 (MENU-TITLE REGEXP INDEX FUNCTION ARGUMENTS...)
"
Now follows the value for this as local to a python file:
("\\(^[ 	]*\\(class[ 	]+[a-zA-Z0-9_]+\\)\\([
]*\\((\\([a-zA-Z0-9_,. 	\n]\\)*)\\)?\\)[ 	]*:\\)\\|\\(^[ 	]*\\(def[
]+\\([a-zA-Z0-9_]+\\)[ 	]*(\\([^:#]*\\))\\)[ 	]*:\\)" 2 8)

I'm frankly confused.... what I see above is a sexp composed of:
1) A string that is a regexp (appears to properly identify
   python code as I would expect)
2) an integer
3) another integer

My impression is that the buffer-local value of the variable is
very different from what the documentation says it should be.
Can anyone comment on this?

Thanks
tim

--

-- 
Tim Johnson <tim <at> johnsons-web.com>
      http://www.alaska-internet-solutions.com
(Continue reading)

Gene | 2 Jun 2006 05:28

New documentstyles

I hqve not been able to create new classes when using texniccenter,
such as those for specific journal submissions. The journal provides a
.cls file and .clo files for download, but I cannot seem to put them
anywhere that Latex can find them.  Is there omething that I can do?
Gene McCall
Gene | 2 Jun 2006 05:34

Re: New documentstyles


Gene wrote:
> I hqve not been able to create new classes when using texniccenter for windows.
> such as those for specific journal submissions. The journal provides a
> .cls file and .clo files for download, but I cannot seem to put them
> anywhere that Latex can find them.  Is there something that I can do?
> Gene McCall
李伟 | 2 Jun 2006 01:21
Picon
Favicon

How to set up font size?

The font size of my emacs(mandriva 2006) is too small. How can I change it in the ".emacs" file? Thanks!

__________________________________________________
赶快注册雅虎超大容量免费邮箱?
http://cn.mail.yahoo.com

_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs <at> gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

Gmane