Mercurial > emacs
view oldXMenu/DelSel.c @ 89531:f035500271d2
(ps-generate-string-list): Function deleted.
(ps-rh-cache, ps-lf-cache, ps-rf-cache): Variables deleted.
(ps-header-footer-string): Function deleted.
(ps-encode-header-string-function): New variable
(ps-generate-header-line): Call ps-encode-header-string-function.
(ps-basic-plot-string-function): New variable
(ps-begin-job): Set ps-basic-plot-string-function and
ps-encode-header-string-function. For setting up headers and
footers, don't use caches such as ps-rh-cache. Don't call
ps-mule-begin-page.
(ps-basic-plot-str): Don't call ps-mule-prepare-ascii-font.
(ps-basic-plot-string): Likewise.
(ps-control-character): Likewise.
(ps-plot-region): Don't pay attention to composition and
non-ASCII characters.
(ps-generate): Call ps-mule-end-job.
(ps-mule-prepare-ascii-font): Delete autoload.
(ps-mule-set-ascii-font): Likewise.
(ps-mule-plot-string): Likewise.
(ps-mule-begin-page): Likewise.
(ps-mule-end-job): Declare autoload.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Fri, 26 Sep 2003 11:59:31 +0000 |
parents | 375f2633d815 |
children | 68c22ea6027c |
line wrap: on
line source
#include "copyright.h" /* $Header: /cvs/emacs/oldXMenu/DelSel.c,v 1.1 1999/10/03 19:34:58 fx Exp $ */ /* Copyright Massachusetts Institute of Technology 1985 */ /* * XMenu: MIT Project Athena, X Window system menu package * * XMenuDeleteSelection - Deletes a selection from an XMenu object. * * Author: Tony Della Fera, DEC * 20-Nov-85 * */ #include "XMenuInt.h" int XMenuDeleteSelection(display, menu, p_num, s_num) register Display *display; /* Previously opened display. */ register XMenu *menu; /* Menu object to be modified. */ register int p_num; /* Pane number to be deleted. */ register int s_num; /* Selection number to be deleted. */ { register XMPane *p_ptr; /* Pointer to pane being deleted. */ register XMSelect *s_ptr; /* Pointer to selections being deleted. */ /* * Find the right pane. */ p_ptr = _XMGetPanePtr(menu, p_num); if (p_ptr == NULL) return(XM_FAILURE); /* * Find the right selection. */ s_ptr = _XMGetSelectionPtr(p_ptr, s_num); if (s_ptr == NULL) return(XM_FAILURE); /* * Remove the selection from the association table. */ XDeleteAssoc(display, menu->assoc_tab, s_ptr->window); /* * Remove the selection from the parent pane's selection * list and update the selection count. */ emacs_remque(s_ptr); p_ptr->s_count--; /* * Destroy the selection transparency. */ if (s_ptr->window) XDestroyWindow(display, s_ptr->window); /* * Free the selection's XMSelect structure. */ free(s_ptr); /* * Schedule a recompute. */ menu->recompute = 1; /* * Return the selection number just deleted. */ _XMErrorCode = XME_NO_ERROR; return(s_num); }