Berkeley CSUA MOTD:Entry 10062
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/04/04 [General] UID:1000 Activity:popular
4/4     

2003/9/3-4 [Computer/SW/Editors, Computer/SW/Editors/Emacs] UID:10062 Activity:nil
9/3     What editor can be controlled by another program?  What I want is to
        have my program launch, say ED, and the user edit a given file.  Only
        a subset of ED's command is avaialbe to the user.  The rest of the
        functionality is controlled by the parent program, so that ED is
        acting like an embedded editor.
        \_ rex
           \_ Do you mean red?
        \_ I should have said that I want a VISUAL editor that can be embedded.
        \_ list the restrictions you want... if you just want to, e.g., limit
           file access, you can probably wrap it in a jail or something like
           that.
           \_ Suppose my program asks the user to type/edit some documents at
              some stage, and I don't want to write an embedded editor just
              for that.  The user is not allowed to edit any other file or
              change buffer (as in emacs).  And the parent program can change
              the file/buffer without relaunching the editor.  I guess the
              EMACS way is to write the program in elisp etc so everything
              is inside editor.  I want the other way around.
              \_ What are you actually trying to do?  If you want that level
                 of control you're going to have to completely manage the
                 widget.  This isn't as bad as it seems, many toolkits have
                 powerful rich text editor classes.
2025/04/04 [General] UID:1000 Activity:popular
4/4     

You may also be interested in these entries...
2010/1/22-30 [Computer/HW/Laptop, Computer/SW/OS/OsX] UID:53655 Activity:high
1/22    looking to buy a new development laptop
        needs ssdrive, >6 hr possible batt life, and runs linux reasonably
        Anyone have a recommendation? Thx.
        \_ thinkpad t23 w ssdrive and battery inplace of drive bay
        \_ Ever wondered what RICHARD STALLMAN uses for a laptop?  Well,
           wonder no more!
	...
2009/8/31-9/9 [Computer/SW/Compilers] UID:53312 Activity:nil
8/31    I'm trying to learn ActionScript, like a step by step tutorial.
        The site at http://www.actionscript.org/resources/categories/Tutorials/Flash/Beginner
        isn't well organized. It doesn't explain how to get started with
        an editor, compiler, IDE. And should I even learn AS2 when you can
        learn AS3? Is Adobe Flash CS4 >>> CS3 or just CS4 > CS3?
	...
2009/7/24-29 [Computer/SW/Editors/Vi] UID:53195 Activity:low
7/24    Is dos2unix available somewhere?  Someone added all those Ctrl-M's to
        motd.public.
        \_ %s/^V^M//g in vim. What has your editor done for you today?
           \_ that works great in vi actually... in vim :set filetype=unix
	...
2009/2/28-3/11 [Computer/SW/Compilers] UID:52661 Activity:nil
2/28    I'm looking for a recommendation of a compiler/IDE to use to
        develop C/C++ code under Linux. In school, we used jove/gcc and
        I still use emacs/vi and gcc to this day. However, it is really
        lacking. Under Windows I tried Visual Studio and there were some
        really nice things about it, although it was so overwhelming that
        after 6 months of occasional use I still didn't really know what I
	...
2008/9/22-24 [Science/Electric, Computer/Companies/Google, Computer/SW/Editors/Vi] UID:51263 Activity:kinda low
9/22    Gmail's "conversation feature" drives me nuts! Is there a way to
        disable that and make Gmail act like every other e-mail client on the
        planet? WTF thought this was a nice thing to have on by default?
        \_ Umm, why don't you just use another email service then...
           \_ Umm, I do, which is how I have something to compare to. I get
              mail in at least 4 places only one of which is Gmail. I
	...
2008/6/12-13 [Computer/SW/Editors/Emacs, Computer/SW/Editors/Vi, Computer/SW/Unix] UID:50233 Activity:nil
6/12    Does emacs or vi include a column paste?  I sometimes have a block
        text I want to insert horizntally next to another block/column.  This
        is common for data plotting etc.  In Microsoft Word has this, I need
        it in a Unix text editor.
        \_ Does M-x picture-mode in emacs work for you?
           \_ Yes, with the commands below, thanks.
	...
2011/12/21-2012/2/6 [Computer/HW/Laptop, Computer/SW/Editors/Emacs] UID:54269 Activity:nil
12/21   In Emacs, how do I make it so that it will resize its screen
        when the maximum resolution of my monitor changes? When I
        use my laptop, my emacs is too big (and I can't resize it
        because the bottom-right corner is not accessible).
        \_ Which OS?  Can't you drag the top border (not a corner) to resize
           the height to be smaller?
	...
