diff options
| author | Joakim Verona | 2013-08-23 17:37:15 +0200 |
|---|---|---|
| committer | Joakim Verona | 2013-08-23 17:37:15 +0200 |
| commit | f211300506e978ca56553398cc0e20976cb91247 (patch) | |
| tree | 918cec1fe73495df1242b856a394ea90185059d4 | |
| parent | f909b7cfa7ccac86db11ea8698d01b167a7f37d6 (diff) | |
| parent | e3a6636351364fe32463d3a8196e5fc564c66422 (diff) | |
| download | emacs-f211300506e978ca56553398cc0e20976cb91247.tar.gz emacs-f211300506e978ca56553398cc0e20976cb91247.zip | |
merge from trunk
| -rw-r--r-- | lisp/ChangeLog | 14 | ||||
| -rw-r--r-- | lisp/calc/calc-keypd.el | 17 | ||||
| -rw-r--r-- | lisp/textmodes/fill.el | 2 |
3 files changed, 21 insertions, 12 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b74f4886f37..df9fce72dd9 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,7 +1,17 @@ | |||
| 1 | 2013-08-23 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * textmodes/fill.el (fill-match-adaptive-prefix): Don't throw away | ||
| 4 | text-properties (bug#15155). | ||
| 5 | |||
| 6 | * calc/calc-keypd.el (calc-keypad-execute): `x-flush-mouse-queue' doesn't | ||
| 7 | exist any more. | ||
| 8 | (calc-keypad-redraw): Remove unused var `pad'. | ||
| 9 | (calc-keypad-press): Remove unused var `menu'. | ||
| 10 | |||
| 1 | 2013-08-23 Martin Rudalics <rudalics@gmx.at> | 11 | 2013-08-23 Martin Rudalics <rudalics@gmx.at> |
| 2 | 12 | ||
| 3 | * window.el (display-buffer-pop-up-frame): Call | 13 | * window.el (display-buffer-pop-up-frame): |
| 4 | pop-up-frame-function with BUFFER current so `make-frame' will | 14 | Call pop-up-frame-function with BUFFER current so `make-frame' will |
| 5 | use it as the new frame's buffer (Bug#15133). | 15 | use it as the new frame's buffer (Bug#15133). |
| 6 | 16 | ||
| 7 | 2013-08-22 Stefan Monnier <monnier@iro.umontreal.ca> | 17 | 2013-08-22 Stefan Monnier <monnier@iro.umontreal.ca> |
diff --git a/lisp/calc/calc-keypd.el b/lisp/calc/calc-keypd.el index a720f12a573..bd24bf7f15d 100644 --- a/lisp/calc/calc-keypd.el +++ b/lisp/calc/calc-keypd.el | |||
| @@ -349,8 +349,7 @@ | |||
| 349 | (if (> (length (car key)) cwid) | 349 | (if (> (length (car key)) cwid) |
| 350 | (substring (car key) 0 cwid) | 350 | (substring (car key) 0 cwid) |
| 351 | (car key)))) | 351 | (car key)))) |
| 352 | (wid (length name)) | 352 | (wid (length name))) |
| 353 | (pad (- cwid (/ wid 2)))) | ||
| 354 | (insert (make-string (/ (- cwid wid) 2) 32) | 353 | (insert (make-string (/ (- cwid wid) 2) 32) |
| 355 | name | 354 | name |
| 356 | (make-string (/ (- cwid wid -1) 2) 32) | 355 | (make-string (/ (- cwid wid -1) 2) 32) |
| @@ -399,7 +398,6 @@ | |||
| 399 | inv calc-inverse-flag) | 398 | inv calc-inverse-flag) |
| 400 | calc-hyperbolic-flag)) | 399 | calc-hyperbolic-flag)) |
| 401 | (invhyp t) | 400 | (invhyp t) |
| 402 | (menu (symbol-value (nth calc-keypad-menu calc-keypad-menus))) | ||
| 403 | (input calc-keypad-input) | 401 | (input calc-keypad-input) |
| 404 | (iexpon (and input | 402 | (iexpon (and input |
| 405 | (or (string-match "\\*[0-9]+\\.\\^" input) | 403 | (or (string-match "\\*[0-9]+\\.\\^" input) |
| @@ -535,19 +533,22 @@ | |||
| 535 | 533 | ||
| 536 | (defun calc-keypad-left-click (event) | 534 | (defun calc-keypad-left-click (event) |
| 537 | "Handle a left-button mouse click in Calc Keypad window." | 535 | "Handle a left-button mouse click in Calc Keypad window." |
| 536 | ;; FIXME: Why not use "@e" instead to select the buffer? | ||
| 538 | (interactive "e") | 537 | (interactive "e") |
| 539 | (with-current-buffer calc-keypad-buffer | 538 | (with-current-buffer calc-keypad-buffer |
| 540 | (goto-char (posn-point (event-start event))) | 539 | (goto-char (posn-point (event-start event))) |
| 541 | (calc-keypad-press))) | 540 | (calc-keypad-press))) |
| 542 | 541 | ||
| 543 | (defun calc-keypad-right-click (event) | 542 | (defun calc-keypad-right-click (_event) |
| 544 | "Handle a right-button mouse click in Calc Keypad window." | 543 | "Handle a right-button mouse click in Calc Keypad window." |
| 544 | ;; FIXME: Why not use "@e" instead to select the buffer? | ||
| 545 | (interactive "e") | 545 | (interactive "e") |
| 546 | (with-current-buffer calc-keypad-buffer | 546 | (with-current-buffer calc-keypad-buffer |
| 547 | (calc-keypad-menu))) | 547 | (calc-keypad-menu))) |
| 548 | 548 | ||
| 549 | (defun calc-keypad-middle-click (event) | 549 | (defun calc-keypad-middle-click (_event) |
| 550 | "Handle a middle-button mouse click in Calc Keypad window." | 550 | "Handle a middle-button mouse click in Calc Keypad window." |
| 551 | ;; FIXME: Why not use "@e" instead to select the buffer? | ||
| 551 | (interactive "e") | 552 | (interactive "e") |
| 552 | (with-current-buffer calc-keypad-buffer | 553 | (with-current-buffer calc-keypad-buffer |
| 553 | (calc-keypad-menu-back))) | 554 | (calc-keypad-menu-back))) |
| @@ -588,7 +589,6 @@ | |||
| 588 | (defun calc-keypad-execute () | 589 | (defun calc-keypad-execute () |
| 589 | (interactive) | 590 | (interactive) |
| 590 | (let* ((prompt "Calc keystrokes: ") | 591 | (let* ((prompt "Calc keystrokes: ") |
| 591 | (flush 'x-flush-mouse-queue) | ||
| 592 | (prefix nil) | 592 | (prefix nil) |
| 593 | keys cmd) | 593 | keys cmd) |
| 594 | (save-excursion | 594 | (save-excursion |
| @@ -605,10 +605,9 @@ | |||
| 605 | (progn | 605 | (progn |
| 606 | (setq last-command-event (aref keys (1- (length keys)))) | 606 | (setq last-command-event (aref keys (1- (length keys)))) |
| 607 | (command-execute cmd) | 607 | (command-execute cmd) |
| 608 | (setq flush 'not-any-more | 608 | (setq prefix t |
| 609 | prefix t | ||
| 610 | prompt (concat prompt (key-description keys) " "))) | 609 | prompt (concat prompt (key-description keys) " "))) |
| 611 | (eq cmd flush))))) ; skip mouse-up event | 610 | nil)))) ; skip mouse-up event |
| 612 | (message "") | 611 | (message "") |
| 613 | (if (commandp cmd) | 612 | (if (commandp cmd) |
| 614 | (command-execute cmd) | 613 | (command-execute cmd) |
diff --git a/lisp/textmodes/fill.el b/lisp/textmodes/fill.el index 5b6d5f359e6..119b4b04593 100644 --- a/lisp/textmodes/fill.el +++ b/lisp/textmodes/fill.el | |||
| @@ -220,7 +220,7 @@ Remove indentation from each line." | |||
| 220 | (let ((str (or | 220 | (let ((str (or |
| 221 | (and adaptive-fill-function (funcall adaptive-fill-function)) | 221 | (and adaptive-fill-function (funcall adaptive-fill-function)) |
| 222 | (and adaptive-fill-regexp (looking-at adaptive-fill-regexp) | 222 | (and adaptive-fill-regexp (looking-at adaptive-fill-regexp) |
| 223 | (match-string-no-properties 0))))) | 223 | (match-string 0))))) |
| 224 | (if (>= (+ (current-left-margin) (length str)) (current-fill-column)) | 224 | (if (>= (+ (current-left-margin) (length str)) (current-fill-column)) |
| 225 | ;; Death to insanely long prefixes. | 225 | ;; Death to insanely long prefixes. |
| 226 | nil | 226 | nil |