Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Sep 27, 2012
  1. edit-server.el: more fix-up of the URL parsing

    It seems my attempt to parse to ^M was premature. The parsing needs to
    handle both line-end cases as Chrome seems to randomly decide which
    ones to put in the headers.
Commits on Sep 18, 2012
  1. edit-server.el: fix up regex parsing of the edit request

     * match the whole URL (sans trailing RET)
     * rename the get buffer function
    There are still a few warts to fix for save-progress to work properly.
    Namely at the moment after each C-x C-s this will cause additional
    re-sends of the data back. It still works, it's just ugly.
Commits on Sep 11, 2012
  1. edit-server: handle x-file header option for iterative editing.

    This should mean we re-use the existing buffer. It's not working for
    me at the moment and I'm not sure why.
Commits on Sep 8, 2012
  1. Raise existing frame consistently on Mac.

    Le Wang authored
    - rename `edit-server-create-frame` since it does more
Commits on Sep 5, 2012
  1. edit-server: fix issue #62, broken by re-factor.

    authored Alex Bennee committed
  2. Merge pull request #61 from capitaomorte/master

    Use UTF-8 coding for process communication
Commits on Aug 30, 2012
  1. edit-server: send x-file and x-open headers for edit-server-save

    This is part one of incremental save support. When we run C-x
    C-s (edit-server-save) we add headers to the response. The browser
    interprets those as an in-progress save and sends a fresh edit request
    At the moment this will create a brand new buffer. However once the
    edit-server is aware of the x-file parameter we should be able to just
    bring back the buffer we were editing.
Commits on Jul 30, 2012
  1. @capitaomorte
Commits on Apr 25, 2012
  1. @mikeshulman
  2. @mikeshulman
Commits on Feb 29, 2012
Commits on Nov 5, 2011
  1. @tarsius
  2. @tarsius

    make variables local using `make-variable-buffer-local'

    tarsius authored
    Variable `edit-server-client' is not used as buffer local variable;
    move it's definition and don't set the `permanent-local' property.
  3. @tarsius

    setup keymap within defvar

    tarsius authored
    Because defvar does not do anything when the variable is
    already initialized this allow users to provide their own
    keymap definition before loading the library.  This way
    they don't have to undo any of the bindings they don't
    want and can concentrate on what they want.
  4. @tarsius
  5. @tarsius

    fix indentation

    tarsius authored
    also remove trailing whitespace and shorten long lines
  6. @tarsius

    fix style issues

    tarsius authored committed
    * comments begin with at least two semicolons
      unless they are on the same line as code
    * major section titles use three semicolons
    * doc-strings do not end with whitespace
    * don't quote nil and empty list
  7. @tarsius

    follow the header conventions, mostly

    tarsius authored committed
    (tweaked original commit so Riccardo isn't stuck with maintainer emails)
Commits on Oct 31, 2011
  1. edit-server.el: persist the buffer-local variables beyond mode changes

    As discussed in #37 a
    change in major mode after setting up can loose critical information.
    The normal major mode selection tries to mitigate against this by
    making sure those mode changes happen early on.
    If you change major-mode you'll still need to re-enable the
    edit-server-edit-mode to re-enable the key map that allows you to save
    your progress.
    Written-by: frobtech
Commits on Oct 30, 2011
  1. Merge pull request #33 from purcell/master

    Allow users to customize the default major mode, and to specify URL pattern -> major mode mappings
  2. edit-server.el: rebind C-x C-s to edit-server-save

    Following a suggested patch from tarsius on github I've changed the
    behaviour of C-x C-s to save the current buffer into the kill-ring.
    This stops the C-x C-s operation from potentially loosing data in the
    client has disappeared on it.
Commits on Sep 15, 2011
  1. @dsedivec

    Use window-system to detect when we're on OS X

    dsedivec authored
    (featurep 'aquamacs) was false for me on the experimental Emacs Mac
    port, causing edit-server to fail since make-frame-on-display seems to
    only work when you're under X11.  I presume--but have not tested--that
    it would also fail for the official Emacs NS port.
    This new test on window-system should cover Aquamacs (tested), Emacs
    NS port (untested), and the Emacs Mac port (tested).
Commits on Apr 22, 2011
  1. @purcell

    Allow users to customize the default major mode, and to specify URL p…

    purcell authored
    …attern -> major mode mappings
Commits on Mar 9, 2011
  1. @riccardomurri

    edit-server.el: Use a minor mode instead of a derived mode.

    riccardomurri authored
    Makes it possible to change major mode using
Commits on Jan 3, 2011
  1. Call (raise-frame) even if we don't create a new frame.

    Also clean up indentation which was horribly broken.
Commits on Dec 23, 2010
  1. @tommorris

    fixed indentation error in servers/

    tommorris authored committed
Commits on Nov 10, 2010
  1. @ryszard
Commits on Nov 9, 2010
  1. @gfxmonk

    Made indentation consistent across all source files

    gfxmonk authored
    Raw tabs, displayed with indent 2. Added a section to the README
    explaining this, and added emacs & vim modelines to adhere to these
Commits on Oct 26, 2010
  1. @mdevuyst

    Added more options to the Python edit server.

    mdevuyst authored
    Command-line options can set the text editor and port.
Commits on Oct 24, 2010
  1. @mdevuyst

    Incremental saves in text editor make updates to textarea.

    mdevuyst authored
    This is accomplished by extending the communication protocol between
    the extension and the edit server.  The edit server watches for
    changes to the temp file it creates.  When a change is discovered, the
    edit server responds as normal, except that it adds two new headers,
    'x-file' and 'x-open'.  The value for 'x-file' is the name of the
    temporary file.  The value for 'x-open' is set to 'true'.  When the
    extension receives a response with 'x-open' set to 'true', it
    immediately makes another request to the edit server, adding a header,
    'x-file', whose value is the same as the value in the preceding
    response.  If the edit server gets a request with a valid 'x-file'
    header, it does not create a new temp file and spawn a new text editor
    instance.  Instead, it watches the given file for changes.  The
    process of the text editor is also monitored for termination.  A
    terminated editor instance also triggers a response by the edit
    The Python edit server was the only one modified to handle the
    changes.  It shouldn't be too difficult to update the Emacs-based edit
    server in the future.
Commits on Aug 19, 2010
  1. @remvee
Commits on Jul 11, 2010
  1. @cbbrowne

    XEmacs compatibility checks

    cbbrowne authored committed
    XEmacs does not implement make-network-process, so this won't work there yet.
    Added a check for the feature, and modified docs to mention this.
Commits on Jul 9, 2010
  1. From: "David J. Biesack" <>

    Here is a small patch that I have found convenient - it allows the
    edit buffer to run in multibyte mode, so that it displays Unicode
    characters correctly in Emacs 23. (I often edit wiki pages in which
    others have inserted Unicode ellipses ... or left/right double quotes
    or em dash. With emacs multibyte enabled, this characters display
    correctly instead  of as binary bytes.
Commits on Apr 26, 2010
  1. @iRi-E
  2. @nelhage
Something went wrong with that request. Please try again.