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

59636 commits

Author SHA1 Message Date
Stefan Monnier
e8dfd19797 * lisp/emacs-lisp/cl-macs.el (cl-defsubst): Make it clear that args
are immutable.  Don't use `unsafe' any more.
(cl--defsubst-expand): Don't substitute at the same time as keeping
a residual unused let-binding.  Don't use `unsafe' any more.
2013-08-28 23:49:10 -04:00
Glenn Morris
ba579ea660 * calendar/cal-china.el (calendar-chinese-year-cache): Recenter on 2015. 2013-08-28 20:21:33 -07:00
Glenn Morris
8201a87ea9 * nxml/nxml-util.el (nxml-debug-clear-inside): Use cl-loop rather than loop. 2013-08-28 21:20:05 -04:00
Glenn Morris
6ee877c795 * lisp/net/eww.el (eww-mode-map): Lower-case menu bar entries look bad.
(If "eww" is supposed to be an acronym then maybe capitalize the whole thing.)
2013-08-28 21:17:10 -04:00
Glenn Morris
cc585c965a * lisp/progmodes/sh-script.el (sh-builtins) <bash>: Add some bash4-isms. 2013-08-28 21:02:46 -04:00
Glenn Morris
397440a1b6 * lisp/progmodes/antlr-mode.el: No need to require cc-mode twice. 2013-08-28 19:32:25 -04:00
Glenn Morris
2bb762d48a * lisp/progmodes/cc-bytecomp.el (cc-require): Handle uncompiled case. 2013-08-28 19:31:52 -04:00
Glenn Morris
27be8d3996 * lisp/progmodes/cc-mode.el (c-define-abbrev-table): Handle NAME unbound. 2013-08-28 19:31:06 -04:00
Stefan Monnier
f663baa7dd * lisp/simple.el (repeat-complex-command--called-interactively-skip):
New function.
(repeat-complex-command): Use it.

Fixes: debbugs:14136
2013-08-28 17:19:54 -04:00
Stefan Monnier
dd4f8b743d * lisp/progmodes/cc-mode.el: Minor cleanup of var declarations.
(c-define-abbrev-table): Add `doc' argument.
(c-mode-abbrev-table, c++-mode-abbrev-table)
(objc-mode-abbrev-table, java-mode-abbrev-table)
(idl-mode-abbrev-table, pike-mode-abbrev-table)
(awk-mode-abbrev-table): Use it.
(c-mode-syntax-table, c-mode-map, c++-mode-syntax-table)
(c++-mode-map, objc-mode-syntax-table, objc-mode-map)
(java-mode-syntax-table, java-mode-map, idl-mode-syntax-table)
(idl-mode-map, pike-mode-syntax-table, pike-mode-map, awk-mode-map):
Move initialization into the declaration; and remove any
autoload cookie.
2013-08-28 16:24:18 -04:00
Stefan Monnier
b58969f781 * lisp/epg.el (epg--process-filter): Use with-current-buffer, save-excursion
and dynamic let binding.
2013-08-28 15:28:30 -04:00
Stefan Monnier
4021d6a62a * lisp/vc/smerge-mode.el: Remove redundant :group args. 2013-08-28 15:26:18 -04:00
Stefan Monnier
2d69b99e59 * lisp/emacs-lisp/package.el (package-activate-1): Don't add unnecessarily
to load-path.
2013-08-28 13:57:12 -04:00
Juri Linkov
274919fde2 * lisp/isearch.el (isearch-reread-key-sequence-naturally): Use non-nil
arg DONT-DOWNCASE-LAST of `read-key-sequence'.
(isearch-other-meta-char): Handle an undefined shifted printing
character by downshifting it.

Fixes: debbugs:15200
2013-08-28 19:39:51 +03:00
Juri Linkov
121f8c95b2 * lisp/isearch.el (isearch-search): Change regexp error message for non-regexp searches.
Fixes: debbugs:15166
2013-08-28 19:33:02 +03:00
Katsumi Yamaoka
efa44122aa lisp/gnus/mm-decode.el (mm-temp-files-delete): Fix file deletion logic 2013-08-28 08:38:28 +00:00
Paul Eggert
50b13cdedb * Makefile.in (SHELL): Now @SHELL@, not /bin/sh,
for portability to hosts where /bin/sh has problems.
2013-08-27 23:01:52 -07:00
Stefan Monnier
95888bca5d * lisp/emacs-lisp/cconv.el (cconv--analyse-function): Improve warning. 2013-08-27 21:33:31 -04:00
Paul Eggert
b73517d9ec Spelling fixes. 2013-08-27 12:02:42 -07:00
Juri Linkov
bbe558f195 * lisp/isearch.el (isearch-other-meta-char): Don't store kmacro commands
in the keyboard macro.

