help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: using DDE from gnu-emacs


From: Hans Fr . Nordhaug
Subject: Re: using DDE from gnu-emacs
Date: 08 Dec 2002 13:18:05 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Ehud Reshef <ehud.reshef@comsysmobile.com> writes:

> Jesper Harder wrote:
> > ehudre@post.tau.ac.il (Ehud Reshef) writes:
> >
> >>I Would like to modify AuCTeX's latex-pdf feature, as to first close
> >>any possibly open instances of the destination PDF file.
> >>I have seen that TeXnicCenter does that using Acrobat Reader's DDE.
> >>
> >>I am looking for a way to send to Acrobat, a DDE command from
> >>gnu-Emacs
> > See:
> > <http://groups.google.com/groups?threadm=wkd778pgoh.fsf%40try.harder.Invalid&rnum=3>
> 
> Thanks
> I'll try to modify that to as per TeXnicCenter (unless there is
> something proven...)

No, no. TeXnicCenter already *does* use DDE - at least in the current
version (and it works like a charm). Read the FAQ (and help pages
pointed to):

 http://www.toolscenter.org/products/texniccenter/faq.htm#cat5_0

Hans
>From help-gnu-emacs-bounces@gnu.org  Sun Dec  8 11:45:09 2002
Path: 
shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-out.visi.com!hermes.visi.com!gemini.bitstream.net.POSTED!not-for-mail
Sender: airboss@discus.nodewarrior.org
Newsgroups: gnu.emacs.help
References: <Vr7I9.118824$Kj1.4834392@twister.austin.rr.com>
From: Dan Debertin <airboss@nodewarrior.org>
Date: 08 Dec 2002 10:38:44 -0600
Message-ID: <87of7wfotn.fsf@discus.nodewarrior.org>
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Lines: 16
NNTP-Posting-Host: 35b99129.news.bitstream.net
X-Trace: 1039365609 gemini.bitstream.net 79562 216.243.168.18
X-Complaints-To: abuse@bitstream.net
Xref: shelby.stanford.edu gnu.emacs.help:107872
To: help-gnu-emacs@gnu.org
Subject: Re: Saving file edit environment
X-BeenThere: help-gnu-emacs@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org>
List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help>
List-Post: <mailto:help-gnu-emacs@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/help-gnu-emacs>,
        <mailto:help-gnu-emacs-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/help-gnu-emacs>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/help-gnu-emacs>,
        <mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Sun, 08 Dec 2002 16:45:09 -0000

"CarlC" <carlc@snowbd.com> writes:

> I want to be able to save some edit session variables for every file when it
> is saved. 

This:

http://emacs-session.sourceforge.net

Should do all (or most) of what you need.

Dan
--
/^Dan Debertin$/         
airboss@nodewarrior.org  | Did I sleep a little too late,
www.nodewarrior.org      | or am I awake?        --Byrne
>From help-gnu-emacs-bounces@gnu.org  Sun Dec  8 12:20:11 2002
Path: 
shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!teaser.fr!newsfeed.stueberl.de!newsr1.ipcore.viaginterkom.de!btnet-peer1!btnet-peer0!btnet-feed5!btnet!news.btopenworld.com!nyaumo.btinternet.com!nobody
From: Jason Rumney <jasonr@btinternet.co>
Newsgroups: gnu.emacs.help
Date: Sun, 8 Dec 2002 17:18:18 +0000 (UTC)
Organization: BT Openworld
Lines: 20
Sender: jasonr@nyaumo.btinternet.com
Message-ID: <m2vg25biet.fsf@nyaumo.btinternet.com>
References: <un0niuptv.fsf@sdm.de>
NNTP-Posting-Host: host213-1-148-76.in-addr.btopenworld.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: knossos.btinternet.com 1039367898 17584 213.1.148.76 (8 Dec 2002
        17:18:18 GMT)
