Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

jasspa · JASSPA's MicroEmacs

The Yahoo! Groups Product Blog

Check it out!

Group Information

  • Members: 127
  • Category: Cyberculture
  • Founded: Jul 7, 1999
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Messages

Advanced
Messages Help
Messages 2392 - 2421 of 2695   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#2392 From: Jon Green <jon@...>
Date: Mon Aug 31, 2009 6:53 pm
Subject: JASSPA MicroEmacs 2009 - Beta version release.
bigfatmrmoose
Send Email Send Email
 
A Beta version of MicroEmacs 2009 has been uploaded to

http://www.jasspa.com/release_20090909

This also includes a new Windows installer setup.exe.
Any problems then please let us know.

Regards
Jon.

#2393 From: Jon Green <jon@...>
Date: Tue Sep 1, 2009 11:39 pm
Subject: Re: JASSPA MicroEmacs 2009 - Beta version update
bigfatmrmoose
Send Email Send Email
 
Jon Green wrote:
> A Beta version of MicroEmacs 2009 has been uploaded to
>
> http://www.jasspa.com/release_20090909
>
> This also includes a new Windows installer setup.exe.
> Any problems then please let us know.
>
> Regards
> Jon.

The Windows version of the installer has been updated to v2 with some
minor corrections and a different selection mechanism for the file
associations.

Ensure that any existing JASSPA installation is explicitly uninstalled
before performing any installation with this version.

Jon.

#2394 From: "Deak, Ferenc" <ferenc.deak@...>
Date: Thu Sep 3, 2009 7:04 am
Subject: Re: JASSPA MicroEmacs 2009 - Beta version release.
frncdk
Send Email Send Email
 
On Mon, Aug 31, 2009 at 8:53 PM, Jon Green<jon@...> wrote:
>
>
> A Beta version of MicroEmacs 2009 has been uploaded to
>
> http://www.jasspa.com/release_20090909
>
> This also includes a new Windows installer setup.exe.
> Any problems then please let us know.
>

Compiled successfully on the latest debian stable release (5.0/lenny), now
testing it...

Thanks for the new release.

Ferenc Deak

#2395 From: Jon Green <jon@...>
Date: Thu Sep 3, 2009 7:49 am
Subject: Re: JASSPA MicroEmacs 2009 - Beta version release.
bigfatmrmoose
Send Email Send Email
 
Deak, Ferenc wrote:
> On Mon, Aug 31, 2009 at 8:53 PM, Jon Green<jon@...> wrote:
>>
>> A Beta version of MicroEmacs 2009 has been uploaded to
>>
>> http://www.jasspa.com/release_20090909
>>
>> This also includes a new Windows installer setup.exe.
>> Any problems then please let us know.
>>
>
> Compiled successfully on the latest debian stable release (5.0/lenny), now
> testing it...
>
> Thanks for the new release.
>
> Ferenc Deak
>
>

Hi Ferenc Deak,

Thanks for the info. There are a few more minor tweaks and changes to
appear in the next few days. We hope to complete and publicly publish by
the beginning of next week.

Win32: We know that the Windows setup v2 is missing a link to the help
file on XP (can temporary fix by changing the help file from me.hlp to
me.chm)

Regards
Jon.

#2396 From: lechee lai <lecheel@...>
Date: Fri Sep 4, 2009 1:19 am
Subject: Re: JASSPA MicroEmacs 2009 - Beta version release.
lecheel
Send Email Send Email
 
thanks the release
  Compiled success on ubuntu 9.04
for console version
build -t c
-------------
file.oc: In function `readin':
file.c:(.text+0x4213): warning: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead
spawn.oc: In function `__mkTempName':
spawn.c:(.text+0x2937): warning: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp'
-----------



___________________________________________________
您的生活即時通 - 溝通、娛樂、生活、工作一次搞定!
http://messenger.yahoo.com.tw/

#2397 From: Steven Phillips <bill@...>
Date: Fri Sep 4, 2009 7:12 pm
Subject: Re: JASSPA MicroEmacs 2009 - Beta version release.
bill@...
Send Email Send Email
 
I have been ignoring these warnings for a while now.... seems to work okay,

Steve

lechee lai wrote:
 

thanks the release
  Compiled success on ubuntu 9.04
for console version
build -t c
-------------
file.oc: In function `readin':
file.c:(.text+0x4213): warning: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead
spawn.oc: In function `__mkTempName':
spawn.c:(.text+0x2937): warning: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp'
-----------



___________________________________________________
您的生活即時通 - 溝通、娛樂、生活、工作一次搞定!
http://messenger.yahoo.com.tw/


#2398 From: Jon Green <jon@...>
Date: Sun Sep 6, 2009 12:33 pm
Subject: JASSPA MicroEmacs 2009 Release - FINAL
bigfatmrmoose
Send Email Send Email
 
The final images for the 2009090 release are now installed in:

http://www.jasspa.com/release_20090909

