Commit graph

61479 commits

Author SHA1 Message Date
Kan-Ru Chen
df2ead390d Fix `fit-window-to-buffer' (Bug#18498).
* window.el (fit-window-to-buffer): When counting buffer width,
count the whole visible buffer.  Correctly convert the body-height
to pixel size for window-text-pixel-size (Bug#18498).
2014-09-18 14:06:17 +02:00
Glenn Morris
d4dc0e1691 * lisp/image.el (image-multi-frame-p): Fix thinko
do not force a delay if none was specified.

Fixes: debbugs:18334
2014-09-14 16:59:57 -07:00
Kan-Ru Chen
c4ea7c9612 Fix fit-window-to-buffer doc-string. 2014-09-12 08:26:46 +02:00
Ivan Shmakov
2776a6502b * lisp/desktop.el (desktop-create-buffer): Check that buffers are still live
before burying them.

Fixes: debbugs:18373
2014-09-09 20:47:20 -04:00
Glenn Morris
d7a3bb022c * calendar/diary-lib.el (diary-list-entries): Restore 24.3 display behavior.
Fixes: debbugs:18381
2014-09-09 14:09:54 -04:00
Eli Zaretskii
da604136b9 Fix mouse-dragging mode lines on text-mode terminals.
lisp/mouse.el (mouse-drag-line): On text-mode frames, count the mode
 line and header line as 1 pixel.  This fixes the 1-"pixel" (row)
 discrepancy between window-pixel-edges and mouse events, and
 avoids moving mode line up when the mouse click is on the modeline
 and no drag is attempted.
2014-09-09 18:00:51 +03:00
Glenn Morris
6e82d877a4 * calendar.el (calendar-basic-setup): Avoid clobbering calendar with diary.
Fixes: debbugs:18381
2014-09-07 22:57:24 -07:00
Stefan Monnier
6ac5571c62 * lisp/vc/vc-dir.el (vc-dir-update): Don't burp in corner case. 2014-09-05 13:37:12 -04:00
Lars Ljung
bcbaf6b7be * lisp/isearch.el (isearch-yank-word-or-char): Obey superword-mode
as well.

Fixes: debbugs:18400
2014-09-04 12:14:26 -04:00
Eli Zaretskii
304661b97f Fix misleading doc string revealed in bug #18385.
lisp/subr.el (posn-actual-col-row): Doc fix.
2014-09-04 18:21:40 +03:00
Stefan Monnier
559b827d8a * lisp/emacs-lisp/package.el (package-generate-description-file):
Properly quote the arguments.  Change second arg.
(package--alist-to-plist-args): Rename from package--alist-to-plist and
quote the elements.
(package--make-autoloads-and-stuff): Fix the test for pre-existence of
the *-pkg.el file.  Adjust to new calling convention of
package-generate-description-file.

Fixes: debbugs:18332
2014-09-02 15:51:25 -04:00
Stefan Monnier
9de3064db6 * lisp/progmodes/gud.el (gud-gdb-completion-at-point): Add hack.
(gud-gdb-completions): Remove obsolete workaround.

Fixes: debbugs:18282
2014-09-02 14:16:32 -04:00
Eli Zaretskii
5735a30d59 Fix bug #18384 with incorrect reporting of row number by posn-col-row.
lisp/subr.el (posn-col-row): Revert the change from commit
 2010-11-13T21:07:58Z!eliz@gnu.org, which
 was inadvertently merged from emacs-23 release branch in 
2010-11-18T03:54:14Z!monnier@iro.umontreal.ca, and
 introduced an off-by-one error in the reported row when there is a
 header line.

 src/dispnew.c (buffer_posn_from_coords): Fix an off-by-one error in
 the reported row in the case of a window with a header line, by
 improving on the fix committed in 2011-10-08T10:58:50Z!eliz@gnu.org
 eliz@gnu.org-20111008105850-ht4tvsayohvr1kjc.
2014-09-02 18:16:42 +03:00
Glenn Morris
5597a7d4e2 * lisp/tutorial.el: Restore comment lost 2006-12-21. 2014-09-01 23:48:20 -07:00
Fabián Ezequiel Gallina
0e4c8f1856 * lisp/progmodes/python.el (python-indent-post-self-insert-function):
Avoid electric colon at beginning-of-defun. 

* test/automated/python-tests.el:
(python-indent-electric-colon-1): New test.  (Bug#18228)
2014-09-01 19:51:46 -03:00
Glenn Morris
ad5c82a8cc * lisp/tutorial.el (tutorial--display-changes): Fix 2014-07-29 change.
Fixes: debbugs:18382
2014-09-01 09:44:06 -07:00
Eli Zaretskii
7814e6e7fe Minor ChangeLog fix. 2014-08-30 12:29:13 +03:00
Ken Brown
6141b80242 * lisp/startup.el (fancy-splash-frame): Extend the fix for Bug#16014 to the Cygwin-w32 build. (Bug#18347) 2014-08-29 18:13:43 -04:00
Glenn Morris
6539a7e2a2 * lisp/tar-mode.el (tar--extract, tar-extract): Avoid disabling undo
in extracted buffers.

Fixes: debbugs:18344
2014-08-28 15:18:24 -04:00
Michael Albinus
9b6ab1afe4 * emacs-lisp/authors.el (authors-aliases): Addition. 2014-08-27 09:53:58 +02:00
Michael Albinus
dfdb730b10 * net/tramp-adb.el: Spell author name correctly. 2014-08-27 09:25:37 +02:00
Glenn Morris
bd3be308f7 shr.el: Comment. 2014-08-26 22:06:20 -07:00
João Távora
e7b37ae4df * net/shr.el (shr-expand-url): Plain expand-file-name is not enough;
use url-expand-file-name.

Fixes: debbugs:18310
2014-08-26 22:04:47 -07:00
Glenn Morris
20a4f6a967 * emulation/cua-rect.el (cua--highlight-rectangle): Avoid error at point-min.
Fixes: debbugs:18309
2014-08-25 12:40:53 -04:00
Stefan Monnier
5d3c0a067f * lisp/progmodes/python.el (python-shell-prompt-detect): Remove redundant
executable-find.

Fixes: debbugs:18244
2014-08-18 12:11:43 -04:00
Stefan Monnier
27bc6b1465 * lisp/simple.el (self-insert-uses-region-functions): Defvar. 2014-08-18 11:20:27 -04:00
Glenn Morris
315865d31d Regenerate ldefs-boot.el 2014-08-14 21:05:36 -07:00
Leo Liu
e131e4ffae * speedbar.el (speedbar-generic-list-tag-p): Allow special
elements from imenu.
2014-08-13 11:21:43 +08:00
Glenn Morris
727f37e6cc * lisp/subr.el (with-output-to-temp-buffer): Doc fix; from elisp manual. 2014-08-10 18:13:38 -07:00
Glenn Morris
f314e84fce Revert 2013-01-31 change that decides coding system before backing up
It causes a more serious problem than the one it solves.
This closes bug#18141, and reopens bug#13522.

* lisp/files.el (basic-save-buffer-2): Revert 2013-01-31 change.

* src/fileio.c: Revert 2013-01-31 change.
(choose_write_coding_system): No longer callable from Lisp.
Move last piece back here from Fwrite_region.
(Fwrite_region, syms_of_fileio): Update for above changes.

* test/automated/data/files-bug18141.el.gz: New file.
* test/automated/files.el (files-test-bug-18141-file):
New variable and test.
2014-08-10 17:38:19 -07:00
Martin Rudalics
d5f2feb581 Make doc-string of window-total-size more self-contained.
* window.el (window-total-size): Make doc-string more
self-contained.
2014-08-10 12:41:28 +02:00
Martin Rudalics
02e0530477 In display-buffer-below-selected reuse window below selected if it shows buffer already (Bug#18181).
* window.el (display-buffer-below-selected): Restore original
behavior if buffer is already displayed in the window below the
selected one (Bug#18181).
2014-08-09 18:50:13 +02:00
Stefan Monnier
5a88c153fc * lisp/mouse.el (mouse--down-1-maybe-follows-link): Don't convert the down
event.

Fixes: debbugs:18212
2014-08-08 12:56:50 -04:00
Eli Zaretskii
1f3e13c15f lisp/info.el (info): Doc fix. 2014-08-08 16:53:55 +03:00
Stefan Monnier
87eb576e30 * lisp/info.el (Info-mode-map): Override a global down-mouse-2 binding.
Fixes: debbugs:18212
2014-08-07 14:35:54 -04:00
Eli Zaretskii
5818408f50 Fix bug #18195 with inaccurate results from window-screen-lines.
lisp/simple.el (default-line-height): A floating-point value of
 line-spacing means a fraction of the default frame font's height,
 not of the font currently used by the 'default' face.  Truncate
 the pixel value, like the display engine does.
 (window-screen-lines): Use window-inside-pixel-edges for
 determining the window height in pixels.
2014-08-05 16:34:06 +03:00
Paul Eggert
69402c0269 Spelling+grammar fix. 2014-08-01 08:44:42 -07:00
Glenn Morris
eef5843c34 Auto-commit of loaddefs files. 2014-08-01 07:18:48 -04:00
Eli Zaretskii
f0f377774b Fix bug #18146 with bogus key rebindings in TUTORIAL.he.
lisp/tutorial.el (tutorial--display-changes): Accept punctuation
 characters before the key binding.  (Bug#18146)
2014-07-29 16:41:50 +03:00
Tassilo Horn
1c6c2e3c70 Merge commit 2014-07-28T09:07:56Z!tsdh@gnu.org from trunk. 2014-07-28 11:32:25 +02:00
Eli Zaretskii
bc7f1625f6 Fix bugs #16674 and #18112 with resizing TTY frames after switching terminals.
lisp/window.el (window--pixel-to-total): Use FRAME's root window, not
 that of the selected frame.
2014-07-27 16:01:07 +03:00
Andreas Schwab
fb2e15326d Fixes: debbugs:18117
* textmodes/tex-mode.el (tex-font-lock-verb): Doc fix.
2014-07-27 13:38:59 +02:00
Fabián Ezequiel Gallina
85bc77b270 * lisp/progmodes/python.el (inferior-python-mode): Doc fix. 2014-07-26 22:36:48 -03:00
Stephen Berman
e72e661276 * calendar/todo-mode.el (todo-edit-item--next-key): If next key is
not a character, ignore it instead of raising an error.
2014-07-25 23:53:52 +02:00
Stephen Berman
6dd006a86d Fix code and doc involving marked items.
* todo-mode.texi (Marked Items): Correct omission of item deletion
from commands applying to both todo and done items.

* calendar/todo-mode.el: Fix handling of marked items and make
minor code improvements.
(todo-edit-item): If there are marked items, ensure user can only
invoke editing commands that work with marked items.
(todo-edit-item--text): When there are marked items, make it a
noop if invoked with point not on an item; otherwise, ensure it
applies only to item at point.
(todo-item-undone): If there are marked not-done items, return
point to its original position before signaling user error.
(todo--user-error-if-marked-done-item): New function.
(todo-edit-item--header, todo-edit-item--diary-inclusion)
(todo-item-done): Use it.
2014-07-25 18:01:05 +02:00
Glenn Morris
c509a535a8 vc-hooks.el: Fix doc typo in previous 2014-07-25 06:05:10 -04:00
Glenn Morris
59bb37859d More toggle-read-only doc tweaks
* lisp/files.el (toggle-read-only): Re-add basic doc-string.

* lisp/vc/vc-hooks.el (vc-toggle-read-only): Tweak obsolescence mesage.
2014-07-25 05:24:53 -04:00
Glenn Morris
25aa0da588 prolog.el: Fix for missing `switch-to-prolog'
Ref: http://lists.gnu.org/archive/html/emacs-devel/2014-07/msg00228.html

* lisp/progmodes/prolog.el (prolog-mode-keybindings-edit):
Replace missing `switch-to-prolog' with `run-prolog'.
(switch-to-prolog): Define as (obsolete) alias, as in 23.4.
2014-07-25 04:24:00 -04:00
Stephen Berman
37a21453db * calendar/todo-mode.el (todo-set-top-priorities): Fix overwriting
of file-wide setting when changing category-wide setting.
2014-07-22 23:32:04 +02:00
Paul Eggert
ad4c5263f5 Spelling fixes. 2014-07-21 07:41:19 -07:00