diff options
| author | Joakim Verona | 2012-11-06 23:01:10 +0100 |
|---|---|---|
| committer | Joakim Verona | 2012-11-06 23:01:10 +0100 |
| commit | 643b1893347ee5c32f6174d0f76a55d723060123 (patch) | |
| tree | 06847c9375f32e91446bfdbe9aa342cb232be90f /src/buffer.c | |
| parent | 9c809558c18410acf9b90529e183d192afca3d2c (diff) | |
| parent | b6b3b29458fefcf7f31a0b14d6484cf262db2e54 (diff) | |
| download | emacs-643b1893347ee5c32f6174d0f76a55d723060123.tar.gz emacs-643b1893347ee5c32f6174d0f76a55d723060123.zip | |
upstream
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 31 |
1 files changed, 12 insertions, 19 deletions
diff --git a/src/buffer.c b/src/buffer.c index 0b3dde27968..bb69675346a 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -406,7 +406,6 @@ followed by the rest of the buffers. */) | |||
| 406 | Lisp_Object framelist, prevlist, tail; | 406 | Lisp_Object framelist, prevlist, tail; |
| 407 | Lisp_Object args[3]; | 407 | Lisp_Object args[3]; |
| 408 | 408 | ||
| 409 | CHECK_FRAME (frame); | ||
| 410 | framelist = Fcopy_sequence (XFRAME (frame)->buffer_list); | 409 | framelist = Fcopy_sequence (XFRAME (frame)->buffer_list); |
| 411 | prevlist = Fnreverse (Fcopy_sequence | 410 | prevlist = Fnreverse (Fcopy_sequence |
| 412 | (XFRAME (frame)->buried_buffer_list)); | 411 | (XFRAME (frame)->buried_buffer_list)); |
| @@ -1543,17 +1542,11 @@ list first, followed by the list of all buffers. If no other buffer | |||
| 1543 | exists, return the buffer `*scratch*' (creating it if necessary). */) | 1542 | exists, return the buffer `*scratch*' (creating it if necessary). */) |
| 1544 | (register Lisp_Object buffer, Lisp_Object visible_ok, Lisp_Object frame) | 1543 | (register Lisp_Object buffer, Lisp_Object visible_ok, Lisp_Object frame) |
| 1545 | { | 1544 | { |
| 1546 | Lisp_Object tail, buf, pred; | 1545 | struct frame *f = decode_any_frame (frame); |
| 1547 | Lisp_Object notsogood = Qnil; | 1546 | Lisp_Object tail = f->buffer_list, pred = f->buffer_predicate; |
| 1547 | Lisp_Object buf, notsogood = Qnil; | ||
| 1548 | 1548 | ||
| 1549 | if (NILP (frame)) | ||
| 1550 | frame = selected_frame; | ||
| 1551 | |||
| 1552 | CHECK_FRAME (frame); | ||
| 1553 | |||
| 1554 | pred = frame_buffer_predicate (frame); | ||
| 1555 | /* Consider buffers that have been seen in the frame first. */ | 1549 | /* Consider buffers that have been seen in the frame first. */ |
| 1556 | tail = XFRAME (frame)->buffer_list; | ||
| 1557 | for (; CONSP (tail); tail = XCDR (tail)) | 1550 | for (; CONSP (tail); tail = XCDR (tail)) |
| 1558 | { | 1551 | { |
| 1559 | buf = XCAR (tail); | 1552 | buf = XCAR (tail); |
| @@ -2109,7 +2102,7 @@ set_buffer_internal_1 (register struct buffer *b) | |||
| 2109 | return; | 2102 | return; |
| 2110 | 2103 | ||
| 2111 | BUFFER_CHECK_INDIRECTION (b); | 2104 | BUFFER_CHECK_INDIRECTION (b); |
| 2112 | 2105 | ||
| 2113 | old_buf = current_buffer; | 2106 | old_buf = current_buffer; |
| 2114 | current_buffer = b; | 2107 | current_buffer = b; |
| 2115 | last_known_column_point = -1; /* invalidate indentation cache */ | 2108 | last_known_column_point = -1; /* invalidate indentation cache */ |
| @@ -6210,15 +6203,15 @@ is a member of the list. */); | |||
| 6210 | doc: /* Cursor to use when this buffer is in the selected window. | 6203 | doc: /* Cursor to use when this buffer is in the selected window. |
| 6211 | Values are interpreted as follows: | 6204 | Values are interpreted as follows: |
| 6212 | 6205 | ||
| 6213 | t use the cursor specified for the frame | 6206 | t use the cursor specified for the frame |
| 6214 | nil don't display a cursor | 6207 | nil don't display a cursor |
| 6215 | box display a filled box cursor | 6208 | box display a filled box cursor |
| 6216 | hollow display a hollow box cursor | 6209 | hollow display a hollow box cursor |
| 6217 | bar display a vertical bar cursor with default width | 6210 | bar display a vertical bar cursor with default width |
| 6218 | (bar . WIDTH) display a vertical bar cursor with width WIDTH | 6211 | (bar . WIDTH) display a vertical bar cursor with width WIDTH |
| 6219 | hbar display a horizontal bar cursor with default height | 6212 | hbar display a horizontal bar cursor with default height |
| 6220 | (hbar . HEIGHT) display a horizontal bar cursor with height HEIGHT | 6213 | (hbar . HEIGHT) display a horizontal bar cursor with height HEIGHT |
| 6221 | ANYTHING ELSE display a hollow box cursor | 6214 | ANYTHING ELSE display a hollow box cursor |
| 6222 | 6215 | ||
| 6223 | When the buffer is displayed in a non-selected window, the | 6216 | When the buffer is displayed in a non-selected window, the |
| 6224 | cursor's appearance is instead controlled by the variable | 6217 | cursor's appearance is instead controlled by the variable |