The Web pages will be updated over the next few days to link to the new
release, in addition some more packages and binaries will appear. At the
moment I've only completed binaries and packages for Windows and Solaris
(x86 and Sparc); HPUX 10/11 will follow shortly.

The spelling dictionaries will now appear in the packages; either
included or as a separate package, depending on the system.

I'll also update the build scripts for RPM and debian to drag from the
web rather than a local directory so that other people will be able to
automate the building of packages for their systems. So once I have
completed these any volunteers to build packages for their systems will
be appreciated. These will slowly appear in:

http://www.jasspa.com/development/build_scripts/

At the moment only "solaris" and "win32" are populated with up to date
scripts.

Till next time (probably 2012 based on our previous track record).

Jon.

#2399 From: Jeremy Cowgar <jeremy@...>
Date: Sun Sep 6, 2009 5:30 pm
Subject: Turning off auto-indent
cp200205
Send Email Send Email
 
How can I turn off "smart" indent for all modes? i.e. when I type

if (1) { ENTER

I do not want it to automatically indent. I find that auto-indent works
most of the time, but not in every situation, it then makes it hard to
indent properly on those cases it fails. I do want it to keep the
previous line's indent, for example, say you are inside of the above IF
statement, and you have manually indented 4 spaces (1 tab or whatever),
and you hit enter. I want it to copy the previous line's indent.

Thanks,

Jeremy

#2400 From: Jon Green <jon@...>
Date: Wed Sep 9, 2009 10:50 pm
Subject: Re: Turning off auto-indent
bigfatmrmoose
Send Email Send Email
 
Jeremy Cowgar wrote:
> How can I turn off "smart" indent for all modes? i.e. when I type
>
> if (1) { ENTER
>
> I do not want it to automatically indent. I find that auto-indent works
> most of the time, but not in every situation, it then makes it hard to
> indent properly on those cases it fails. I do want it to keep the
> previous line's indent, for example, say you are inside of the above IF
> statement, and you have manually indented 4 spaces (1 tab or whatever),
> and you hit enter. I want it to copy the previous line's indent.
>
> Thanks,
>
> Jeremy
>

I think you asked this before a very long time ago.

FAQ(26) http://www.jasspa.com/me/amicr067.html

Regards
Jon.

>
>
> ------------------------------------
>
> __________________________________________________________________________
>
> This is an unmoderated list, but new members are moderated to ensure that
there are no spam users. JASSPA is not responsible for the content of
> any material posted to this list.
>
> To un-subscribe, send a mail message to
>
>     mailto:jasspa-unsubscribe@yahoogroups.com
>
> or visit http://groups.yahoo.com/group/jasspa and
> modify your account settings manually.
>
>
> Yahoo! Groups Links
>
>
>
>

#2401 From: Steven Phillips <bill@...>
Date: Wed Sep 9, 2009 11:00 pm
Subject: Re: Turning off auto-indent
bill@...
Send Email Send Email
 
Wow, that FAQ is showing its age! Since then we have added major-mode-setup (Tools -> Major mode setup) you probably want to use this instead as it disables the auto indent for any files of the current buffer type forever.

Steve

Jon Green wrote:
 

Jeremy Cowgar wrote:
> How can I turn off "smart" indent for all modes? i.e. when I type
>
> if (1) { ENTER
>
> I do not want it to automatically indent. I find that auto-indent works
> most of the time, but not in every situation, it then makes it hard to
> indent properly on those cases it fails. I do want it to keep the
> previous line's indent, for example, say you are inside of the above IF
> statement, and you have manually indented 4 spaces (1 tab or whatever),
> and you hit enter. I want it to copy the previous line's indent.
>
> Thanks,
>
> Jeremy
>

I think you asked this before a very long time ago.

FAQ(26) http://www.jasspa.com/me/amicr067.html

Regards
Jon.

>
>
> ------------------------------------
>
> __________________________________________________________
>
> This is an unmoderated list, but new members are moderated to ensure that there are no spam users. JASSPA is not responsible for the content of
> any material posted to this list.
>
> To un-subscribe, send a mail message to
>
> mailto:jasspa-unsubscribe@yahoogroups.com
>
> or visit http://groups.yahoo.com/group/jasspa and
> modify your account settings manually.
>
>
> Yahoo! Groups Links
>
>
>
>


#2402 From: Jon Green <jon@...>
Date: Sun Sep 13, 2009 1:07 pm
Subject: HELP: Need some help from Debian packaging expert
bigfatmrmoose
Send Email Send Email
 
Hi Christof (or anybody else)

I've created set of Ubuntu 9.04 packages based on your original Debian
source script that I downloaded from your site.

I have changed these to 20090909 (obviously) and fixed the rules for
jasspa-me which did not include Xpm in the build. I have also
restructured both of the packages so that they use /use/share/jasspa by
default and then there is no requirement to patch (also this is where
they should be). In addition I have added a jasspa-microemacs.desktop.
The problem I have at the moment I do not understand the .menu items and
am concerned that the .desktop installation will conflict with the .menu
item. Do you understand this enough to know if this is correct or
whether I need to change it further?

Also I have changed me-jasspa-data so that it installs into
/usr/share/jasspa and is a multi-package and will also install the
spelling dictionaries (i.e. the package name is "me-jasspa-enus" for the
American dictionary etc.)

For all packages there is now a

    make -f debian/rules get-orig-source

which gets the original source bundle using wget.

Because I am not an expert the basic commands I am using are:

   dpkg -i me-jasspa_0.0.20090909.deb  # Install package
   dpkg -r me-jasspa                   # Remove package
   dpkg-buildpackage -rfakeroot -tc    # Build
   dpkg-deb -c me-jasspa_0.0.20090909.deb # Check

The packages that I have built are available here for testing/comment.
DO NOT USE AT THE MOMENT UNTIL THEY ARE CONFIRMED.

http://www.jasspa.com/release_20090909/debian/

Also are you (Christof) able to continue to host them from your site or
do I need to set up a APT repository?

Thanks
Jon

#2403 From: Jon Green <jon@...>
Date: Sun Sep 13, 2009 4:27 pm
Subject: Re: HELP: Need some help from Debian packaging expert
bigfatmrmoose
Send Email Send Email
 
Jon Green wrote:
> Hi Christof (or anybody else)
>
> I've created set of Ubuntu 9.04 packages based on your original Debian
> source script that I downloaded from your site.
>
> I have changed these to 20090909 (obviously) and fixed the rules for
> jasspa-me which did not include Xpm in the build. I have also
> restructured both of the packages so that they use /use/share/jasspa by
> default and then there is no requirement to patch (also this is where
> they should be). In addition I have added a jasspa-microemacs.desktop.
> The problem I have at the moment I do not understand the .menu items and
> am concerned that the .desktop installation will conflict with the .menu
> item. Do you understand this enough to know if this is correct or
> whether I need to change it further?
>
> Also I have changed me-jasspa-data so that it installs into
> /usr/share/jasspa and is a multi-package and will also install the
> spelling dictionaries (i.e. the package name is "me-jasspa-enus" for the
> American dictionary etc.)
>
> For all packages there is now a
>
>    make -f debian/rules get-orig-source
>
> which gets the original source bundle using wget.
>
> Because I am not an expert the basic commands I am using are:
>
>   dpkg -i me-jasspa_0.0.20090909.deb  # Install package
>   dpkg -r me-jasspa                   # Remove package
>   dpkg-buildpackage -rfakeroot -tc    # Build
>   dpkg-deb -c me-jasspa_0.0.20090909.deb # Check
>
> The packages that I have built are available here for testing/comment.
> DO NOT USE AT THE MOMENT UNTIL THEY ARE CONFIRMED.
>
> http://www.jasspa.com/release_20090909/debian/
>
> Also are you (Christof) able to continue to host them from your site or
> do I need to set up a APT repository?
>
> Thanks
> Jon
>
>

I think I have sorted this out now and have uploaded some new images if
somebody can give them a try. i.e. for me to install on my machine with
the American + British spelling I need to download and install with:

dpkg -i me-jasspa_0.0.20090909_i386.deb
dpkg -i me-jasspa-data_0.0.20090909_all.deb
dpkg -i me-jasspa-engb_0.0.20090909_all.deb
dpkg -i me-jasspa-enus_0.0.20090909_all.deb

Regards
Jon

#2404 From: "Jeremy Cowgar" <jeremy@...>
Date: Mon Sep 14, 2009 2:40 pm
Subject: Re: Turning off auto-indent
cp200205
Send Email Send Email
 
On Wed, 09 Sep 2009 19:00:59 -0400, Steven Phillips <bill@...>
wrote:

> Wow, that FAQ is showing its age! Since then we have added
> major-mode-setup (Tools -> Major mode setup) you probably want to use
> this instead as it disables the auto indent for any files of the current
> buffer type forever.
>

I can make this work for C/C++ but it does not seem to work on my own
mode. I am unsure what I am doing. I have all sorts of indents that makes
almost all things work but a common formatting method in Euphoria cannot
be supported by the indent scheme and the indenting of the other items
causes this to really mess up, so I have to get rid of all indenting :-/

The mode I am using is: http://jeremy.cowgar.com/files/hkeuphoria.emf

When I turn off "Indent" in the Major Mode Setup, it seems to still
indent. An example file you can test with is simply:

procedure abc()
	 if 1 then
		 puts(1, "Hello, World!\n")
	 end if
end procedure

Does anyone have an idea what I am doing wrong in my mode that causes me
to not allow ignoring of the Smart Indent stuff? If I comment out all of
the indent code, then indent of course does not work. However, it will not
even remember the previous lines indent. i.e.

procedure abc()
	 if 1 then -- ENTER
^ this is where my cursor goes, I would have expected it to be at the same
indent level as "if"

Jeremy

#2405 From: Jon Green <jon@...>
Date: Mon Sep 14, 2009 9:04 pm
Subject: Re: Turning off auto-indent
bigfatmrmoose
Send Email Send Email
 
Jeremy Cowgar wrote:
> On Wed, 09 Sep 2009 19:00:59 -0400, Steven Phillips <bill@...>
> wrote:
>
>> Wow, that FAQ is showing its age! Since then we have added
>> major-mode-setup (Tools -> Major mode setup) you probably want to use
>> this instead as it disables the auto indent for any files of the current
>> buffer type forever.
>>
>
> I can make this work for C/C++ but it does not seem to work on my own
> mode. I am unsure what I am doing. I have all sorts of indents that makes
> almost all things work but a common formatting method in Euphoria cannot
> be supported by the indent scheme and the indenting of the other items
> causes this to really mess up, so I have to get rid of all indenting :-/
>
> The mode I am using is: http://jeremy.cowgar.com/files/hkeuphoria.emf
>
> When I turn off "Indent" in the Major Mode Setup, it seems to still
> indent. An example file you can test with is simply:
>
> procedure abc()
>  if 1 then
> 	 puts(1, "Hello, World!\n")
>  end if
> end procedure
>
> Does anyone have an idea what I am doing wrong in my mode that causes me
> to not allow ignoring of the Smart Indent stuff? If I comment out all of
> the indent code, then indent of course does not work. However, it will not
> even remember the previous lines indent. i.e.
>
> procedure abc()
>  if 1 then -- ENTER
> ^ this is where my cursor goes, I would have expected it to be at the same
> indent level as "if"
>
> Jeremy
>

Hi Jeremy,

I think your buffer-init mask is set up incorrectly, you currently have:

set-variable .fhook-euphoria.setup ® "/history/fhook/euphoria"
"bdfghnopxlqv"
set-variable .fhook-euphoria.setup-mask "abdefghikmnoptuxclqrvy"


I would suggest that these are not quite correct and should be using:

; buffer-init variables
set-variable .fhook-euphoria.setup ® "/history/fhook/euphoria"
"bdfghnopx"
set-variable .fhook-euphoria.setup-mask "abdefghikmnoptux"
set-variable .fhook-euphoria.comment "|/*| */|*| * | * |fr|"
set-variable .fhook-euphoria.comment-1 "|--||--|-- | --|r|"
set-variable .fhook-euphoria.indent-width 4

That seems to work OK when I ran it and then turned auto-indent off.

So when you run up buffer-setup then you need to:

a) Turn off Use-auto indent (turns off the auto indent!)
b) Enable indent (This lines up with the previous line)

I do not think you had "indent" enabled if it goes back to the beginning
of the line.

The indentation in the example provided seemed to work OK. Have you got
an example where it is failing for you and messing up?

Thanks
Jon.

>
> ------------------------------------
>
> __________________________________________________________________________
>
> This is an unmoderated list, but new members are moderated to ensure that
there are no spam users. JASSPA is not responsible for the content of
> any material posted to this list.
>
> To un-subscribe, send a mail message to
>
>     mailto:jasspa-unsubscribe@yahoogroups.com
>
> or visit http://groups.yahoo.com/group/jasspa and
> modify your account settings manually.
>
>
> Yahoo! Groups Links
>
>
>
>

#2406 From: "Jeremy Cowgar" <jeremy@...>
Date: Mon Sep 14, 2009 9:18 pm
Subject: Re: Turning off auto-indent
cp200205
Send Email Send Email
 
On Mon, 14 Sep 2009 17:04:38 -0400, Jon Green <jon@...> wrote:

> I would suggest that these are not quite correct and should be using:
>
> ; buffer-init variables
> set-variable .fhook-euphoria.setup ® "/history/fhook/euphoria"
> "bdfghnopx"
> set-variable .fhook-euphoria.setup-mask "abdefghikmnoptux"
> set-variable .fhook-euphoria.comment "|/*| */|*| * | * |fr|"
> set-variable .fhook-euphoria.comment-1 "|--||--|-- | --|r|"
> set-variable .fhook-euphoria.indent-width 4
>
> That seems to work OK when I ran it and then turned auto-indent off.
>
> So when you run up buffer-setup then you need to:
>
> a) Turn off Use-auto indent (turns off the auto indent!)
> b) Enable indent (This lines up with the previous line)
>
> I do not think you had "indent" enabled if it goes back to the beginning
> of the line.
>

