all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Rui Tiago Matos <tiagomatos@gmail.com>
Subject: Re: End of file during parsing?
Date: Mon, 11 Apr 2005 22:59:25 +0100	[thread overview]
Message-ID: <eae3b34105041114592819c16e@mail.gmail.com> (raw)
In-Reply-To: <barmar-4AAA51.23395310042005@comcast.dca.giganews.com>

On Apr 11, 2005 4:39 AM, Barry Margolin <barmar@alum.mit.edu> wrote:
> Try changing the command line that invokes emacs in that case to:
> 
> emacs21 "$CMDLINE"

Indeed that works, thanks!

Yet it only solved only part of the problem as I still continued to
have some problems but finally I've come to a solution and I can
finally edit multiple files smoothly :-) FWIW here is the final
version:

emacs () 
{ 
    if [ -z "$DISPLAY" ]; then
        emacs21 "$@";
    else
        if [ ! "`/bin/ps -U $UID | grep emacs`" ]; then
            local CMDLINE="--eval=(defun myfun () ";
            local FILE;
            for FILE in $*;
            do
                if ( grep ^/ <<< $FILE ) || ( grep ^~ <<< $FILE ); then
                    CMDLINE="$CMDLINE(find-file-other-frame \"$FILE\")";
                else
                    CMDLINE="$CMDLINE(find-file-other-frame \"$PWD/$FILE\")";
                fi;
            done;
            if [ $# != 0 ]; then
                emacs21 "$CMDLINE"")" -f myfun &
            else
                emacs21 &
            fi;
        else
            local CMDLINE="-q";
            local FILE;
            for FILE in $*;
            do
                if ( grep ^/ <<< $FILE ) || ( grep ^~ <<< $FILE ); then
                    CMDLINE="$CMDLINE (find-file-other-frame \"$FILE\")";
                else
                    CMDLINE="$CMDLINE (find-file-other-frame \"$PWD/$FILE\")";
                fi;
            done;
            if [ "$CMDLINE" != "-q" ]; then
                gnudoit $CMDLINE;
            fi;
        fi;
    fi
}

  reply	other threads:[~2005-04-11 21:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1001.1113162562.2895.help-gnu-emacs@gnu.org>
2005-04-11  3:39 ` End of file during parsing? Barry Margolin
2005-04-11 21:59   ` Rui Tiago Matos [this message]
2005-04-10 20:12 Rui Tiago Matos
2005-04-10 23:37 ` Peter Dyballa
2005-04-10 23:47   ` Rui Tiago Matos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=eae3b34105041114592819c16e@mail.gmail.com \
    --to=tiagomatos@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.