summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
* Fix several backslash typos in Elisp stringsPaul Eggert2015-09-1738-87/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/calendar/todo-mode.el (todo-files, todo-rename-file) (todo-find-filtered-items-file, todo-reset-nondiary-marker) (todo-reset-done-string, todo-reset-comment-string) (todo-reset-highlight-item): * lisp/erc/erc-networks.el (erc-networks-alist): * lisp/gnus/gnus-art.el (gnus-button-handle-library): * lisp/gnus/gnus-group.el (gnus-read-ephemeral-gmane-group-url): * lisp/gnus/nntp.el (nntp-via-shell-prompt) (nntp-telnet-shell-prompt): * lisp/gnus/spam-report.el (spam-report-gmane-regex): * lisp/image-dired.el (image-dired-rotate-original): (image-dired-get-exif-file-name): * lisp/international/latin1-disp.el (latin1-display-ucs-per-lynx): * lisp/mail/undigest.el (rmail-digest-parse-rfc1153strict): * lisp/mh-e/mh-letter.el (mh-file-is-vcard-p): * lisp/mh-e/mh-mime.el (mh-file-mime-type-substitutions): * lisp/net/shr-color.el (shr-color->hexadecimal): * lisp/org/org-bibtex.el (org-bibtex-fields): * lisp/org/org-docview.el (org-docview-export): * lisp/org/org-entities.el (org-entities): * lisp/org/ox-icalendar.el (org-icalendar-cleanup-string): * lisp/progmodes/cperl-mode.el (cperl-indent-exp): * lisp/progmodes/ebnf2ps.el (ebnf-file-suffix-regexp) (ebnf-style-database): * lisp/progmodes/idlw-help.el (idlwave-do-context-help1): * lisp/progmodes/ruby-mode.el (ruby-imenu-create-index-in-block): * lisp/progmodes/sql.el (sql-product-alist): * lisp/progmodes/verilog-mode.el (verilog-error-regexp-emacs-alist) (verilog-error-font-lock-keywords) (verilog-assignment-operator-re): * lisp/progmodes/vhdl-mode.el (vhdl-compiler-alist): * lisp/textmodes/reftex-parse.el (reftex-parse-from-file): * lisp/vc/add-log.el (change-log-version-number-regexp-list): Fix typo by replacing ‘\’ with ‘\\’ in a string literal. For example, to get the regular expression ‘\.’ use the string literal "\\.", not "\." (which is equivalent to "."). * lisp/emulation/viper-util.el (viper-glob-unix-files): Remove stray ‘\j’ from string. * lisp/gnus/nntp.el (nntp-via-shell-prompt) (nntp-telnet-shell-prompt): Treat > like $ when matching a shell prompt. * lisp/progmodes/make-mode.el (makefile-browse): Properly quote a diagnostic.
* Fix minor quoting problems in diagnosticsPaul Eggert2015-09-172-3/+3
| | | | | | * lisp/tutorial.el (tutorial--describe-nonstandard-key): * lisp/vc/ediff-ptch.el (ediff-fixup-patch-map): Follow text-quoting-style in diagnostic, and quote a file name.
* ; Use proper accents in Peter von der Ahé’s namePaul Eggert2015-09-162-2/+6
|
* A few more minor quoting fixes in a script and a text filePaul Eggert2015-09-162-8/+7
|
* winner no longer holds on to dead framesDima Kogan2015-09-161-0/+5
| | | | | | * lisp/winner.el (winner-change-fun): Cull dead frames. This prevents a potentially massive memory leak. See: http://lists.gnu.org/archive/html/emacs-devel/2015-09/msg00619.html
* Clarify reftex-extra-bindings docs.Tassilo Horn2015-09-161-1/+2
| | | | | | * lisp/textmodes/reftex-vars.el (reftex-extra-bindings): Document that the variable only has an effect at load-time. * doc/misc/reftex.texi (Key Bindings): Ditto.
* Fix search argument in ‘lisp--el-match-keyword’ (Bug#21492) (Bug#21493)Daniel McClanahan2015-09-161-1/+2
| | | | | | | * lisp/emacs-lisp/lisp-mode.el (lisp--el-match-keyword): Fix search argument. (Bug#21492) (Bug#21493) Copyright-paperwork-exempt: yes
* Add pretty symbols for \qquad and \varrho.Tassilo Horn2015-09-161-0/+2
| | | | | * lisp/textmodes/tex-mode.el (tex--prettify-symbols-alist): Add pretty symbols for \qquad and \varrho.
* Add new functions for the root mean square of a (Calc) vectorJay Belanger2015-09-154-3/+23
| | | | | | | | | | | | | | * lisp/calc/calc-stats.el (calcFunc-rms, calc-vector-rms): New functions. * lisp/calc/calc-ext.el (calc-init-extensions): Add keybinding for `calc-vector-rms', add autoloads for `calc-vector-rms' and `calcFunc-rms'. * lisp/calc/calc-map.el (calc-u-oper-keys): Add entry for `calcFunc-rms'. * lisp/calc/calc-menu.el (calc-vectors-menu): Add entry for `calc-vector-rms'. * doc/misc/calc.texi (Single-Variable Statistics): Document the rms command.
* Add monotone EDE generic projectStephen Leake2015-09-151-0/+2
| | | | | * lisp/cedet/ede/generic.el (ede-enable-generic-projects): Add monotone generic project.
* Fix a bug in elisp--xref-find-definitions related to cl-generic defaultsStephen Leake2015-09-151-1/+7
| | | | | | | | | * lisp/progmodes/elisp-mode.el (elisp--xref-find-definitions): Fix bug with cl-generic defaults. (elisp--xref-find-references): Add doc string. * test/automated/elisp-mode-tests.el (xref-elisp-generic-*): Improve tests to find bug.
* Fix bugs in eieio-oref-default related to class symbolsStephen Leake2015-09-151-1/+2
| | | | | * lisp/emacs-lisp/eieio-core.el (class-p): Handle symbol properly. (eieio-oref-default): Handle class properly.
* * lisp/emacs-lisp/lisp-mode.el (lisp-mode-symbol-regexp): New constStefan Monnier2015-09-151-59/+49
| | | | | | | Use it everywhere "\\(\\sw\\|\\s_\\|\\\\.\\)+" was used. (cl-lib-fdefs): Add defgeneric. (cl-kw): Add all elements of eieio-kw and cl-lib-kw. (eieio-kw, cl-lib-kw, el-kw): Remove.
* lisp/custom.el (load-theme): Only compute hash when neededMark Oteiza2015-09-151-5/+4
|
* Use OPEN BOX instead of space for \quad.Tassilo Horn2015-09-151-1/+1
| | | | | * lisp/textmodes/tex-mode.el (tex--prettify-symbols-alist): Use OPEN BOX character for \quad instead of a space.
* Make show-paren-match face visible on mono-color displaysEli Zaretskii2015-09-151-2/+4
| | | | | * lisp/faces.el (show-paren-match): Use the underline face for mono-color displays. (Bug#21481)
* Don’t double-encode non-ASCII mail clipboardPaul Eggert2015-09-141-31/+25
| | | | | | * lisp/mail/mailclient.el (mailclient-send-it): Also fix the case when mailclient-place-body-on-clipboard-flag is non-nil. Problem reported by Eli Zaretskii (Bug#21471#37).
* Adaot file-notify-tests.el test casesMichael Albinus2015-09-141-11/+13
| | | | | | | | | | | | | | | | | | * lisp/filenotify.el (file-notify-rm-watch): Ignore `file-notify-error'. * src/inotify.c (Finotify_valid_p): Adapt docstring. * test/automated/file-notify-tests.el () (file-notify-test03-autorevert) (file-notify-test04-file-validity) (file-notify-test04-file-validity-remote) (file-notify-test05-dir-validity) (file-notify-test05-dir-validity-remote): Adapt docstring. (file-notify-test04-file-validity): Let events arrive before calling final `file-notify-valid-p'. Do not ignore errors. (file-notify-test05-dir-validity): Do not manipulate `temporary-file-directory', it isn't necessary. Let events arrive before calling final `file-notify-valid-p'. Do not ignore errors.
* Don’t double-encode non-ASCII for mail clientPaul Eggert2015-09-141-4/+38
| | | | | | | | | | * lisp/mail/mailclient.el (mailclient-encode-string-as-url): Use RFC 6068’s list of unreserved characters. (mailclient-send-it): When encoding the body as a URL, first decode it as per Content-Type: and Content-Transfer-Encoding:, as URLs must use percent-encoded UTF-8 (Bug#21471). * doc/misc/url.texi (mailto): Update RFC number.
* * lisp/progmodes/cc-langs.el (c-make-init-lang-vars-fun): Use dolistStefan Monnier2015-09-141-8/+6
|
* Replace `cadar' with `cadr/car', since `cadar' is problematic on Emacs.Alan Mackenzie2015-09-141-2/+2
| | | | | (c-make-init-lang-vars-fun): Replace two occurrences of `cadar' with `cadr/car'.
* Elisp mode: Make font-lock and imenu handle escaped characters in symbolsAlan Mackenzie2015-09-141-17/+17
| | | | | | | | | | Fixes debbugs#21449. lisp/emacs-lisp/lisp-mode.el (lisp-imenu-generic-expression) (lisp--el-match-keyword, lisp-el-font-lock-keywords-1) (lisp-cl-font-lock-keywords-1, lisp-el-font-lock-keywords-2) (lisp-cl-font-lock-keywords-2, lisp-string-in-doc-position-p): Insert "\\|\\\\." into regexps which match symbols.
* Implement w32notify-valid-pEli Zaretskii2015-09-141-1/+0
| | | | | | | * src/w32notify.c (Fw32notify_valid_p): New function. (Bug#21432) * lisp/filenotify.el (w32notify-valid-p): No longer an alias for 'identity'.
* Introduce `file-notify-valid-p'Michael Albinus2015-09-136-2/+42
| | | | | | | | | | | | | | | | | | * lisp/filenotify.el (file-notify-valid-p): New defun. (gfile-valid-p, w32notify-valid-p): Make them an alias to `identity'. * lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist) * lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist) * lisp/net/tramp-sh.el (tramp-sh-file-name-handler-alist) * lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist) <file-notify-valid-p>: Add handler. * lisp/net/tramp.el (tramp-file-name-for-operation): Add `file-notify-valid-p'. (tramp-handle-file-notify-valid-p): New defun. * src/inotify.c (Finotify_valid_p): New defun. (syms_of_inotify): Declare Sinotify_valid_p.
* Bind inhibit-modification-hooks rather than a/b-c-fStefan Monnier2015-09-1210-20/+19
| | | | | | | | | | | | | | | | * lisp/wid-edit.el (widget-editable-list-insert-before) (widget-editable-list-delete-at): * lisp/progmodes/cperl-mode.el (cperl-find-pods-heres) (cperl-font-lock-unfontify-region-function): * lisp/progmodes/antlr-mode.el (save-buffer-state-x): * lisp/obsolete/longlines.el (longlines-mode): * lisp/obsolete/fast-lock.el (save-buffer-state): * lisp/mouse.el (mouse-save-then-kill-delete-region): * lisp/gnus/message.el (message-hide-headers): * lisp/eshell/esh-mode.el (eshell-send-input, eshell-output-filter): * lisp/ibuffer.el (ibuffer-update-title-and-summary) (ibuffer-redisplay-engine): Bind inhibit-modification-hooks to t rather than after/before-change-functions to nil.
* (jit-lock-deferred-fontify): Pay attention to skipped redisplaysStefan Monnier2015-09-111-3/+5
| | | | | * lisp/jit-lock.el (jit-lock-deferred-fontify): Make sure we refresh the buffers, even if the forced redisplay is interrupted.
* * lisp/emacs-lisp/eieio-core.el (class-p): Accept class objectsStefan Monnier2015-09-111-4/+4
|
* Merge syntax-propertize--done and parse-sexp-propertize-doneStefan Monnier2015-09-111-52/+53
| | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/syntax.el (syntax-propertize--done): Remove. (syntax-propertize): Set syntax-propertize--done even if syntax-propertize-function is nil. Avoid recursive invocations. (syntax-propertize-chunks): New var. (internal--syntax-propertize): Use it. Rename from syntax--jit-propertize. Simplify. (parse-sexp-propertize-function): Don't set any more. * src/syntax.c (SETUP_SYNTAX_TABLE): Call parse_sexp_propertize as needed. (parse_sexp_propertize): Don't assume charpos is not yet propertized. Call Qinternal__syntax_propertize instead of Vparse_sexp_propertize_function. Truncate e_property if needed. (update_syntax_table_forward): Streamline. (syms_of_syntax): Define Qinternal__syntax_propertize. (syntax_propertize__done): Rename from parse_sexp_propertize_done.
* Prefer straight quoting in some text filesPaul Eggert2015-09-111-16/+16
| | | | | | | | | Mostly this just changes ` to ' in static text. Some exceptions: * INSTALL.REPO: Use curved quotes, as the diagnostic in question typically does that now. * admin/quick-install-emacs (TRY, top level): Use straight quoting in diagnostics. * src/README: Fix working-directory confusion.
* Improve file notifications in TrampMichael Albinus2015-09-111-4/+19
| | | | | | | * lisp/net/tramp-sh.el (tramp-sh-handle-file-notify-add-watch): Set proper events to watch for. (tramp-sh-file-gvfs-monitor-dir-process-filter): Report only watched events.
* Add seq-findNicolas Petton2015-09-111-0/+13
| | | | | | | | | | | This function is similar to `seq-some' but returns the found element. In the cases where nil can be the found element, a sentinel optional argument can be provided to avoid ambiguities. * lisp/emacs-lisp/seq.el (seq-find): New function. * test/automated/seq-tests.el (test-seq-find): Add tests for `seq-find'. * doc/lispref/sequences.texi (Sequence Functions): Add documentation for seq-find.
* lisp/mpc.el (mpc--proc-connect): use file-name-absolute-pMark Oteiza2015-09-101-1/+4
|
* lisp/mpc.el (mpc-file-local-copy): check for absolute pathMark Oteiza2015-09-101-1/+2
|
* lisp/mpc.el (mpc-file-local-copy): check more config locationsMark Oteiza2015-09-101-1/+5
|
* Revert some stray curved quotes I missed earlierPaul Eggert2015-09-109-21/+22
| | | | | | | Problem reported by David Kastrup in: http://lists.gnu.org/archive/html/emacs-devel/2015-09/msg00440.html * lisp/international/mule-cmds.el (leim-list-header): Use format-message with an ASCII-only format.
* ; Spelling fixPaul Eggert2015-09-101-1/+1
|
* * lisp/cedet/ede/auto.el (ede-project-autoload): Doc fix.Glenn Morris2015-09-091-2/+2
|
* (time-to-seconds, time-less-p): Mark unused vars with underscoreStefan Monnier2015-09-091-3/+3
| | | | | * lisp/calendar/time-date.el (time-to-seconds, time-less-p): Mark unused vars with underscore.
* * lisp/filenotify.el: Use lexical-bindingStefan Monnier2015-09-091-6/+5
| | | | (file-notify-add-watch): Avoid add-to-list.
* Make syntax.c call syntax-propertize on demandStefan Monnier2015-09-092-1/+17
| | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/syntax.el (syntax--jit-propertize): New function. (parse-sexp-propertize-function): Use it. (syntax-propertize): Disable parse-sexp-propertize-function. * src/syntax.c (parse_sexp_propertize, update_syntax_table_forward): New functions. (syms_of_syntax): New vars `parse-sexp-propertize-done' and `parse-sexp-propertize-function'. * src/syntax.h (struct gl_state_s): Add `e_property_truncated' field. (UPDATE_SYNTAX_TABLE_FORWARD): Use update_syntax_table_forward. (SETUP_BUFFER_SYNTAX_TABLE): Set e_property_truncated. * lisp/progmodes/elisp-mode.el (elisp-byte-code-syntax-propertize): Don't assume `point' is set.
* * lisp/emacs-lisp/cl-generic.el (cl-generic-generalizers): Remove warningStefan Monnier2015-09-091-2/+5
|
* Fix display of complex local data types in GDB-MIEli Zaretskii2015-09-091-0/+2
| | | | | | * lisp/progmodes/gdb-mi.el (gdb-locals-handler-custom): If a variable has no value, display "<complex data type>" as a placeholder, instead of a confusing "nil". (Bug#21438)
* Remove redundant redefinition of seq-drop-while from seq.elOleh Krehel2015-09-091-7/+1
| | | | * lisp/emacs-lisp/seq.el (seq-drop-while): Define only once.
* * lisp/emacs-lisp/package.el (package--ensure-init-file)Phil Sainty2015-09-091-2/+2
| | | | | | More robust check for `package-initialize' calls in init file. This function accepts an optional argument, but calls passing an argument would not have been detected.
* Improvements for curved quotes on Linux consulePaul Eggert2015-09-092-54/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This should help Emacs work better out-of-the-box on Linux consoles, which have only limited support for displaying Unicode characters. Also, undo the recent change that caused text-quoting-style to affect quote display on terminals, so that the two features are independent. See Alan Mackenzie in: http://lists.gnu.org/archive/html/emacs-devel/2015-09/msg00244.html Finally, add a style parameter to startup--setup-quote-display, so that this function can also be invoked after startup, with different styles depending on user preference at the time. * configure.ac: Check for linux/kd.h header. * doc/emacs/display.texi (Text Display): Document quote display. * doc/lispref/display.texi (Active Display Table): * etc/NEWS: * lisp/startup.el (startup--setup-quote-display, command-line): text-quoting-style no longer affects quote display. * doc/lispref/frames.texi (Terminal Parameters): Fix typo. * lisp/international/mule-util.el (char-displayable-p): * lisp/startup.el (startup--setup-quote-display): On a text terminal supporting glyph codes, use the reported glyph codes instead of the terminal coding system, as this is more accurate on the Linux console. * lisp/startup.el (startup--setup-quote-display): New optional arg STYLE. * src/fontset.c (Finternal_char_font): Report glyph codes for a text terminal, if they are available. Currently this is supported only for the Linux console. * src/termhooks.h (struct terminal): New member glyph-code-table. * src/terminal.c [HAVE_LINUX_KD_H]: Include <errno.h>, <linux/kd.h>. (calculate_glyph_code_table) [HAVE_LINUX_KD_H]: New function. (terminal_glyph_code): New function.
* * lisp/info.el (Info-fontify-node): Don't stop at the non-title underline.Juri Linkov2015-09-091-22/+22
| | | | (Bug#21433)
* * lisp/calendar/time-date.el (with-decoded-time-value): Fix debug specStefan Monnier2015-09-081-1/+2
|
* Fix double-reporting of rename events with inotifyTassilo Horn2015-09-081-3/+3
| | | | | * lisp/filenotify.el (file-notify-callback): Fix double-reporting of rename events with inotify (bug#21435).
* * lisp/play/tetris.el (tetris-move-down): New command (bug#21360)Vasilij Schneidermann2015-09-081-1/+11
| | | | | | (tetris-mode-map): Use it. Copyright-paperwork-exempt: yes
* ; Auto-commit of loaddefs files.Glenn Morris2015-09-083-4/+4
|