Ok, thanks, that did work as I was expecting.

> The indentation in the example provided seemed to work OK. Have you got
> an example where it is failing for you and messing up?
>

Yes. I believe we have went over this before and the answer was that it's
not possible. All the current constructs work. What doesn't work is:

public constant
      ABC = "abc",
      DEF = "def",
      XYZ = "xyz"

Now, to make matters worse:

public enum
      --** User ID
      USER_ID,
      --** User name (code used to login as)
      USER_NAME,
      --** The real name of the user
      USER_REALNAME

if 10 then
      bye()
end if

Sort of got the , at the end of the line to indent properly, however I
could not make it stop indenting when a line was reached that didn't
contain a comma.

Jeremy

#2407 From: Bryan Schofield <schofield.bryan@...>
Date: Tue Sep 15, 2009 1:18 am
Subject: Re: Turning off auto-indent
schofield.bryan@...
Send Email Send Email
 
This may not be appropriate for your euphoria language mode, but I've
solved a complex indent/highlight problem by switching schemes in the
middle. For example, on the "alternate" java (hkjava.emf) I switch
to .indent.java-comm indent scheme when I detect the start of block
comment, then later switch back to .indent.java.

Perhaps you could create an extra .indent.euphoria-const indent scheme
that handles the "public constant" and "public enum" case only.