2007/3/7-11 [Computer/SW/Editors/Emacs] UID:45897 Activity:moderate
3/7     In emacs 21, is there a way in Emacs-Lisp to detect whether emacs was
        started with the "-r" switch?  In C mode, the syntax colors are
        different when I start emasc with and without "-r".  I want to do the
        same in my elisp code, but I can't find how this is done in cc-mode.el.
        Thanks.  -- yuen
        \- are you sure what you are talking about is being done by the cc*.el
	...
2005/5/6-9 [Computer/SW/Editors/Emacs] UID:37552 Activity:kinda low
5/6     Is there a way to pass command-line arguments to emacs, and then detect
        them in my elisp code in .emacs?  I want to distinguish, in my .emacs,
        whether it's started by me typing "emacs" at the command line, or by
        some other program using the EDITOR environment variable.  So I'm
        thinking I can change EDITOR from "emacs" to "emacs -foo" and then
        detect it in .emacs.  Thanks.
	...
2005/1/31-2/1 [Computer/SW/Editors/Vi] UID:35990 Activity:kinda low
1/31    What the fuck is wrong with you people who use emacs in "vi mode"?
        Why don't you just use vi???  I hate it when some loser asks me
        to help debug something and I see an emacs window and expect basic
        things, like C-n, to work!
        \_ Just a guess, but I assume people who utilize this probably
           want the additional features of emacs but were trained under
	...
2004/6/1-2 [Computer/SW/Editors/Emacs] UID:30524 Activity:low
6/1     Argh!  I accidently hit double-bucky-kill-XEmacs.  Is there some
        magical incantation to make it open up the 20-some-odd files I was
        editing?  (I don't need to recover lost data).
        \_ How about this? Find the last .saves-xxxxx file in your home dir,
           run "grep -v # ~/.saves-xxxxx", then somehow pass the resulting
           lines as arguments to the elisp function (find-file ......).
	...
2003/10/9-10 [Computer/SW/Languages/Java, Computer/SW/Editors/IDE] UID:10557 Activity:nil
10/9    Anyone use Emacs for Java dvlpmt?  What packages & modes do you use?
        \_ No.  Eclipse.  Eclipse.  Eclipse.  There is no other IDE.
        \_ Sure.  Java mode.  Cygwin.  I had to tweak the elisp for java mode
           to make it work according to taste, but then, I'm kind of
           particular.
        \_ IntelliJ is pretty nice as well.
	...
2003/10/9 [Computer/SW/Editors/Emacs] UID:10552 Activity:nil
10/9    in elisp, what's the difference between setq and set-variable?
        I've googled to no avail.
        \_ According to M-x describe-function, the name of the variable in setq
           is not evaluated.  So I guess you can't do something like
           "(setq (foo bar baz) 3)" but you can with set-variable.
	...
2003/3/16-17 [Computer/SW/Editors/Emacs] UID:27713 Activity:high
3/16    Is there a way to change the background and foreground color of xemacs
        after it has started?  I know I can do "xemacs -bg black -fg white"
        but I can't seem to do it after the program started.  apropos on
        background doesn't show me anything.
        \_ I don't know, but why would you want to do this?
        \_ http://www.google.com/search?q=change+emacs+foreground+color
	...
2002/1/9 [Computer/SW/Editors/Emacs] UID:23507 Activity:insanely high
1/8     I am getting tired of Pine's editor. I like jove.
        What's YOUR favorite email program? Can it use Jove as editor?
        \_ mh.  yes.
            \_What is mh? or Where is mh?
               \_ mh is everywhere and nowhere.
        \_ nmh.  it's mh with more features and fewer bugs. nmh+procmail+jove.
	...
2001/9/16 [Computer/SW/Editors/Emacs] UID:22475 Activity:moderate
9/15    [ REPOST ] What is the equivalent of '.' (sh) in emacs/elisp?
        I want to include a elisp file into my .emacs at startup but
        I don't know how to do it. tia.
        \_ (load "file")
           \- note, if you want to load something interactively [i.e. with
           M-x] use load-file or load-library or some other wrapper. --psb
	...
2001/8/22-23 [Computer/SW/Languages/C_Cplusplus, Computer/SW/Editors/Emacs] UID:22212 Activity:high
8/22    How do I make emacs do an isearch using the currently selected region
        as the search string?
        \_ M-w C-s M-y
           \_ that sucks. how do i bind a key to do all those at once?
           \_ thanks...now how do i bind a key to do all those at once?
              \_ C-h i m emacs RET m keyboard macros RET
	...