Fixes: debbugs:15126
2013-08-27 19:06:16 +03:00
Juri Linkov
26f98a7d3f * lisp/isearch.el (isearch-quote-char): Comment out converting unibyte
to multibyte, thus syncing with its `quoted-insert' counterpart.

Fixes: debbugs:15166
2013-08-27 18:57:16 +03:00
Martin Rudalics
7c97d35ecc Add missing argument in call of get-largest-window (Bug#15185).
* window.el (display-buffer-use-some-window): Add missing
argument in call of get-largest-window (Bug#15185).  Reported by
Stephen Leake.
2013-08-27 14:46:00 +02:00
Glenn Morris
a0b5606ec7 Merge from emacs-24; up to 2013-01-03T01:56:56Z!rgm@gnu.org 2013-08-27 01:01:13 -07:00
Stefan Monnier
9e89d835b0 * lisp/progmodes/python.el (python-font-lock-keywords): Don't return nil
from a matcher-function unless there's no more matches.

Fixes: debbugs:15161
2013-08-26 22:41:41 -04:00
Michael Albinus
78fc2530af * minibuffer.el: Revert change from 2013-08-20.
* net/tramp.el (tramp-find-method, tramp-find-user): Mark result
with text property `tramp-default', if appropriate.
(tramp-check-proper-host): New defun.
(tramp-dissect-file-name): Do not check hostname.  Revert change
of 2013-03-18.
(tramp-backtrace): Make VEC-OR-PROC optional.