HTML mode does trickery with switching indent schemes, too.

If memory serves, indent <scheme> "t" and indent <scheme> "x" are used.

Cheers
-- bryan

On Sep 14, 2009, at 5:18 PM, "Jeremy Cowgar" <jeremy@...> wrote:

> On Mon, 14 Sep 2009 17:04:38 -0400, Jon Green <jon@...> wrote:
>
>> I would suggest that these are not quite correct and should be using:
>>
>> ; buffer-init variables
>> set-variable .fhook-euphoria.setup ® "/history/fhook/euphoria"
>> "bdfghnopx"
>> set-variable .fhook-euphoria.setup-mask "abdefghikmnoptux"
>> set-variable .fhook-euphoria.comment "|/*| */|*| * | * |fr|"
>> set-variable .fhook-euphoria.comment-1 "|--||--|-- | --|r|"
>> set-variable .fhook-euphoria.indent-width 4
>>
>> That seems to work OK when I ran it and then turned auto-indent off.
>>
>> So when you run up buffer-setup then you need to:
>>
>> a) Turn off Use-auto indent (turns off the auto indent!)
>> b) Enable indent (This lines up with the previous line)
>>
>> I do not think you had "indent" enabled if it goes back to the
>> beginning
>> of the line.
>>
>
> Ok, thanks, that did work as I was expecting.
>
>> The indentation in the example provided seemed to work OK. Have you
>> got
>> an example where it is failing for you and messing up?
>>
>
> Yes. I believe we have went over this before and the answer was that
> it's
> not possible. All the current constructs work. What doesn't work is:
>
> public constant
>     ABC = "abc",
>     DEF = "def",
>     XYZ = "xyz"
>
> Now, to make matters worse:
>
> public enum
>     --** User ID
>     USER_ID,
>     --** User name (code used to login as)
>     USER_NAME,
>     --** The real name of the user
>     USER_REALNAME
>
> if 10 then
>     bye()
> end if
>
> Sort of got the , at the end of the line to indent properly, however I
> could not make it stop indenting when a line was reached that didn't
> contain a comma.
>
> Jeremy
>
>
> ------------------------------------
>
> __________________________________________________________________________


