view etc/emacs.csh @ 98230:e37978ef9db9

* xterm.h (x_display_info): Remove `height' and `width' members. * nsterm.h (ns_display_info): Remove `height' and `width' members. * w32term.h (w32_display_info): Remove `height', `width', `height_in', and `width_in' members. * xterm.c (x_display_pixel_height, x_display_pixel_width): New functions. (x_calc_absolute_position): Use them. (x_term_init): Omit removed `height' and `width' members. * w32term.c (x_display_pixel_height, x_display_pixel_width): New functions. (w32_read_socket, x_calc_absolute_position): Use them. (w32_initialize_display_info, w32_term_init): Omit removed members of w32_display_info. * nsterm.m (x_display_pixel_height, x_display_pixel_width): New functions. (ns_initialize_display_info): Omit removed members of ns_display_info. * xterm.c (x_display_pixel_height, x_display_pixel_width): New functions. (x_calc_absolute_position): Use them. (x_term_init): Omit removed `height' and `width' members. * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height) (compute_tip_xy): Use x_display_pixel_height and x_display_pixel_width. * frame.c (x_fullscreen_adjust): Use x_display_pixel_height and x_display_pixel_width. * xmenu.c (menu_position_func): Use x_display_pixel_height and x_display_pixel_width.
author Chong Yidong <cyd@stupidchicken.com>
date Thu, 18 Sep 2008 18:21:05 +0000
parents e5c92420fce1
children bdb3fe0ba9fa 4f618405b3d2
line wrap: on
line source

### emacs.csh

## Add legal notice if non-trivial amounts of code are added.

## Author: Michael DeCorte

### Commentary:

## This defines a csh command named `edit' which resumes an
## existing Emacs or starts a new one if none exists.
## One way or another, any arguments are passed to Emacs to specify files
## (provided you have loaded `resume.el').

## These are the possible values of $whichjob
## 1 = new ordinary emacs (the -nw is so that it doesn't try to do X)
## 2 = resume emacs
## 3 = new emacs under X (-i is so that you get a reasonable icon)
## 4 = resume emacs under X
set EMACS_PATTERN="^\[[0-9]\]  . Stopped ............ $EMACS"

alias edit 'set emacs_command=("emacs -nw \!*" "fg %emacs" "emacs -i \!* &"\
 "emacsclient \!* &") ; \
 jobs >! $HOME/.jobs; grep "$EMACS_PATTERN" < $HOME/.jobs >& /dev/null; \
 @ isjob = ! $status; \
 @ whichjob = 1 + $isjob + $?DISPLAY * 2 + $?WINDOW_PARENT * 4; \
 test -S ~/.emacs_server && emacsclient \!* \
 || echo `pwd` \!* >! ~/.emacs_args && eval $emacs_command[$whichjob]'

# arch-tag: 433d58df-15b9-446f-ad37-f0393e3a23d4