* net/tramp-adb.el (tramp-adb-maybe-open-connection):
* net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection):
* net/tramp-sh.el (tramp-maybe-open-connection):
* net/tramp-smb.el (tramp-smb-maybe-open-connection): Apply
`tramp-check-proper-host'.
2013-08-26 15:17:22 +02:00
Tassilo Horn
edca97cde7 * epa-hook.el (epa-file-encrypt-to): Quote `safe-local-variable'
lambda expression in order to have `describe-variable' display it.
2013-08-26 13:03:09 +02:00
Michael Albinus
df54bcbde0 * net/tramp-sh.el (tramp-sh-handle-verify-visited-file-modtime):
BUF can be optional.  (Bug#15186)
2013-08-26 08:59:53 +02:00
Xue Fuqiao
eed991017a Fix broken customization in Flymake.
* lisp/progmodes/flymake.el (flymake-get-real-file-name-function):
Fix broken customization.  (Bug#15184)
2013-08-26 06:30:56 +08:00
Alan Mackenzie
8a51e84232 Improve indentation of bracelists defined by macros (without "=").
* progmodes/cc-engine.el (c-inside-bracelist-p): When a macro
expansion begins with "{", regard it as bracelist when it doesn't
contain a ";".
2013-08-25 21:06:07 +00:00
Alan Mackenzie
869455d432 Parse C++ inher-intro when there's a template split over 2 lines.
* progmodes/cc-engine.el (c-guess-basic-syntax CASE 5C): Code more
rigorously the search for "class" etc. followed by ":".

* progmodes/cc-langs.el (c-opt-<>-sexp-key): Make the value for
random languages a regexp which never matches rather than nil.
2013-08-25 13:52:14 +00:00
Alan Mackenzie
b5eb903526 Handle "/"s more accurately in test for virtual semicolons (AWK Mode).
* progmodes/cc-awk.el (c-awk-one-line-possibly-open-string-re)
(c-awk-regexp-one-line-possibly-open-char-list-re)
(c-awk-one-line-possibly-open-regexp-re)
(c-awk-one-line-non-syn-ws*-re): Remove.
(c-awk-possibly-open-string-re, c-awk-non-/-syn-ws*-re)
(c-awk-space*-/-re, c-awk-space*-regexp-/-re)
(c-awk-space*-unclosed-regexp-/-re): New constants.
(c-awk-at-vsemi-p): Reformulate better to recognize "/"s which
aren't regexp delimiters.

* progmodes/cc-engine.el (c-crosses-statement-barrier-p): Add in
handling for a rare situation in AWK Mode involving unterminated
strings/regexps.
2013-08-25 10:09:56 +00:00
Glenn Morris
2d85dc347c * lisp/files.el (auto-mode-alist): Use sh-mode for .bash_history. 2013-08-23 14:58:41 -04:00
Glenn Morris
bb35f42f61 * lisp/files.el (create-file-buffer): Rework previous change. 2013-08-23 13:34:09 -04:00
Glenn Morris
cb8d261243 * lisp/files.el (interpreter-mode-alist): Use tcl-mode for expect scripts. 2013-08-23 13:09:09 -04:00
Glenn Morris
61611d54b5 * files.el (create-file-buffer): Handle a file whose basename is all spaces.
Fixes: debbugs:15162
2013-08-23 13:08:19 -04:00
Glenn Morris
d96ad42239 * lisp/emacs-lisp/package.el (package-buffer-info): Fix message typo. 2013-08-23 12:50:39 -04:00
Stefan Monnier
e3a6636351 * lisp/textmodes/fill.el (fill-match-adaptive-prefix): Don't throw away
text-properties.

Fixes: debbugs:15155
2013-08-23 11:31:45 -04:00
Stefan Monnier
b9808e7718 * lisp/calc/calc-keypd.el (calc-keypad-execute): `x-flush-mouse-queue' doesn't
exist any more.
(calc-keypad-redraw): Remove unused var `pad'.
(calc-keypad-press): Remove unused var `menu'.
2013-08-23 11:21:19 -04:00
Martin Rudalics
7fd5f65e89 In display-buffer-pop-up-frame make BUFFER current (Bug#15133).
* window.el (display-buffer-pop-up-frame): Call pop-up-frame-function
with BUFFER current so `make-frame' will use it as the new frame's
buffer (Bug#15133).
2013-08-23 08:52:19 +02:00
Stefan Monnier
d0fcaff514 * lisp/erc/erc.el: Use lexical-binding.
(erc-user-full-name): Minor CSE simplification.
(erc-mode-map): Assume command-remapping is available.
(erc-once-with-server-event): Replace `forms' arg with a function arg.
(erc-once-with-server-event-global): Remove.
(erc-ison-p): Adjust to change in erc-once-with-server-event.
(erc-get-buffer-create): Remove arg `proc'.
(iswitchb-make-buflist-hook): Declare.
(erc-setup-buffer): Use pcase; avoid ((lambda ..) ..).
(read-passwd): Assume it exists.
(erc-display-line, erc-cmd-IDLE): Avoid add-to-list, adjust to change
in erc-once-with-server-event.
(erc-cmd-JOIN, erc-set-channel-limit, erc-set-channel-key)
(erc-add-query): Minor CSE simplification.
(erc-cmd-BANLIST, erc-cmd-MASSUNBAN): Adjust to change
in erc-once-with-server-event.
(erc-echo-notice-in-user-and-target-buffers): Avoid add-to-list.
* lisp/erc/erc-track.el: Use lexical-binding.
(erc-make-mode-line-buffer-name): Use closures instead of `(lambda...).
(erc-faces-in): Avoid add-to-list.
* lisp/erc/erc-notify.el: Use lexical-binding.
(erc-notify-timer): Adjust to change in erc-once-with-server-event.
(erc-notify-QUIT): Use a closure instead of `(lambda...).
* lisp/erc/erc-list.el: Use lexical-binding.
(erc-list-install-322-handler, erc-cmd-LIST): Adjust to change in
erc-once-with-server-event.
* lisp/erc/erc-button.el: Use lexical-binding.
(erc-button-next-function): Use a closure instead of `(lambda...).
2013-08-22 00:06:45 -04:00
Stefan Monnier
8352b53087 * lisp/calendar/timeclock.el: Minor cleanups.
(timeclock-ask-before-exiting, timeclock-use-display-time): Use `symbol'.
(timeclock-modeline-display): Define as alias before the actual definition.
(timeclock-mode-line-display): Use define-minor-mode.
(timeclock-day-list-template): Make it a function, add an argument.
(timeclock-day-list-required, timeclock-day-list-length)
(timeclock-day-list-debt, timeclock-day-list-span)
(timeclock-day-list-break): Adjust calls accordingly.
2013-08-21 21:09:08 -04:00
Stefan Monnier
9f7b19259d * lisp/emacs-lisp/pp.el (pp-eval-expression, pp-macroexpand-expression):
Use read--expression so that completion works again.
2013-08-21 14:26:15 -04:00
Sam Steingold
6e50e9836a Add rudimentary inferior shell interaction
* lisp/progmodes/sh-script.el (sh-shell-process): New buffer-local variable.
(sh-set-shell): Reset it.
(sh-show-shell, sh-cd-here, sh-send-line-or-region-and-step): New
commands (bound to C-c C-z, C-c C-d, and C-c C-n).
2013-08-20 21:16:27 -04:00
Stefan Monnier
dbb0d35043 * lisp/align.el: Use lexical-binding.
(align-region): Simplify accordingly.
2013-08-20 18:13:29 -04:00
Michael Albinus
c88586a962 * minibuffer.el (completion--sifn-requote): Bind `non-essential'.
* rfn-eshadow.el (rfn-eshadow-update-overlay): Move binding of
`non-essential' up.
2013-08-20 12:04:13 +02:00
Katsumi Yamaoka
dab3a8d5fe Gnus: Exclude iso-2022-jp-2 and shift_jis from the default value set to mm-coding-system-priorities for Japanese users 2013-08-19 05:10:33 +00:00
Michael Albinus
f95527c8b2 * net/tramp.el:
* net/tramp-adb.el:
* net/tramp-cmds.el:
* net/tramp-ftp.el:
* net/tramp-gvfs.el:
* net/tramp-gw.el:
* net/tramp-sh.el: Don't wrap external variable declarations by
`eval-when-compile'.
2013-08-17 12:20:15 +02:00
Lars Magne Ingebrigtsen
4b5fe4ee09 * net/shr.el (shr-rescale-image): Use ImageMagick even for GIFs
Now that Emacs supports ImageMagick animations.
2013-08-16 17:17:21 +02:00
Michael Albinus
13c366c974 * net/tramp-cmds.el (top): Don't declare `buffer-name'.
(tramp-append-tramp-buffers): Rewrite buffer local variables part.
2013-08-16 14:41:17 +02:00
Martin Rudalics
3dfc5cd613 In mouse-autoselect-window-select do autoselect when mouse pointer is on margin.
* window.el (mouse-autoselect-window-select): Do autoselect when
mouse pointer is on margin.
2013-08-16 11:44:32 +02:00