X-Complaints-To: news-complaints@lists.btinternet.com
NNTP-Posting-Date: Sun, 8 Dec 2002 17:18:18 +0000 (UTC)
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50
Xref: shelby.stanford.edu gnu.emacs.help:107873
To: help-gnu-emacs@gnu.org
Subject: Re: Question for help-echo property
X-BeenThere: help-gnu-emacs@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org>
List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help>
List-Post: <mailto:help-gnu-emacs@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/help-gnu-emacs>,
        <mailto:help-gnu-emacs-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/help-gnu-emacs>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/help-gnu-emacs>,
        <mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Sun, 08 Dec 2002 17:20:11 -0000

Klaus Berndl <Klaus.Berndl@sdm.de> writes:

>     (put-text-property p (+ p (length text)) 'help-echo
>                        'klaus-help-echo-fn)
> 
> (defun klaus-help-echo-fn (win obj pos)
>   (message "Position: %d" pos))

This results in both message and help-echo displaying the same thing
in the mode-line. It would be better to use format rather than
message.

> BTW: If i remember right, the stuff with a function as value for the
> help-property has already worked well, and i suppose this was with Emacs 21.1.
> Now I'm using 21.2.! Is is possible that concerning help-echo something has
> changed??

I recall some bugs were fixed in the MS-Windows code to prevent
excessive redisplaying of help-echo in the minibuffer which was causing
CPU usage to approach 100% in some cases. Perhaps the fix went too far.
>From help-gnu-emacs-bounces@gnu.org  Sun Dec  8 13:45:08 2002
Path: 
shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!xmission!news.cc.utah.edu!not-for-mail
From: Eric Eide <eeide@cs.utah.edu>
Newsgroups: gnu.emacs.help
Date: Sun, 08 Dec 2002 11:43:27 -0700 (MST)
Organization: University of Utah School of Computing
Lines: 43
Message-ID: <ywrptscmjw0.fsf@ioka.flux.utah.edu>
References: <ur8cvv3j4.fsf@sdm.de>
NNTP-Posting-Host: ioka.flux.utah.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: coward.ks.cc.utah.edu 1039373011 8088 155.98.60.84 (8 Dec 2002
        18:43:31 GMT)
X-Complaints-To: abuse@cc.utah.edu
NNTP-Posting-Date: 8 Dec 2002 18:43:31 GMT
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Cuyahoga Valley)
Xref: shelby.stanford.edu gnu.emacs.help:107874
To: help-gnu-emacs@gnu.org
Subject: Re: package for silencing the bytecompiler
X-BeenThere: help-gnu-emacs@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org>
List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help>
List-Post: <mailto:help-gnu-emacs@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/help-gnu-emacs>,
        <mailto:help-gnu-emacs-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/help-gnu-emacs>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/help-gnu-emacs>,
        <mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Sun, 08 Dec 2002 18:45:08 -0000

"Klaus" == Klaus Berndl <Klaus.Berndl@sdm.de> writes about `silcomp.el' (in
group `gnu.emacs.sources'):

        Klaus> ;; foo.el should be work for both of Emacs and XEmacs, so we use
        Klaus> ;; the functions `display-message' and `clear-message' for the
        Klaus> ;; XEmacs stuff and the variables `message-log-max' and
        Klaus> ;; `message-truncate-lines' for Emacs. The XEmacs-symbols are
        Klaus> ;; unbound in Emacs and vice versa. Therefore the bytecompiler
        Klaus> ;; throws warnings about undefined symbols. [...]
        Klaus> ;;
        Klaus> ;; With silcomp.el you can silence the bytecompiler for foo.el:
        Klaus> ;; [...]
        Klaus> ;;      | ;; XEmacs
        Klaus> ;;      | (silcomp-defun display-message)
        Klaus> ;;      | (silcomp-defun clear-message)
        Klaus> ;;      | ;; Emacs
        Klaus> ;;      | (silcomp-defvar message-log-max)
        Klaus> ;;      | (silcomp-defvar message-truncate-lines)

