Mercurial > emacs
comparison lisp/x-menu.el @ 806:d42e1151eed8
*** empty log message ***
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Thu, 16 Jul 1992 21:47:30 +0000 |
parents | 9c89fd7ddd41 |
children | 2cdce064065f |
comparison
equal
deleted
inserted
replaced
805:10f8af91ab47 | 806:d42e1151eed8 |
---|---|
7 | 7 |
8 ;; This file is part of GNU Emacs. | 8 ;; This file is part of GNU Emacs. |
9 | 9 |
10 ;; GNU Emacs is free software; you can redistribute it and/or modify | 10 ;; GNU Emacs is free software; you can redistribute it and/or modify |
11 ;; it under the terms of the GNU General Public License as published by | 11 ;; it under the terms of the GNU General Public License as published by |
12 ;; the Free Software Foundation; either version 1, or (at your option) | 12 ;; the Free Software Foundation; either version 2, or (at your option) |
13 ;; any later version. | 13 ;; any later version. |
14 | 14 |
15 ;; GNU Emacs is distributed in the hope that it will be useful, | 15 ;; GNU Emacs is distributed in the hope that it will be useful, |
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | 16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of |
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
105 | 105 |
106 This also creates the menu itself." | 106 This also creates the menu itself." |
107 (let ((buf (current-buffer))) | 107 (let ((buf (current-buffer))) |
108 (pop-to-buffer menu) | 108 (pop-to-buffer menu) |
109 (let (buffer-read-only) | 109 (let (buffer-read-only) |
110 (setq x-menu-max-width (1- (screen-width))) | 110 (setq x-menu-max-width (1- (frame-width))) |
111 (setq x-menu-item-width 0) | 111 (setq x-menu-item-width 0) |
112 (let (items-head | 112 (let (items-head |
113 (items-tail x-menu-items-alist)) | 113 (items-tail x-menu-items-alist)) |
114 (while items-tail | 114 (while items-tail |
115 (if (caar items-tail) | 115 (if (caar items-tail) |