1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-02 10:11:05 -08:00
Commit graph

18347 commits

Author SHA1 Message Date
Michael Albinus
3277c1ee3a * net/tramp-gvfs.el (tramp-gvfs-handle-copy-file): Do not pass
empty argument to gvfs-copy.
2010-07-11 10:28:04 +02:00
Aleksei Gusev
dce3463576 Add compilation regexps for cucumber and ruby.
* lisp/progmodes/compile.el (compilation-error-regexp-alist-alist): Add
regexps for cucumber and ruby.
2010-07-10 15:47:59 -04:00
Chong Yidong
2ec1b5ee34 Merge changes from emacs-23 branch. 2010-07-10 14:52:53 -04:00
Daiki Ueno
c0397930d0 Prevent find-file from opening empty buffer when decryptin failed (bug#6568).
* epa-file.el (epa-file-error, epa-file--find-file-not-found-function)
(epa-file-insert-file-contents): Hack to prevent
find-file from opening empty buffer when decryptin failed
(bug#6568).
2010-07-08 10:02:24 +09:00
Agustín Martín
fd5539c6de Improve ispell.el word completion handling.
* ispell.el (ispell-alternate-dictionary): Use file-readable-p.
  Return nil if no word-list is found at default locations.
 (ispell-complete-word-dict): Default to nil.
 (ispell-command-loop): Use 'word-list' when using lookup-words.
 (lookup-words): Use ispell-complete-word-dict or
 ispell-alternate-dictionary.  Check for word-list availability
 and handle errors if needed with better messages (Bug#6539).
 (ispell-complete-word): Use ispell-complete-word-dict or
 ispell-alternate-dictionary.
2010-07-07 12:30:57 +02:00
Christoph Scholtes
4565b08e18 Add some font-locking for Python 2.7.
* lisp/progmodes/python.el (python-font-lock-keywords): Add Python 2.7
builtins (BufferError, BytesWarning, WindowsError; callables
bin, bytearray, bytes, format, memoryview, next, print; __package__).
2010-07-06 21:46:58 -07:00
Glenn Morris
a2c270e752 Minor zone.el fixes for bug#6483.
Zone did not like the intangible newlines etc in the gomoku buffer.

* lisp/play/zone.el (top-level): Do not require timer, tabify, or cl.
(zone-shift-left): Ignore intangibility, and any errors from forward-char.
(zone-shift-right): Remove no-op end-of-line.  Ignore intangibility.
(zone-pgm-putz-with-case): Use upcase-region rather than inserting,
deleting, and copying text properties.
(zone-line-specs, zone-pgm-stress): Check forward-line exit status.
(zone-pgm-rotate): Handle odd buffers like that of gomoku, where getting
to point-max is hard.
(zone-fret, zone-fill-out-screen): Replace cl's do with dotimes.
(zone-fill-out-screen): Ignore intangibility.
2010-07-06 21:16:27 -07:00
Glenn Morris
4955438820 Minor zone.el fix.
* play/zone.el (zone-fall-through-ws): Fix next-line -> forward-line fallout.
2010-07-06 20:52:05 -07:00
Chong Yidong
e8579ebc15 Minor fix to describe-key, and a docstring.
* help.el (describe-key): Print up-event using key-description.

* mouse.el (mouse-appearance-menu): Add docstring.
2010-07-06 15:42:46 -04:00
Chong Yidong
4ad11f8ccb Set default-frame-alist, if necessary, in menu/tool-bar-mode.
* menu-bar.el (menu-bar-mode):
* tool-bar.el (tool-bar-mode): Replace default-frame-alist element
if it has been set.
2010-07-05 13:54:13 -04:00
Chong Yidong
81133808b8 Fix multi-click selection behavior (Bug#6565).
* lisp/mouse.el (mouse-drag-track): Call mouse-start-end to handle
word/line selection (Bug#6565).
2010-07-05 12:42:50 -04:00
Juanma Barranquero
b24344ca48 * net/dbus.el (dbus-send-signal): Declare function. 2010-07-04 16:32:00 +02:00
Michael Albinus
b1ce08daa9 * net/dbus.el: Implement signal "PropertiesChanged" (from D-Bus 1.3.1).
(dbus-register-property): New optional argument EMITS-SIGNAL.
(dbus-property-handler): Send signal "PropertiesChanged" if requested.
2010-07-04 11:52:57 +02:00
Michael Albinus
5d1cd8bd9f * net/zeroconf.el (zeroconf-resolve-service)
(zeroconf-service-resolver-handler): Use
`dbus-byte-array-to-string'.
(zeroconf-publish-service): Use `dbus-string-to-byte-array'.
2010-07-03 13:12:53 +02:00
Michael Albinus
112dbc0eee * net/zeroconf.el (zeroconf-service-remove-hook): New defun. 2010-07-03 12:52:17 +02:00
Chong Yidong
5592c08fbf Simplify mouse-dragging implementation.
Now that DEL deletes active regions, we can handle it by using the
ordinary region instead of a separate overlay.

* mouse.el (mouse-drag-overlay): Variable deleted.
(mouse-move-drag-overlay, mouse-show-mark): Functions deleted.
(mouse--remap-link-click-p): New function.
(mouse-drag-track): Handle dragging by using temporary Transient
Mark mode, instead of a special overlay.
(mouse-kill-ring-save, mouse-save-then-kill): Don't call
mouse-show-mark.

* mouse-sel.el (mouse-sel-selection-alist): mouse-drag-overlay
deleted.
2010-07-02 23:07:48 -04:00
Juri Linkov
a6ed0e2898 * lisp/autoinsert.el (auto-insert-alist): Fix readability
by using dotted pair notation for lambda.
2010-07-03 01:35:09 +03:00
Juri Linkov
c91e692bdf * lisp/faces.el (read-face-name): Rename arg `string-describing-default'
to `default'.  Doc fix.  Display the default value in quotes
in the prompt.  With empty input, return the `default' arg,
unless the default value is a string (in which case return nil).
(describe-face): Replace the string `default' arg of `read-face-name'
with the symbol `default'.
http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg01109.html
2010-07-03 01:28:52 +03:00
Chong Yidong
23640f8fad Replace delete-backward-char Lisp calls in Viper (Bug#6552).
* emulation/viper-cmd.el (viper-delete-backward-char)
(viper-del-backward-char-in-insert)
(viper-del-backward-char-in-replace, viper-change)
(viper-backward-indent): Replace delete-backward-char with
delete-char (Bug#6552).
2010-07-02 10:09:36 -04:00
Chong Yidong
b32d1614ab * ruler-mode.el (ruler--save-header-line-format): Fix typos. 2010-07-01 01:32:01 -04:00
Chong Yidong
c1ef4455ea Fix application of default-frame-alist (Bug#5378).
* lisp/frame.el (make-frame): Add default-frame-alist to the PARAMETERS
argument passed to frame-creation-function (Bug#5378).

* lisp/faces.el (x-handle-named-frame-geometry)
(x-handle-reverse-video, x-create-frame-with-faces)
(face-set-after-frame-default, tty-create-frame-with-faces): Don't
separately consult default-frame-alist.  It is now passed as the
PARAMETER argument.

* src/frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
check default-frame-alist.
2010-06-30 20:14:17 -04:00
Juanma Barranquero
acd0102aa4 Fix whitespace in ChangeLogs. 2010-07-01 02:08:29 +02:00
Andreas Schwab
55702e89b8 * startup.el (command-line): Don't call tool-bar-setup in a tty-only build. 2010-07-01 00:58:19 +02:00
Chong Yidong
dc9a226c7a Don't always set ruler-mode-header-line-format-old (Bug#5370).
* ruler-mode.el (ruler--save-header-line-format): New fun.
(ruler-mode): Use it as a setter function, so as not to overwrite
ruler-mode-header-line-format-old if Ruler mode is on (Bug#5370).
2010-06-30 18:43:52 -04:00
Dan Nicolaescu
d0cb23caf4 Avoid displaying files with a nil state in vc-dir.
* lisp/vc-dir.el (vc-dir-update): Obey the noinsert argument in all
cases that cause insertion.
(vc-dir-resynch-file): Tell vc-dir-update to avoid inserting files
with a nil state.
2010-06-30 15:03:07 -07:00
Chong Yidong
01b229d127 * xml.el (xml-parse-region): Avoid infloop (Bug#5281). 2010-06-30 16:34:06 -04:00
Juanma Barranquero
8bf1c7863f lisp/ChangeLog: Remove "(tiny change)" note. 2010-06-29 22:41:04 +02:00
Chong Yidong
a2f043d3d7 Allow global VC ops like `C-x v D' in Diff and Log-View buffers.
* vc/diff-mode.el (diff-vc-backend): New var.

* vc/vc.el (vc-deduce-backend): New fun.  Handle diff buffers.
(vc-root-diff, vc-print-root-log, vc-log-incoming)
(vc-log-outgoing): Use it.
(vc-diff-internal): Set diff-vc-backend.
2010-06-29 14:17:31 -04:00
Leo Liu
a354ac6a0c emacs-lisp/rx.el (rx): Doc fix. (Bug#6537) 2010-06-29 14:09:07 +02:00
Jan D
62d115efc9 dynamic-setting.el (font-setting-change-default-font): Remove call to message. 2010-06-28 14:54:44 +02:00
Kenichi Handa
1180f75289 international/quail.el (quail-insert-kbd-layout): Fix the showing of untranslated characters. 2010-06-28 14:41:36 +09:00
Chong Yidong
b922967396 * bindings.el (global-map): Bind delete and DEL, the former to
delete-forward-char.

* mouse.el (mouse-region-delete-keys): Deleted.
(mouse-show-mark): Simplify.

* simple.el (delete-active-region): New option.
(delete-backward-char): Implement in Lisp.
(delete-forward-char): New command.

* src/cmds.c (Fdelete_backward_char): Move into Lisp.
2010-06-27 21:01:11 -04:00
Chong Yidong
dfc6544ca0 Font lock fix for batch mode (Bug#5719).
* generic-x.el (bat-generic-mode): Fix regexp for command line
switches (Bug#5719).
2010-06-27 14:43:34 -04:00
Chong Yidong
b7d4de5185 Minor fix for htmlfontify.el (Bug#6239).
* htmlfontify.el (hfy-face-attr-for-class): Use `append' instead
of `nconc' (Bug#6239).
2010-06-27 14:24:42 -04:00
Chong Yidong
2286174ec6 * progmodes/ruby-mode.el (ruby-mode-map): Don't bind TAB.
(ruby-mode): Bind indent-line-function (Bug#5119).
2010-06-27 14:18:49 -04:00
Chong Yidong
3468f4350a * startup.el (command-line): Recognize "0" X resource value. 2010-06-27 14:11:16 -04:00
Chong Yidong
3726248fdc Remove unnecessary let-bindings in bookmark.el (Bug#6515)
* bookmark.el (bookmark-bmenu-2-window)
(bookmark-bmenu-other-window)
(bookmark-bmenu-other-window-with-mouse): Remove unnecessary
bindings of bookmark-automatically-show-annotations (Bug#6515).
2010-06-27 14:03:26 -04:00
Chong Yidong
6431f2e619 Change default-frame-alist and menu/tool-bar-mode interaction (Bug#2249).
Don't add entries for `menu-bar-lines' and `tool-bar-lines' to
`default-frame-alist' and `initial-frame-alist' at startup.
Instead, use X resources to update the `menu-bar-mode' and
`tool-bar-mode' variables at startup, and use them as defaults during
frame creation.

* lisp/frame.el (frame-notice-user-settings): Don't change
default-frame-alist based on menu-bar-mode and tool-bar-mode, or
vice versa.

* lisp/menu-bar.el (menu-bar-mode):
* lisp/tool-bar.el (tool-bar-mode): Don't change default-frame-alist.
Set init-value to t.

* lisp/startup.el (command-line): Use X resources to set the value of
menu-bar-mode and tool-bar-mode, before calling frame-initialize.

* src/frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.

* src/w32fns.c (Fx_create_frame):
* src/nsfns.m (Fx_create_frame): Likewise.

* src/xfns.c (Fx_create_frame): Don't consult X resouces when setting
menu-bar-lines and tool-bar-lines.  Use menu-bar-mode and
tool-bar-mode, which are now set using these X resources at
startup, to determine the defaults.
2010-06-26 20:30:52 -04:00
Eli Zaretskii
b61dfbe20b w32-fns.el (w32-convert-standard-filename): Doc fix. 2010-06-26 15:11:06 +03:00
Chong Yidong
fac580ebfa Revert last change. 2010-06-25 15:32:37 -04:00
Chong Yidong
a9fdbaae1a Change initial-frame-alist and default-frame-alist defaults (Bug#2249).
Since the menu-bar and tool-bar are now unconditionally turned on by
default, we can let the defcustom defaults reflect that.

* frame.el (initial-frame-alist): Give default value entries for
menu-bar-lines and tool-bar-lines consistent with the startup
default (Bug#2249).

* frame.c (Vdefault_frame_alist): Give default value entries for
menu-bar-lines and tool-bar-lines consistent with the startup
default (Bug#2249).
2010-06-25 15:24:05 -04:00
Eli Zaretskii
aca5419174 Fix bugs #6144 and #6467.
arc-mode.el (archive-zip-extract): Don't quote the file name on
 MS-Windows and MS-DOS.  (Bug#6467, Bug#6144)
2010-06-25 14:42:47 +03:00
Agustín Martín
f5cbf40e5f Add missing Changelog entries for textmodes/ispell.el (bzr#100641) and textmodes/flyspell.el (bzr#100640) 2010-06-25 10:31:50 +02:00
Juri Linkov
8f3b8a5f42 * lisp/minibuffer.el (completions-format): Change default from nil to
`horizontal'.  Remove `nil' value from :type.  Doc fix.  (Bug#6459)
2010-06-25 00:51:14 +03:00
Juri Linkov
5af72a47bb * lisp/vc/vc.el (vc-diff-internal): Set `revert-buffer-function'
buffer-locally to lambda that re-runs the vc diff command.  (Bug#6447)
2010-06-25 00:38:07 +03:00
Chong Yidong
8f8043160b Don't issue kmacro hint if echo area is in use (Bug#3412).
* lisp/kmacro.el (kmacro-call-macro): Don't issue hint message if the
echo area is in use (Bug#3412).
2010-06-24 15:16:33 -04:00
Štěpán Němec
2330fa87a5 Doc fix.
* lisp/comint.el (make-comint, make-comint-in-buffer): Mention return
value in the docstrings.  (Bug#6498)
2010-06-23 23:38:09 -07:00
Yoni Rabkin
29115ca9b0 Minor bs.el font-lock change.
* lisp/bs.el (bs-mode-font-lock-keywords): Remove "by" from Dired
pattern, since it is not present when using some non-default switches.
2010-06-23 23:30:51 -07:00
Karl Fogel
2c79f05378 Backport from trunk: doc fix.
* lisp/simple.el (compose-mail): Fix doc string to refer to
`compose-mail-user-agent-warnings', instead of to the nonexistent
`compose-mail-check-user-agent'.
2010-06-22 20:07:20 -07:00
Dan Nicolaescu
50d76a9f7d Fix vc-annotate for renamed files when using Git.
* lisp/vc-git.el (vc-git-find-revision): Deal with empty results from
ls-files.  Doe not pass the object as a file name to cat-file, it
is not a file name.
(vc-git-annotate-command): Pass the file name using -- to avoid
ambiguity with the revision.
(vc-git-previous-revision): Pass a relative file name.
2010-06-22 12:25:17 -07:00