>
> This is an unmoderated list, but new members are moderated to ensure
> that there are no spam users. JASSPA is not responsible for the
> content of
> any material posted to this list.
>
> To un-subscribe, send a mail message to
>
>    mailto:jasspa-unsubscribe@yahoogroups.com
>
> or visit http://groups.yahoo.com/group/jasspa and
> modify your account settings manually.
>
>
> Yahoo! Groups Links
>
>
>

#2408 From: Jon Green <jon@...>
Date: Tue Sep 15, 2009 7:25 am
Subject: Re: Turning off auto-indent
bigfatmrmoose
Send Email Send Email
 
Bryan Schofield wrote:
> This may not be appropriate for your euphoria language mode, but I've
> solved a complex indent/highlight problem by switching schemes in the
> middle. For example, on the "alternate" java (hkjava.emf) I switch
> to .indent.java-comm indent scheme when I detect the start of block
> comment, then later switch back to .indent.java.
>
> Perhaps you could create an extra .indent.euphoria-const indent scheme
> that handles the "public constant" and "public enum" case only.
>
> HTML mode does trickery with switching indent schemes, too.
>
> If memory serves, indent <scheme> "t" and indent <scheme> "x" are used.
>
> Cheers
> -- bryan
>

Hi Bryan,

I looked at this last night running multiple schemes using a block
ending of "^\\s*$" (empty line). It worked for all of the given examples
when working in-line however failed for a restyle-buffer. The problem is
that there is not a good anchor to end the block. Using a blank line is
also very spurious as there are too many of them.

I know Jeremy tried anchoring on the ',', but given that this also
appears in bracketed expressions then this is not a good choice. Also it
fails for the construct which includes the comments.

It is quite a nasty construct and I was thinking you almost want
something like a indent 'c' (continue) which ends when it reaches a
blank line. ('c' in its current form will not work either).

Still thinking about it.

Regards
Jon

>>
>> public constant
>>     ABC = "abc",
>>     DEF = "def",
>>     XYZ = "xyz"
>>
>> Now, to make matters worse:
>>
>> public enum
>>     --** User ID
>>     USER_ID,
>>     --** User name (code used to login as)
>>     USER_NAME,
>>     --** The real name of the user
>>     USER_REALNAME
>>
>> if 10 then
>>     bye()
>> end if
>>
>> Sort of got the , at the end of the line to indent properly, however I