For a different approach to avoiding portability-related warnings from the byte
compiler, look at my `emacs-vers.el' package:

  <http://www.cs.utah.edu/~eeide/emacs/emacs-vers.el.gz>

With `emacs-vers.el', one can specify that Emacs flavor/version tests should be
resolved at compile-time by the byte compiler.  The optimizer can then
eliminate dead code (i.e., for the non-targeted versions of Emacs) that would
otherwise give rise to various warnings about undefined symbols, etc.

(Note that compile-time version testing is *not* the default behavior of the
`emacs-vers.el' package.  Comments in the file describe how one chooses between
run-time and compile-time version tests.)

Of course, compile-time version determination is not always what one wants.
For cases in which one wants run-time tests, `silcomp.el' looks like a nice way
to avoid unwanted warnings.

Eric.

-- 
-------------------------------------------------------------------------------
Eric Eide <eeide@cs.utah.edu>  .         University of Utah School of Computing
http://www.cs.utah.edu/~eeide/ . +1 (801) 585-5512 voice, +1 (801) 581-5843 FAX
>From calhounm@mac.com Sun Dec 08 14:33:06 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
        id 18L7Ao-000872-00
        for help-gnu-emacs@gnu.org; Sun, 08 Dec 2002 14:33:06 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
        id 18L7Al-00084b-00
        for help-gnu-emacs@gnu.org; Sun, 08 Dec 2002 14:33:04 -0500
Received: from smtpout.mac.com ([17.250.248.89])
        by monty-python.gnu.org with esmtp (Exim 4.10.13)
        id 18L7Ak-00083H-00
        for help-gnu-emacs@gnu.org; Sun, 08 Dec 2002 14:33:02 -0500
Received: from asmtp01.mac.com (asmtp01-qfe3 [10.13.10.65])
        by smtpout.mac.com (8.12.2/MantshX 2.0) with ESMTP id gB8JWxSQ011972
        for <help-gnu-emacs@gnu.org>; Sun, 8 Dec 2002 11:32:59 -0800 (PST)
Received: from mac.com ([12.234.253.103]) by asmtp01.mac.com
          (Netscape Messaging Server 4.15) with ESMTP id H6TFMY00.67P for
          <help-gnu-emacs@gnu.org>; Sun, 8 Dec 2002 11:32:58 -0800 
Date: Sun, 8 Dec 2002 11:32:57 -0800
Mime-Version: 1.0 (Apple Message framework v548)
Content-Type: text/plain; charset=US-ASCII; format=flowed
From: Matthew Calhoun <calhounm@mac.com>
To: help-gnu-emacs@gnu.org
Content-Transfer-Encoding: 7bit
Message-Id: <DB0A7810-0AE3-11D7-B69B-0003930EBF00@mac.com>
X-Mailer: Apple Mail (2.548)
Subject: More colors on Mac OS X
X-BeenThere: help-gnu-emacs@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org>
List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help>
List-Post: <mailto:help-gnu-emacs@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/help-gnu-emacs>,
        <mailto:help-gnu-emacs-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/help-gnu-emacs>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/help-gnu-emacs>,
        <mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Sun, 08 Dec 2002 19:33:08 -0000

Hello,

I'm using Mac OS 10.2.2 and the Emacs that came with it (21.1) in tcsh 
in the Terminal application. I'm attempting to use syntax coloring, 
with limited success.

I have this:

(global-font-lock-mode t)
(setq font-lock-maximum-decoration t)
(set-background-color "Black")
(set-foreground-color "White")
(set-cursor-color "White")
(custom-set-faces
'(font-lock-comment-face ((((class color) (background dark)) 
(:foreground "yellow"))))
...

in my .emacs file, and I've set my TERM environment variable to 
"xterm-color". Now I'm getting color, but the only colors available 
seem to be Red, Green, Blue, Cyan, Magenta, Yellow, Black, and White. A 
call to list-colors-display confirms this. Does anyone have any advice 
on how to get more colors (without switching to XEmacs)?

Thanks,
Matt




reply via email to

[Prev in Thread] Current Thread [Next in Thread]