diff options
| author | Karl Heuer | 1995-02-01 02:30:43 +0000 |
|---|---|---|
| committer | Karl Heuer | 1995-02-01 02:30:43 +0000 |
| commit | e17cb81b36c71341f4c862c3a438ccffbe53231d (patch) | |
| tree | 7ea85c6d3a914170f8abd5d6a3ad3b736dca1701 /src | |
| parent | e07d7a05ddab39fc218e9b5f1ba8406e9e291d57 (diff) | |
| download | emacs-e17cb81b36c71341f4c862c3a438ccffbe53231d.tar.gz emacs-e17cb81b36c71341f4c862c3a438ccffbe53231d.zip | |
(Fml_provide_prefix_argument, Fml_prefix_argument_loop): Use perdisplay.
Diffstat (limited to 'src')
| -rw-r--r-- | src/mocklisp.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/mocklisp.c b/src/mocklisp.c index ccf6f15c75a..4359edb0719 100644 --- a/src/mocklisp.c +++ b/src/mocklisp.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Mocklisp compatibility functions for GNU Emacs Lisp interpreter. | 1 | /* Mocklisp compatibility functions for GNU Emacs Lisp interpreter. |
| 2 | Copyright (C) 1985, 1986 Free Software Foundation, Inc. | 2 | Copyright (C) 1985, 1986, 1995 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
| @@ -140,7 +140,9 @@ DEFUN ("ml-provide-prefix-argument", Fml_provide_prefix_argument, Sml_provide_pr | |||
| 140 | { | 140 | { |
| 141 | struct gcpro gcpro1; | 141 | struct gcpro gcpro1; |
| 142 | GCPRO1 (args); | 142 | GCPRO1 (args); |
| 143 | Vcurrent_prefix_arg = Feval (Fcar (args)); | 143 | if (!current_perdisplay) |
| 144 | abort (); | ||
| 145 | current_perdisplay->Vcurrent_prefix_arg = Feval (Fcar (args)); | ||
| 144 | UNGCPRO; | 146 | UNGCPRO; |
| 145 | return Feval (Fcar (Fcdr (args))); | 147 | return Feval (Fcar (Fcdr (args))); |
| 146 | } | 148 | } |
| @@ -156,11 +158,13 @@ DEFUN ("ml-prefix-argument-loop", Fml_prefix_argument_loop, Sml_prefix_argument_ | |||
| 156 | struct gcpro gcpro1; | 158 | struct gcpro gcpro1; |
| 157 | 159 | ||
| 158 | /* Set `arg' in case we call a built-in function that looks at it. Still are a few. */ | 160 | /* Set `arg' in case we call a built-in function that looks at it. Still are a few. */ |
| 159 | if (NILP (Vcurrent_prefix_arg)) | 161 | if (!current_perdisplay) |
| 162 | abort (); | ||
| 163 | tem = current_perdisplay->Vcurrent_prefix_arg; | ||
| 164 | if (NILP (tem)) | ||
| 160 | i = 1; | 165 | i = 1; |
| 161 | else | 166 | else |
| 162 | { | 167 | { |
| 163 | tem = Vcurrent_prefix_arg; | ||
| 164 | if (CONSP (tem)) | 168 | if (CONSP (tem)) |
| 165 | tem = Fcar (tem); | 169 | tem = Fcar (tem); |
| 166 | if (EQ (tem, Qminus)) | 170 | if (EQ (tem, Qminus)) |