#2409 From: Matt Gumm <mattgumm@...>
Date: Tue Sep 15, 2009 7:48 am
Subject: Transpose Words
MattGumm
Send Email Send Email
 
Is there a way to execute the transpose-words function in JASSPA? Thanks.

Matt Gumm


#2410 From: Jon Green <jon@...>
Date: Tue Sep 15, 2009 8:53 am
Subject: Re: Transpose Words
bigfatmrmoose
Send Email Send Email
 
On Tue 15/09/09  9:48 AM , "Matt Gumm" mattgumm@... sent:
> Is there a way to execute the transpose-words function in JASSPA?
> Thanks.
>
> Matt Gumm
>
>
>

Afraid not. You would have to write a macro to do it.

Here is a very quick and dirty transpose-words macro that does no checking as a
starting point. Really this needs to have all of the checking in there to deal
with start/end of buffer, line breaks etc. So use with care, but does deal with
the very simple case of transposing words.

; transpose words
define-macro transpose-words
     forward-word
     backward-word
     set-mark
     backward-word
     kill-region
     2 forward-word
     backward-word
     yank
     backward-word
!emacro

To try it then cut and past into a buffer and execute-buffer to be able to run
it.

Regards
Jon.

---- Message sent via KC WebMail - http://webmail.mistral.net/

#2411 From: Matt Gumm <mattgumm@...>
Date: Tue Sep 15, 2009 2:15 pm
Subject: Re: Transpose Words
MattGumm
Send Email Send Email
 
Thanks, I'll give it a try.

Matt Gumm


From: Jon Green <jon@...>
To: jasspa@yahoogroups.com; Matt Gumm <mattgumm@...>
Sent: Tuesday, September 15, 2009 3:53:41 AM
Subject: Re: [jasspa] Transpose Words

On Tue 15/09/09  9:48 AM , "Matt Gumm" mattgumm@... sent:
> Is there a way to execute the transpose-words function in JASSPA?
> Thanks.
>
> Matt Gumm
>    
>
>

Afraid not. You would have to write a macro to do it.

Here is a very quick and dirty transpose-words macro that does no checking as a starting point. Really this needs to have all of the checking in there to deal with start/end of buffer, line breaks etc. So use with care, but does deal with the very simple case of transposing words.

; transpose words
define-macro transpose-words
    forward-word
    backward-word
    set-mark
    backward-word
    kill-region
    2 forward-word
    backward-word
    yank
    backward-word
!emacro   

To try it then cut and past into a buffer and execute-buffer to be able to run it.

Regards
Jon.

---- Message sent via KC WebMail - http://webmail.mistral.net/


#2412 From: "Jeremy Cowgar" <jeremy@...>
Date: Thu Sep 17, 2009 10:03 pm
Subject: Dir Files Tool - keep in sync w/current file?
cp200205
Send Email Send Email
 
I am wondering if there is a way to make the Dir Files tool automatically
change to the directory of the current buffer and then when I change
buffers, the Dir Files tool automatically change to the directory of the
new buffer?

Thanks,

Jeremy

#2413 From: "Gomes, Pedro (NSN - PT/Amadora)" <pedro.gomes@...>
Date: Tue Sep 22, 2009 1:53 pm
Subject: Wierd read-file behaviour in ME09
azynheira
Send Email Send Email
 

Hi All,
I got some 'weird' behaviour in Micro Emacs 2009 (0909).

If I define the macro above and press C-f12 to reread the current buffer, it re-read the current buffer, but it removes some other buffer from the buffer list. If I have 10 buffers besides the one I want to reread and I press the C-f12 combination 10 times I will be left with only the current buffer and nothing else (and the scratch buffer of course).

Initially I thought it was due to 'delete-buffer' which I believe its irrelevant since the read-file rewrites the current buffer.

Can you explain what might be happening ?

Regards,
Pedro

P.S. - By the way, congrats on the new release, looks quite stable!! :P

