Re: org-persist asking for temp-file encoding every time

2024-04-08 Thread Brian Elmegaard
On 06-04-2024 14:44, Ihor Radchenko wrote: You need to redirect where Emacs looks for Org mode: (add-to-list 'load-path "/path/to/org-mode/lisp") Somewhere early in your init.el. Thank you for the hint. It seems to be working without the issue in the development version. Brian

Re: org-persist asking for temp-file encoding every time

2024-04-06 Thread Brian Elmegaard
On 20-03-2024 10:14, Ihor Radchenko wrote: org-persist forces encoding in Org 9.7-pre (development version). May you try it and let us know if your problem is still present there? I have been looking into this, but it is not clear to me how to override emacs' builtin org-mode, and run another

org-persist asking for temp-file encoding every time

2024-03-22 Thread Brian Elmegaard
Hi I am experiencing a small issue with an org-file. Every time I close it I am prompted with: Select coding system (default utf-8): when org-mode is saving a *Temp file*. In the *Messages* buffer it says: org-persist: Writing to

org-persist asking for temp-file encoding every time

2024-03-19 Thread Brian Elmegaard
Hi I am experiencing a small issue with an org-file. Every time I close it I am prompted with: Select coding system (default utf-8): when org-mode is saving a *Temp file*. In the *Messages* buffer it says: org-persist: Writing to

Emacs hangs when spell checking

2021-03-20 Thread Brian Elmegaard
Hi I have Emacs 27.1 on Windows, and I have just upgraded auctex to 13.0.4 with elpa. I have installed aspell as described in https://emacs.stackexchange.com/a/45752 and it works smoothly, except in .tex files. When I M-x ispell-buffer emacs hangs after a few moments and it does become

Re: LaTeX package completion not working properly

2020-04-23 Thread Brian Elmegaard
: Brian Elmegaard writes: Hi Brian, This is the output of C-x C-e (TeX-macro-global) RET ("c:/Users/brel/AppData/Local/Programs/MiKTeX 2.9/tex/" "c:/Users/brel/AppData/Local/Programs/MiKTeX 2.9/bibtex/bst/") so this looks correct, I guess. Yes, looks good to me, too. I

Re: LaTeX package completion not working properly

2020-04-20 Thread Brian Elmegaard
PATH%. On the other hand I do not have the environment variable SYSTEXMF set. MikTeX does not use this. Is that a problem? Best regards, Brian On 18-04-2020 10:21, Tassilo Horn wrote: Brian Elmegaard writes: Hi Brian, It also works for LaTeX commands and environments as soon as I have

Re: LaTeX package completion not working properly

2020-04-20 Thread Brian Elmegaard
Hi Ikumi Thank you for the reply. Actually, I missed semicolon in the path. So it is actually there. Best regards, Brian On 18-04-2020 12:47, Ikumi Keita wrote: Hi Brian, Brian Elmegaard writes: I am trying to get auctex to complete installed LaTeX packages when inserting C-RET

LaTeX package completion not working properly

2020-04-14 Thread Brian Elmegaard
Hi I am trying to get auctex to complete installed LaTeX packages when inserting C-RET \usepackage. Unfortunately, I only get the preview package no matter, what I have tried so far. I have Emacs 26.2 and auctex 12.2.0 on Windows 10 running MikTeX 2.9. Completion is working for LaTeX

Re: [h-e-w] Opening emacs from bat file fails on path with unicode characters

2014-02-23 Thread Brian Elmegaard
Eli, thanks for the reply. It seems that short file names is the answer. Brian

[h-e-w] Opening emacs from bat file fails on path with unicode characters

2014-02-22 Thread Brian Elmegaard
Hi I am trying to automate emacs opening with a batfile. This ..\emacs-24.3\bin\runemacs.exe -l ../emacs/default.el --find-file=../simul/hello/hello.dna if the path to emacs-24.3 is only ascii characters. If the path has unicode characters windows closes emacs with A fatal error has occured.

[h-e-w] Emacs delay on windows

2014-02-16 Thread Brian Elmegaard
Hi, I finally found the way to remove a small annoyance in emacs 24. I constantly have a few seconds delay when opening files, compiling, and other file operations. It seems that this is caused by some network interaction and it can be removed by stopping the Netlogon service. This is

Re: [h-e-w] Usign emacs as default program in windows 7

2012-11-07 Thread Brian Elmegaard
It seems that the reason for my problems was some registry keys remaining after a previous EmacsW32 installation. Thanks for your comments. Brian Den 05-11-2012 21:31, Brian Elmegaard skrev: Den 05-11-2012 15:24, Matthew Fidler skrev: http://www.emacswiki.org/emacs

Re: [h-e-w] Usign emacs as default program in windows 7

2012-11-05 Thread Brian Elmegaard
Den 05-11-2012 15:24, Matthew Fidler skrev: http://www.emacswiki.org/emacs/EmacsMsWindowsIntegration Thanks. It does not work, propbably for the same reasons as the Explorer way. I would like to be able to do file associations from Explorer. Also if you wish you can use EmacsW32 or

[h-e-w] Usign emacs as default program in windows 7

2012-11-04 Thread Brian Elmegaard
Hi, I am trying to make emacsclientw the default program for opening different file types, e.g. fortran source with the extension .for, in windows 7. In order to do this I rightclick on a file and chosse 'Open with. I choose browse and select the emacsclientw.exe which I have unzipped in

Questions on use of gcc and external libraries

2012-04-15 Thread Brian Elmegaard
Hi, I have not been successful in searching for documentation of the questions below, so I hope to have answers here. I have recently been introduced to open modelica and I now try to include an existing dll. I have it running if I place the dll in c:\windows\system and interface lib and

Re: Questions on use of gcc and external libraries

2012-04-15 Thread Brian Elmegaard
Thansk for the quick answer. Is there any documentation of the cflags option? Brian Den 15-04-2012 15:37, Adrian Pop skrev: Hi, Comments inline ... On 2012-04-15 14:43, Brian Elmegaard wrote: Hi, I have not been successful in searching for documentation of the questions below, so I hope

Re: Questions on use of gcc and external libraries

2012-04-15 Thread Brian Elmegaard
One more comment: Den 15-04-2012 15:37, Adrian Pop skrev: 3: It seems to be easier to compile if dynamic linking is done instead of static in gcc. What is the reason for using static? Because if is static then the generated .exe is independent of where is it placed or what PATH is set and we

[AUCTeX] Re: Missing latex macros

2010-11-28 Thread Brian Elmegaard
Thanks for your efforts Ralf. Den 27-11-2010 16:19, Ralf Angeli skrev: Load a LaTeX file and then try again. This works to some extent: (let ((TeX-kpathsea-path-delimiter nil)) (TeX-search-files (append TeX-macro-private TeX-macro-global) '(sty) t t)) (preview a0size abstract natmove

[AUCTeX] Re: Missing latex macros

2010-11-28 Thread Brian Elmegaard
Den 28-11-2010 15:06, Ralf Angeli skrev: Don't you load tex-mik.el? That should have done this automatically, unless you customized the variable. Ah, that's it. No I did not. I just did as said on http://www.gnu.org/software/auctex/download-for-windows.html. 1. Download 2. Unpack 3. Use.

[AUCTeX] Re: Missing latex macros

2010-11-25 Thread Brian Elmegaard
Den 23-11-2010 22:48, Ralf Angeli skrev: Maybe this is a stupid question, but are there actually LaTeX style files below the directories you specified in `TeX-macro-global'? I think I have done it correctly. I have TeX-macro-global is a variable defined in `tex.el'. Its value is (C:/Program

[AUCTeX] Re: Missing latex macros

2010-11-25 Thread Brian Elmegaard
Den 25-11-2010 20:54, Ralf Angeli skrev: Another thing you could try is to put the following code into the *scratch* buffer (after AUCTeX was loaded) and type `C-j' with point after the last closing paren. (let ((TeX-kpathsea-path-delimiter nil)) (TeX-search-files (append TeX-macro-private

[AUCTeX] Re: Missing latex macros

2010-11-21 Thread Brian Elmegaard
Den 19-11-2010 21:33, Ralf Angeli skrev: Does `M-: (TeX-search-files (append TeX-macro-private TeX-macro-global) '(sty) t t)RET' return a comprehensive list of files? No, it only gives (preview) Regards, Brian ___ auctex mailing list

[AUCTeX] Re: Missing latex macros

2010-11-18 Thread Brian Elmegaard
Den 17-11-2010 08:53, Brian Elmegaard skrev: Any hints? I would very much like to get auctex working. Is there a way I can debug the functionality of completion of cls, sty and bst filenames? Do anyone else use auctex on ms windows? Regards, Brian

[AUCTeX] Re: Missing latex macros

2010-11-16 Thread Brian Elmegaard
completion of latex macros, but only preview.sty which is in the auctex directory. Any hints? Brian Den 16-11-2010 21:57, Ralf Angeli skrev: * Brian Elmegaard (2010-11-15) writes: I have GNU Emacs 23.2.1 (i386-mingw-nt5.1.2600) of 2010-05-08 on G41R2F1 obtained from http://ftp.gnu.org/gnu/emacs

[AUCTeX] Missing latex macros

2010-11-15 Thread Brian Elmegaard
Hi I have GNU Emacs 23.2.1 (i386-mingw-nt5.1.2600) of 2010-05-08 on G41R2F1 obtained from http://ftp.gnu.org/gnu/emacs/windows/ and auctex for windows auctex-11.86-e23.2-msw.zip from http://www.gnu.org/software/auctex/download-for-windows.html. I have unpacked emacs to c:\Program

[h-e-w] Status of EmacsW32

2010-11-09 Thread Brian Elmegaard
Hi, I am a bit confused about the status of EmacsW32. As far as I understand the development of the W32 add-on has stopped, but new Emacs versions are still released with the add-ons. However, I have been using the patched version and it seems that only the unpatched version is updated with

[h-e-w] Re: Please test w32-shell-execute

2009-11-28 Thread Brian Elmegaard
Lennart Borgman lennart.borg...@gmail.com writes: works or not. Could perhaps you test? All wok for me. Windows is: XP Pro SP3 Emacs is: GNU Emacs 23.1.50.1 (i386-mingw-nt5.1.2600) of 2009-11-04 on LENNART-69DE564 (patched) Regards, -- Brian (remove the sport for mail)

[h-e-w] Re: Case insensitive file name completion

2008-10-13 Thread Brian Elmegaard
Lennart Borgman (gmail) [EMAIL PROTECTED] writes: Is it strange? It is a bug, a clear bug. Good to see I was right. -- Brian (remove the sport for mail) http://www.et.web.mek.dtu.dk/Staff/be/be.html http://www.rugbyklubben-speed.dk

[h-e-w] Re: Case insensitive file name completion

2008-10-10 Thread Brian Elmegaard
Drew Adams [EMAIL PROTECTED] writes: Strange. read-file-name-completion-ignore-case seems to have no effect for me. I am on windows, but no matter if it is on or off I have case-sensitive completion only with C-x f. It was new with Emacs 22. Are you perhaps using Emacs 20 or 21? I have

[h-e-w] Re: Case insensitive file name completion

2008-10-09 Thread Brian Elmegaard
Lennart Borgman (gmail) [EMAIL PROTECTED] writes: Just to make this more clear: When this was discussed on the developers list it was decided that file name completion should ignore case when the file system does that (ie on ms windows). Strange. read-file-name-completion-ignore-case seems to

[h-e-w] Case insensitive file name completion

2008-10-08 Thread Brian Elmegaard
Hi, I have trouble in GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600), the emacsw32 distribution. read-file-name-completion-ignore-case is set to t in my .emacs, but still it does not seem to takle effect. Do anyone have a hint? -- Brian (remove the sport for mail)

[h-e-w] Re: Case insensitive file name completion

2008-10-08 Thread Brian Elmegaard
Eli Zaretskii [EMAIL PROTECTED] writes: Try setting completion-ignore-case to t, and see if that helps. This lead me to the solution. I customized read-buffer-completion-ignore-case and now it works. Thanks for your help. -- Brian (remove the sport for mail)

[WiX-users] Installing the same as admin and user

2007-11-02 Thread Brian Elmegaard
Hi, I get an error message and my guess is that it is because I do what is said in the subject: Installing the same as admin and user. My installer is installed centrally by our administrators and users do not have write access to it. Now some users need to have the installation on their own

Re: gdb

2007-10-25 Thread Brian Elmegaard
Ted Alves [EMAIL PROTECTED] writes: However, Windows (XP) doesn't allow any file named .anything and will not accept .gdbinit as a valid file. If you run gdb from emacs, you may make the .gdbinit from inside emacs without problems. Hair is going. Could you pls. advise? I think this happens

Re: Problem of Readability of Python

2007-10-07 Thread Brian Elmegaard
Bruno Desthuilliers [EMAIL PROTECTED] writes: Use dicts, not lists or tuples: a = dict(name='yadda', val=42) print a['name'] print a['val'] I guess you will then need a list or tuple to store the dicts? I might have made it with a list of class instances: class a: def

Re: Floats as keys in dict

2007-08-02 Thread Brian Elmegaard
greg [EMAIL PROTECTED] writes: Be careful with this. If you have two values that are very close together, but on different sides of a rounding boundary, they will end up as distinct keys even though they should be regarded as equal. I don't think this is a big problem. It will only give me

Floats as keys in dict

2007-08-01 Thread Brian Elmegaard
Hi I am making a script to optimiza by dynamic programming. I do not know the vertices and nodes before the calculation, so I have decided to store the nodes I have in play as keys in a dict. However, the dict keys are then floats and I have to round the values of new possible nodes in each

Re: Floats as keys in dict

2007-08-01 Thread Brian Elmegaard
Steve Holden [EMAIL PROTECTED] writes: Alex Martelli wrote: [snip] Thanks a lot for your intersting answers. I will start out taking a look at bisect. -- Brian (remove the sport for mail) http://www.et.web.mek.dtu.dk/Staff/be/be.html http://www.rugbyklubben-speed.dk --

Re: Compile python with Mingw

2007-07-28 Thread Brian Elmegaard
iwinux [EMAIL PROTECTED] writes: To build python with mingw, there is a common way. First you should install msys, which can be downloaded from mingw's website. Run msys and type 'cd /path/to/source'. Then type ./configure make make install. And you will get a python built with mingw. It

Re: [WiX-users] Extension registered but not accepted by windows

2007-07-20 Thread Brian Elmegaard
Rob Hamflett [EMAIL PROTECTED] writes: Possibly you want [!EMACSPATH] instead of ![EMACSPATH]. Thanks Rob. Actually I just needed to get rid of the exclamation point. I don't really know how I got that. I may have seen it in some example somewhere. Regards, -- Brian (remove the sport for

[WiX-users] Got the msi I wanted working

2007-07-19 Thread Brian Elmegaard
Hi, finally I have been able to take the time and read this list, the tuorial and the help file carefully. I seem to have everything working as intended. I only have a few warnings when running msival2. I am not sure if I should be bothered because of warnings. The warnings I have are as shown

[Planner-el-discuss] Re: Problem with remember

2007-01-25 Thread Brian Elmegaard
Leo [EMAIL PROTECTED] writes: I think it is remember's fault. It didn't at remember-planner-append to autoloads. The following settings works for me: No this wasn't the problem. Thanks for the help, though. -- Brian (remove the sport for mail) http://www.et.web.mek.dtu.dk/Staff/be/be.html

[Planner-el-discuss] Re: Problem with remember

2007-01-21 Thread Brian Elmegaard
John Sullivan [EMAIL PROTECTED] writes: Do you have (require 'remember) or (require 'remember-planner) in your .emacs? Both -- Brian (remove the sport for mail) http://www.et.web.mek.dtu.dk/Staff/be/be.html http://www.rugbyklubben-speed.dk ___

[AUCTeX] site-start.d

2007-01-21 Thread Brian Elmegaard
Hi, the install instruction refers to site-start.d. Can someone direct me to where the automatic loading from this is documented and how site-start.el should be written to use this feature? Is this the standard functionality of emacs 22? tia, -- Brian (remove the sport for mail)

[AUCTeX] Re: site-start.d

2007-01-21 Thread Brian Elmegaard
David Kastrup [EMAIL PROTECTED] writes: It is not like it is hard to do. (mapc 'load-file (directory-files /usr/local/share/emacs/sitelisp.d t \\.el\\')) Great, thanks -- Brian (remove the sport for mail) http://www.et.web.mek.dtu.dk/Staff/be/be.html http://www.rugbyklubben-speed.dk

[h-e-w] Re: easy install of auctex with emacsw32

2007-01-21 Thread Brian Elmegaard
Ryan Krauss [EMAIL PROTECTED] writes: Thanks for all your help Brian. I am up and running now. Happy to be able to give some advice on this. I hope Lennart will add some guidelines for adding packages in emacsW32. -- Brian (remove the sport for mail)

[Planner-el-discuss] Problem with remember

2007-01-20 Thread Brian Elmegaard
Hi I think I have done as required in the planner manual. I have remember mode almost working but every time I use C-c C-c I get the following error: Loading newcomment...done Auto-saving...done Use C-c C-c to remember the data. Preparing diary... No diary entries for Saturday, January 20, 2007:

[h-e-w] Re: easy install of auctex with emacsw32

2007-01-20 Thread Brian Elmegaard
Ryan Krauss [EMAIL PROTECTED] writes: I have installed auctex using mingw before and can do that if I have to, I would just prefer not to if I can avoid it. You don't need mingw, only msys or cygwin. I made it work only a few days ago.

[Planner-el-discuss] Error when starting planner

2007-01-16 Thread Brian Elmegaard
Hi I just installed planner on a machine running EmacsW32 which may be the cause of the problem, I get: Debugger entered--Lisp error: (wrong-type-argument symbolp (quote beginning-of-line)) font-lock-compile-keywords(nil) font-lock-set-defaults() font-lock-mode-internal(t)

[Planner-el-discuss] Re: Error when starting planner

2007-01-16 Thread Brian Elmegaard
Akshay Joshi [EMAIL PROTECTED] writes: Thank for the reply, but I still have the font-lock problem and no pretty faces in the plan page. The *messages* output is: (wrong-type-argument symbolp (quote beginning-of-line)) -- Brian (remove the sport for mail)

[AUCTeX] Re: Possibly broken Auctex by installing EmacsW32

2007-01-16 Thread Brian Elmegaard
David Kastrup [EMAIL PROTECTED] writes: So install the precompiled Emacs/AUCTeX bundle. But I /would/ like the both the EmacsW32 features and auctex. I don't see that we have a reasonable chance to stop the whining. Now, I do. I found that the problem is actually solved. 4: configure:

[AUCTeX] Re: Possibly broken Auctex by installing EmacsW32

2007-01-16 Thread Brian Elmegaard
David Kastrup [EMAIL PROTECTED] writes: Congrats, that's a new one. Thanks. -- Brian (remove the sport for mail) http://www.et.web.mek.dtu.dk/Staff/be/be.html http://www.rugbyklubben-speed.dk ___ auctex mailing list auctex@gnu.org

[AUCTeX] Re: Possibly broken Auctex by installing EmacsW32

2007-01-16 Thread Brian Elmegaard
Brian Elmegaard [EMAIL PROTECTED] writes: My exec-path includes: c:/Program Files/MiKTeX 2.5/miktex/bin Actually both msys and miktex should be in the environment PATH, but it can be done by having them in exec-path and inserting (setenv PATH (mapconcat (lambda (dir) (or dir .)) exec-path

[h-e-w] Re: Using latex within emacs-windows

2007-01-16 Thread Brian Elmegaard
Brian Elmegaard [EMAIL PROTECTED] writes: Make sure emacs' exec-path or the system PATH includes: c:/Program Files/MiKTeX 2.5/miktex/bin Actually both msys and miktex should be in the environment PATH, but it can be done by having them in exec-path and inserting (setenv PATH (mapconcat

[AUCTeX] Re: Possibly broken Auctex by installing EmacsW32

2007-01-15 Thread Brian Elmegaard
David Kastrup [EMAIL PROTECTED] writes: Well, in that case Lennart should provide AUCTeX+EmacsW32, I guess. I guess he would like to do it (http://thread.gmane.org/gmane.emacs.windows/3354/focus=3366). But package installation in emacs is hard work. A great improvement would be an on-the-fly

[AUCTeX] Re: Possibly broken Auctex by installing EmacsW32

2007-01-15 Thread Brian Elmegaard
David Kastrup [EMAIL PROTECTED] writes: AUCTeX comes with an autoconf-based installer and a set of carefully maintained installation instructions. And there is an extra set of instructions just for Windows users. I know and they require several steps to handle before running auctex (install

[h-e-w] Re: EmacsW32 and rss on Gnus

2006-12-29 Thread Brian Elmegaard
Lennart Borgman (gmail) [EMAIL PROTECTED] writes: patched version in this area. I wonder about the build dates of the patched version you tried before and the unpatched version you are using now. They were different 061214 and 061228. With the patched version of today rss works again. I

Re: emacs shell hangs on W32 with python

2006-11-02 Thread Brian Elmegaard
[EMAIL PROTECTED] writes: Is there any way to run python through emacs or xemacs without having it hang or is shell support broken? Doing it from eshell gives the same problem :-( -- Brian (remove the sport for mail) http://www.et.web.mek.dtu.dk/Staff/be/be.html Rugbyklubben Speed

Dictionary question

2006-07-18 Thread Brian Elmegaard
Hi I have written the following which works, but I would like to write it less clumsy. I have a dictionary in which I loop through the keys for a dynamic programming algorithm. If a key is present I test if its value is better than the current, if it is not present I just create it. Would it be

Re: Dictionary question

2006-07-18 Thread Brian Elmegaard
Brian Elmegaard [EMAIL PROTECTED] writes: At least it was clumsy to post a wrong example. This shows what = find clumsy. c=1 x=2 l=list() l.append(dict()) l[0][5]=0 l.append(dict()) for a, e in l[-2].iteritems(): # Can this be written better? if a+c in l[-1]: if l[-1][a+c

Re: Dictionary question

2006-07-18 Thread Brian Elmegaard
John Machin [EMAIL PROTECTED] writes: 2. Put spaces around operators -- in general, RTFStyleGuide http://www.python.org/dev/peps/pep-0008 I din't know it. Thanks. Only you know what *really* meaningful names you should be using. I have better names in my running code. mykey = a + c

Re: Dictionary question

2006-07-18 Thread Brian Elmegaard
Justin Azoff [EMAIL PROTECTED] writes: last[keytotal] = min(last.get(keytotal), valtotal) comes close to working - it would if you were doing max. Thanks, I think this would help. -- Brian (remove the sport for mail) http://www.et.web.mek.dtu.dk/Staff/be/be.html Rugbyklubben Speed

Re: Dictionary question

2006-07-18 Thread Brian Elmegaard
Nick Vatamaniuc [EMAIL PROTECTED] writes: if l[-1].setdefault(a+c, x+e)x+e: l[-1][a+c]=x+e Thanks for the answer. I will try it. -- Brian (remove the sport for mail) http://www.et.web.mek.dtu.dk/Staff/be/be.html Rugbyklubben Speed Scandinavian Open 7s Rugby http://www.rkspeed.dk --

Re: MS VC++ Toolkit 2003, where?

2006-04-28 Thread Brian Elmegaard
sturlamolden [EMAIL PROTECTED] writes: I believe MinGW can link .lib C libraries files from Visual Studio. But there are no .a for Python24.dll as far as I can tell. But afaik you don't need one. -- Brian (remove the sport for mail) http://www.et.web.mek.dtu.dk/Staff/be/be.html

Re: MS VC++ Toolkit 2003, where?

2006-04-26 Thread Brian Elmegaard
Robert Kern [EMAIL PROTECTED] writes: Martin v. Löwis wrote: Robert Kern wrote: Oh, that's right, you need an import library for Python24.dll . That shouldn't be a problem: that library is included with Python. For mingw, too? I.e. a .a not a .lib? It is possible to load a .dll in

Re: MinGW and Python

2006-04-26 Thread Brian Elmegaard
Neal Becker [EMAIL PROTECTED] writes: release. Since mingw is usually current, I haven't checked, but they may be using 4.1 now. It is not, it is 3.4.2. http://www.mingw.org/download.shtml#hdr2 -- Brian (remove the sport for mail) http://www.et.web.mek.dtu.dk/Staff/be/be.html

Re: MinGW and Python

2006-04-25 Thread Brian Elmegaard
Robert Kern [EMAIL PROTECTED] writes: the gcc project is to provide a portable compiler, not one that generates the best code for any given platform. And in that goal, it succeeds remarkably well. Will a python program be slower on the same machine running windows compared to linux? What I

Re: MinGW and Python

2006-04-25 Thread Brian Elmegaard
Martin v. Löwis [EMAIL PROTECTED] writes: It would certainly be possible to distribute a gcc-compiled python. However, what is the point in doing so? Cygwin already includes a gcc-compiled Python, for Windows: Interesting. That is simply not true. Actually, you answered me then too. I

Re: MinGW and Python

2006-04-25 Thread Brian Elmegaard
Robert Kern [EMAIL PROTECTED] writes: If you meant writing extension modules for Python instead of extending distutils, I thought about extending distutils to make non-python installers. I may have misunderstood the answers I got.

Re: MinGW and Python

2006-04-25 Thread Brian Elmegaard
Fredrik Lundh [EMAIL PROTECTED] writes: a better optimizer usually results in programs that run faster, not slower. Got it the wrong after some editing ;-( -- Brian (remove the sport for mail) http://www.et.web.mek.dtu.dk/Staff/be/be.html http://www.rugbyklubben-speed.dk --

Re: MinGW and Python

2006-04-24 Thread Brian Elmegaard
Robert Kern [EMAIL PROTECTED] writes: - gcc does not optimize particularly well. But well enough for other platforms. -- Brian (remove the sport for mail) http://www.et.web.mek.dtu.dk/Staff/be/be.html http://www.rugbyklubben-speed.dk -- http://mail.python.org/mailman/listinfo/python-list

Re: Upgrading and modules

2006-04-18 Thread Brian Elmegaard
Lawrence Oluyede [EMAIL PROTECTED] writes: (despite the ongoing Pypi project and Eby's efforts in setuptools) you have to do it manually :) Great, there is progress in this. How many modules do you really use? It's a matter of minutes. Yes, but 60 minutes make an hour. I installed 2.4

Re: Upgrading and modules

2006-04-16 Thread Brian Elmegaard
BartlebyScrivener [EMAIL PROTECTED] writes: Are you saying you're on Windows? Yes http://www.activestate.com/Products/ActivePython/ It's a one-click, msi install with everything you need for win32, including IDE etc. I don't it includes every possible module, e.g., py2exe, ctypes, mysqldb,

Upgrading and modules

2006-04-14 Thread Brian Elmegaard
Hi, Every time I upgrade python I also have to download all packages and reinstall them. http://www.voidspace.org.uk/python/articles/upgrading_python.html tells me that this is only a problem on windows for some reasons that have to do with binary distributions, compiling and more. This leads

Re: Simple questions on use of objects (probably faq)

2006-03-10 Thread Brian Elmegaard
Michael [EMAIL PROTECTED] writes: Based on the code that runs, you want* this: [(y[x+1].x-y[x].x) for x in range(len(y)-1) ] Yes. Since personally I find that a lot clearer than: map(float.__sub__, [X.x for X in y[1:]], [X.x for X in y[:-1] ]) Me too. -- Brian (remove the sport for

Re: Simple questions on use of objects (probably faq)

2006-03-10 Thread Brian Elmegaard
Steven D'Aprano [EMAIL PROTECTED] writes: With this method in the class, your solution is easier than ever: Nice solution. -- Brian (remove the sport for mail) http://www.et.web.mek.dtu.dk/Staff/be/be.html http://www.rugbyklubben-speed.dk --

Re: Simple questions on use of objects (probably faq)

2006-03-10 Thread Brian Elmegaard
bruno at modulix [EMAIL PROTECTED] writes: I should just take some time and learn to read !-) Then I am better of than you. I just had to learn the syntax of a language :-) -- Brian (remove the sport for mail) http://www.et.web.mek.dtu.dk/Staff/be/be.html http://www.rugbyklubben-speed.dk --

Re: Simple questions on use of objects (probably faq)

2006-03-09 Thread Brian Elmegaard
bruno at modulix [EMAIL PROTECTED] writes: So it's time to move to 2.4x !-) I guess so. What is going wrong exactly ? def _add_instance(cls, instance): _add_instance=classmethod(_add_instance) cls._instances.append(instance) gives me: d:/DTU/80494 $ python.exe ooo.py

Re: Simple questions on use of objects (probably faq)

2006-03-09 Thread Brian Elmegaard
James Stroud [EMAIL PROTECTED] writes: You should look into __cmp__ and other magic methods. This is probably the type of functionality you seem to be after. Good example, I need to look at the magic methods. What I want is to get the value of another variable in C. Would I need to use

Re: Simple questions on use of objects (probably faq)

2006-03-09 Thread Brian Elmegaard
Steven D'Aprano [EMAIL PROTECTED] writes: Can you explain more carefully what you are trying to do? If you want the square of the maximum value, just do this: I want to get the value of another attribute of the instance with maximum x. I know I could do it like you suggest for the case with

Re: Simple questions on use of objects (probably faq)

2006-03-09 Thread Brian Elmegaard
Steven D'Aprano [EMAIL PROTECTED] writes: What you probably think you want is something like this: Thanks, that made it run. Now I need to study what classmethods are. I say think you want because I don't know what problem you are trying to solve with this messy, self-referential, piece of

Re: Simple questions on use of objects (probably faq)

2006-03-09 Thread Brian Elmegaard
bruno at modulix [EMAIL PROTECTED] writes: May I suggest that you first learn the language syntax and basics ?-) I'll try -- Brian (remove the sport for mail) http://www.et.web.mek.dtu.dk/Staff/be/be.html http://www.rugbyklubben-speed.dk -- http://mail.python.org/mailman/listinfo/python-list

Simple questions on use of objects (probably faq)

2006-03-08 Thread Brian Elmegaard
Hi, I am struggling to understand how to really appreciate object orientation. I guess these are FAQ's but I have not been able to find the answers. Maybe my problem is that my style and understanding are influenced by matlab and fortran. I tried with the simple example below and ran into

Re: Simple questions on use of objects (probably faq)

2006-03-08 Thread Brian Elmegaard
Matt Hammond [EMAIL PROTECTED] writes: See List comprehensions in python docs: Great, thanks for the hint. -- Brian (remove the sport for mail) http://www.et.web.mek.dtu.dk/Staff/be/be.html http://www.rugbyklubben-speed.dk -- http://mail.python.org/mailman/listinfo/python-list

Re: Simple questions on use of objects (probably faq)

2006-03-08 Thread Brian Elmegaard
Steven D'Aprano [EMAIL PROTECTED] writes: Thanks for the answers. They are very useful. self.args = (x, y, z) # save a copy of the arguments As always python makes it easy. max(obj.lister()) 4 Actually I wanted to get the maximum of attributes of several instances. List

Re: Simple questions on use of objects (probably faq)

2006-03-08 Thread Brian Elmegaard
Matt Hammond [EMAIL PROTECTED] writes: Hmmm, rereading, I think you're right ... and I think I'm confused too :-) You both are. Attempt #2: yz = [ (y1.x - y2.x) for (y1,y2) in zip(y[:-1], y[1:]) ] Frankly, a for loop with an index would probably be easier to read :) Me too, would

Re: Simple questions on use of objects (probably faq)

2006-03-08 Thread Brian Elmegaard
Matt Hammond [EMAIL PROTECTED] writes: y_max = max([e.x for e in y]) Would there be a way to refer back to the e with maximum x, or how could I find other attributes of it? -- Brian (remove the sport for mail) http://www.et.web.mek.dtu.dk/Staff/be/be.html http://www.rugbyklubben-speed.dk --

Re: Simple questions on use of objects (probably faq)

2006-03-08 Thread Brian Elmegaard
bruno at modulix [EMAIL PROTECTED] writes: Now how you could do it the OO way (QD, not really tested): Something goes wrong in my 2.3 when I change the syntax to _add_instance=classmethod(_add_instance). If I understand this correctly the class is keeping track of the instances of itself. The

[h-e-w] Re: EmacsW32 registry keys and gnuclientw

2006-02-14 Thread Brian Elmegaard
Lennart Borgman [EMAIL PROTECTED] writes: Lennart, could you tell me what a user would have to do to make it work after installation? -- Brian (remove the sport for mail) http://www.et.web.mek.dtu.dk/Staff/be/be.html http://www.rugbyklubben-speed.dk

[h-e-w] Re: EmacsW32 registry keys and gnuclientw

2006-02-13 Thread Brian Elmegaard
Lennart Borgman [EMAIL PROTECTED] writes: Many thanks, I think I have found the error. Great, please let me know when it is ready. -- Brian (remove the sport for mail) http://www.et.web.mek.dtu.dk/Staff/be/be.html http://www.rugbyklubben-speed.dk

[h-e-w] Re: EmacsW32 registry keys and gnuclientw

2006-02-12 Thread Brian Elmegaard
Lennart Borgman [EMAIL PROTECTED] writes: This is not what I expect to happen. Can you give more details please? Which version have you installed? Emacs-22-CvsP060106-EmacsW32-0.99.exe Was there a question asking if it should be installed for all users? No. -- Brian (remove the sport for

[h-e-w] Emacs as external editor for Thunderbird - problem with gnuclientw/gnuserv

2006-01-07 Thread Brian Elmegaard
Hi I have found the Thunderbird External Editor Extension on http://globs.org/articles.php?lng=enpg=2 and it works fine if I set the editor to emacs. However, I would like it use gnuclientw instead, so it would open an existing emacs frame. This also works; I can click it in thunderbird and get

Re: How to get started in GUI Programming?

2005-11-28 Thread Brian Elmegaard
[EMAIL PROTECTED] writes: Others recommended wxPython, PyQt and various derivatives. The trouble is there's too much choice! Agreed, I tried to find /the answer/ some time ago, and I got to the same conclusion. In addition it is even more difficult to find the advantages and disadvantages

[h-e-w] Re: Installing emacs

2005-08-30 Thread Brian Elmegaard
http://www.emacswiki.org/cgi-bin/wiki/CategoryWThirtyTwo Particularly I like Lennart Borgman/Rex Dieter's installer: http://www.math.unl.edu/~rdieter/Software/Windows/ described on http://www.emacswiki.org/cgi-bin/wiki/EmacsW32 -- Brian (remove the sport for mail)

[h-e-w] Re: Emacs setup helper and msi installer [Was: Re: Emacs-21.3-5 msi installer]

2005-08-22 Thread Brian Elmegaard
Jason Rumney [EMAIL PROTECTED] writes: What is upstart options? Command line options was what I means. It says gnuclientw -sqf Because you are already past the point where the init-file is loaded. Is that true? I added it to c:/Program Files/Emacs/Emacs-21.3/site-lisp/default.el. I

Re: Scipy - Latex Annotations in plots

2005-07-08 Thread Brian Elmegaard
Matthias R. [EMAIL PROTECTED] writes: Unfortunately matplotlib is only a 2D-plotting library. Do you know another one with 3D-capabilities as well? That would be very nice, You can quite easily write a function that produces metapost code. Featpost is the best 3d-lib for that, afaik. The

Re: Favorite non-python language trick?

2005-06-30 Thread Brian Elmegaard
Joseph Garvin [EMAIL PROTECTED] writes: I'm curious -- what is everyone's favorite trick from a non-python language? Metapost solution of linear equations: x1+9=x2-8=2; And -- why isn't it in Python? I'd like to know too. -- Brian (remove the sport for mail)

Re: Easy Windows Emacs

2005-06-06 Thread Brian Elmegaard
Shug Boabby [EMAIL PROTECTED] writes: i'd thought maybe someone had compiled GNU Emacs CVS for windows and ispell and added a bunch of useful packages (like AucTeX) and set them The packed emacs on http://www.et.web.mek.dtu.dk/Software/DNA/emacs21.3-setup.exe is an attempt of doing this. It

dialogs from external programs in eshell

2005-06-06 Thread Brian Elmegaard
Hi I would like to see the input/output idalog of external programs when running them from within eshell. Is that possible? On windows? tia, -- Brian (remove the sport for mail) http://www.et.dtu.dk/staff/be/be.html ___ Help-gnu-emacs mailing list

  1   2   >