define-macro reread-file-with-prompt
    set-variable #l1 $window-aline
    set-variable #l2 $buffer-fname
   
    0x1 delete-buffer $buffer-bname  ; force destroy (prompting user doesn't work in macro)
    ml-write &spr "[Rereading %s]" #l2
    read-file #l2
   
    #l1 goto-line
!emacro

!force global-bind-key reread-file-with-prompt "C-f12"


#2414 From: Steven Phillips <bill@...>
Date: Tue Sep 22, 2009 2:27 pm
Subject: Re: Wierd read-file behaviour in ME09
bill@...
Send Email Send Email
 
Pedro,

The problem is caused by your use of read-file, this command replaces the current buffer with the loaded file, i.e. this command is equivalent to a delete-buffer followed by a find-file. Problem is you have already deleted the current buffer using delete-buffer, so in effect you are calling delete-buffer twice and then find-file - not what you meant, try changing read-file with find-file.

As a side note, the macro does not check that the current buffer has got a file name associated with it which is dangerous, I suggest you take a copy of reread-file from tools.emf and modify that to meet your requirement.

Steve

Gomes, Pedro (NSN - PT/Amadora) wrote:
 

Hi All,
I got some 'weird' behaviour in Micro Emacs 2009 (0909).

If I define the macro above and press C-f12 to reread the current buffer, it re-read the current buffer, but it removes some other buffer from the buffer list. If I have 10 buffers besides the one I want to reread and I press the C-f12 combination 10 times I will be left with only the current buffer and nothing else (and the scratch buffer of course).

Initially I thought it was due to 'delete-buffer' which I believe its irrelevant since the read-file rewrites the current buffer.

Can you explain what might be happening ?

Regards,
Pedro

P.S. - By the way, congrats on the new release, looks quite stable!! :P

define-macro reread-file-with-prompt
    set-variable #l1 $window-aline
    set-variable #l2 $buffer-fname
   
    0x1 delete-buffer $buffer-bname  ; force destroy (prompting user doesn't work in macro)
    ml-write &spr "[Rereading %s]" #l2
    read-file #l2
   
    #l1 goto-line
!emacro

!force global-bind-key reread-file-with-prompt "C-f12"


#2415 From: "Gomes, Pedro (NSN - PT/Amadora)" <pedro.gomes@...>
Date: Tue Sep 22, 2009 2:39 pm
Subject: Wierd read-file behaviour in ME09 (revised)
azynheira
Send Email Send Email
 

Hi All,
I got some 'weird' behaviour in Micro Emacs 2009 (0909).

If I define the macro above and press C-f12 to reread the current buffer, it re-read the current buffer, but it removes some other buffer from the buffer list. If I have 10 buffers besides the one I want to reread and I press the C-f12 combination 10 times I will be left with only the current buffer and nothing else (and the scratch buffer of course).

Initially I thought it was due to 'delete-buffer' which I believe its irrelevant since the read-file rewrites the current buffer. The previous statement is not correct, if I remove the 'delete-buffer' line the macro works as it should and does not remove any buffers!!

Can you explain what might be happening ?

Regards,
Pedro

P.S. - By the way, congrats on the new release, looks quite stable!! :P

define-macro reread-file-with-prompt
    set-variable #l1 $window-aline
    set-variable #l2 $buffer-fname
   
    0x1 delete-buffer $buffer-bname  ; force destroy (prompting user doesn't work in macro)
    ml-write &spr "[Rereading %s]" #l2
    read-file #l2
   
    #l1 goto-line
!emacro

!force global-bind-key reread-file-with-prompt "C-f12"


#2416 From: Jon Green <jon@...>
Date: Wed Sep 23, 2009 12:22 am
Subject: Re: Wierd read-file behaviour in ME09 (revised)
bigfatmrmoose
Send Email Send Email
 
Gomes, Pedro (NSN - PT/Amadora) wrote:
>
>
> Hi All,
> I got some 'weird' behaviour in Micro Emacs 2009 (0909).
>
> If I define the macro above and press C-f12 to reread the current
> buffer, it re-read the current buffer, but it removes some other buffer
> from the buffer list. If I have 10 buffers besides the one I want to
> reread and I press the C-f12 combination 10 times I will be left with
> only the current buffer and nothing else (and the scratch buffer of course).
>
> Initially I thought it was due to 'delete-buffer' which I believe its
> irrelevant since the read-file rewrites the current buffer. The previous
> statement is not correct, if I remove the 'delete-buffer' line the macro
> works as it should and does not remove any buffers!!
>
> Can you explain what might be happening ?

Hi Pedro,

It did not do what you expected because you deleted the old buffer BUT
read-file is not what you expected.

read-file - Find and load file *replacing current buffer*

It is that last bit of the description that has caught you out.

So when you deleted the old buffer then you are then in another buffer
(the next buffer), when you issued "read-file" from this "another"
buffer then it deleted the current buffer you were in (another) and
replaced it with the new one which has the same name as the old one.

So that explains it I hope.

Anyway you should not need this now, simply bind reread-file to C-F12
and it should do what you want; it does prompt if it needs to (i.e. the
file has been edited and you will loose some changes).

Regards
Jon

P.S. This release should be more stable than 2006 as all we have done is
mainly bug fixes.


>
> Regards,
> Pedro
>
> P.S. - By the way, congrats on the new release, looks quite stable!! :P
>
> define-macro reread-file-with-prompt
>     set-variable #l1 $window-aline
>     set-variable #l2 $buffer-fname
>
>     0x1 delete-buffer $buffer-bname  ; force destroy (prompting user
> doesn't work in macro)
>     ml-write &spr "[Rereading %s]" #l2
>     read-file #l2
>
>     #l1 goto-line
> !emacro
>
> !force global-bind-key reread-file-with-prompt "C-f12"
>
>
>
>

#2417 From: "Gomes, Pedro (NSN - PT/Amadora)" <pedro.gomes@...>
Date: Wed Sep 23, 2009 10:12 am
Subject: Minor help mismatch in add-file-hook(2)
azynheira
Send Email Send Email
 

Hello,
I found a minor inconsistency in add-file-hook(2).

The examples should refer to $tabsize and should refer to $indent-width variable. Correct ?

Just my 50$ :-)
Regards,
Pedro


#2418 From: "Gomes, Pedro (NSN - PT/Amadora)" <pedro.gomes@...>
Date: Wed Sep 23, 2009 1:50 pm
Subject: Some trash in the clearcase output window ...
azynheira
Send Email Send Email
 

Hi,
I found some minor problem while using the clearcase support in ME09.

I did a cleartool diff using cc-diff and I got the following console:
cd /software/
ClearCase diff -predJN

*** coding.h    Predecessor
--- coding.h~
52a53,54
> #define TRASH 1       
>
***************
[**** ClearCase Diff completed successfully ****]

Where does the bold trash comes from ?

Thanks,
Pedro


#2419 From: "Gomes, Pedro (NSN - PT/Amadora)" <pedro.gomes@...>
Date: Wed Sep 23, 2009 3:41 pm
Subject: RE: Some trash in the clearcase output window ... (solution)
azynheira
Send Email Send Email
 

Hi All,
Solution to the problem (I believe!)

Replace line 1507 of clearcs.emf by the above line: (just a wrong variable)
insert-string &spr "cd %s\nClearCase diff -pred %s\n" #l9 &rep #l3 "\b" " "

Regards,
Pedro


#2420 From: Steven Phillips <bill@...>
Date: Wed Sep 23, 2009 4:02 pm
Subject: Re: RE: Some trash in the clearcase output window ... (solution)
bill@...
Send Email Send Email
 
Pedro,

You have identified the issue and your fix will improve things, where it will slightly fail is when you do a diff of more than one file - your solution will list only one of the files (the last one).

Perhaps a better solution is as follows:

*** d:\me\macros\clearcs.emf.~0~    Sun Aug 30 22:31:35 2009
--- d:\me\macros\clearcs.emf    Wed Sep 23 16:58:04 2009
***************
*** 1425,1430 ****
--- 1425,1431 ----
      0 cc-get-file-list 0 0
      !force 0 delete-buffer "*cc-diff-res*"
      find-buffer "*cc-cmdline*"
+     set-variable #l0 @wl
      set-variable #l8 1
      set-variable #l1 .cc-get-file-list.fcount
      !while &pdec #l1 1

I think this is what I had intended, but lucky me no longer has the misery of having to use ClearCase :-) could you please test this fix with both one, two (and more) files being diff'ed (remember to undo your fix first).

Thanks,

Steve

Gomes, Pedro (NSN - PT/Amadora) wrote:
 

Hi All,
Solution to the problem (I believe!)

Replace line 1507 of clearcs.emf by the above line: (just a wrong variable)
insert-string &spr "cd %s\nClearCase diff -pred %s\n" #l9 &rep #l3 "\b" " "

Regards,
Pedro


#2421 From: "azynheira" <pedro.gomes@...>
Date: Wed Sep 23, 2009 4:11 pm
Subject: Re: Some trash in the clearcase output window ... (solution)
azynheira
Send Email Send Email
 
Hi Steve,
You're quite right! I tested it and it works!

Thanks,
Pedro
--- In jasspa@yahoogroups.com, Steven Phillips <bill@...> wrote:
>
> Pedro,
>
> You have identified the issue and your fix will improve things, where it
> will slightly fail is when you do a diff of more than one file - your
> solution will list only one of the files (the last one).
>
> Perhaps a better solution is as follows:
>
> *** d:\me\macros\clearcs.emf.~0~    Sun Aug 30 22:31:35 2009
> --- d:\me\macros\clearcs.emf    Wed Sep 23 16:58:04 2009
> ***************
> *** 1425,1430 ****
> --- 1425,1431 ----
>       0 cc-get-file-list 0 0
>       !force 0 delete-buffer "*cc-diff-res*"
>       find-buffer "*cc-cmdline*"
> +     set-variable #l0 @wl
>       set-variable #l8 1
>       set-variable #l1 .cc-get-file-list.fcount
>       !while &pdec #l1 1
>
> I think this is what I had intended, but lucky me no longer has the
> misery of having to use ClearCase :-) could you please test this fix
> with both one, two (and more) files being diff'ed (remember to undo your
> fix first).
>
> Thanks,
>
> Steve
>
> Gomes, Pedro (NSN - PT/Amadora) wrote:
> >
> >
> > Hi All,
> > Solution to the problem (I believe!)
> >
> > Replace line 1507 of clearcs.emf by the above line: (just a wrong
> > variable)
> > insert-string &spr "cd %s\nClearCase diff -pred %s\n" #l9 &rep #l3
> > "\b" " "
> >
> > Regards,
> > Pedro
> >
> >
>

Messages 2392 - 2421 of 2695   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

Copyright 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help