summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* * lisp/net/dictionary.el (dictionary-pre-buffer): Unify casingfeature/integration-of-dictionary-elTorsten Hilbrich2020-12-141-3/+3
| | | | | Let all the buttons begins with an upper-case character and the rest of the text is lower-case.
* * etc/NEWS: Add entry for dictionary.elTorsten Hilbrich2020-12-141-0/+9
|
* A number of docstring fixesTorsten Hilbrich2020-12-141-16/+18
| | | | | | | | | | | | * lisp/net/dictionary-connection.el (dictionary-connection-p, dictionary-connection-read-point, dictionary-connection-process, dictionary-connection-buffer, dictionary-connection-set-read-point, dictionary-connection-set-process, dictionary-connection-set-buffer, dictionary-connection-create-data, dictionary-connection-open, dictionary-connection-status, dictionary-connection-close, dictionary-connection-send, dictionary-connection-send-crlf, dictionary-connection-read, dictionary-connection-read-crlf, dictionary-connection-read-to-point): Fix docstring
* A number of docstring fixesTorsten Hilbrich2020-12-141-71/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/dictionary.el (dictionary-set-server-var, dictionary-mode, dictionary, dictionary-new-buffer, dictionary-reply-code, dictionary-reply, dictionary-reply-list, dictionary-open-server, dictionary-check-connection, dictionary-mode-p, dictionary-close, dictionary-read-reply, dictionary-split-string, dictionary-read-reply-and-split, dictionary-read-answer, dictionary-check-reply, dictionary-coding-system, dictionary-decode-charset, dictionary-encode-charset, dictionary-check-initial-reply, dictionary-store-state, dictionary-restore-state, dictionary-new-search, dictionary-new-search-internal, dictionary-do-search, dictionary-pre-buffer, dictionary-post-buffer, dictionary-display-search-result, dictionary-display-word-entry, dictionary-display-word-definition, dictionary-mark-reference, dictionary-select-dictionary, dictionary-display-dictionarys, dictionary-display-dictionary-line, dictionary-set-dictionary, dictionary-special-dictionary, dictionary-display-more-info, dictionary-select-strategy, dictionary-do-select-strategy, dictionary-display-strategies, dictionary-display-strategy-line, dictionary-set-strategy, dictionary-new-matching, dictionary-do-matching, dictionary-display-only-match-result, dictionary-display-match-result, dictionary-display-match-result, dictionary-display-match-lines, dictionary-search, dictionary-previous, dictionary-help, dictionary-match-words, dictionary-mouse-popup-matching-words, dictionary-popup-matching-words, dictionary-tooltip-mode, dictionary-tooltip-mouse-event): Fix docstring The following kind of changes were made: - finish first line with a full stop (.) - mention parameter in upper-case whenever possible (considering the length constraints)
* * lisp/net/dictionary.el (dictionary-display-more-info): Spelling fixTorsten Hilbrich2020-12-141-1/+1
| | | | Fix the spelling in the error message for non-existing dictionary.
* Use when where else case returns nilTorsten Hilbrich2020-12-141-22/+20
| | | | | | | | * lisp/net/dictionary-connection.el (dictionary-connection-status, dictionary-connection-close): Instead of returning nil in the else case of the if just use when. Was suggested by Stefan Kangas.
* * lisp/net/dictionary.el (dictionary-tooltip-mode): Use setq-localTorsten Hilbrich2020-12-141-4/+2
|
* * lisp/net/dictionary.el (dictionary-mode): Use setq-localTorsten Hilbrich2020-12-141-8/+4
|
* * lisp/net/dictionary.el: Prefer defsubst over defmacroTorsten Hilbrich2020-12-141-6/+6
|
* * lisp/net/dictionary-connection.el: Prefer defsubstTorsten Hilbrich2020-12-141-14/+14
| | | | | | | Use defsubst instead of defmacro here. It was suggested by Stefan Kangas to replace the defmacro here and, looking at the lispref, defsubst seems to be a suitable replacement providing the same benefit of inlining functionality as the defmacro.
* Update GPL versionTorsten Hilbrich2020-12-142-2/+2
| | | | | * lisp/net/dictionary.el: Use GPL version 3 or later * lisp/net/dictionary-connection.el: Use GPL version 3 or later
* * lisp/net/dictionary-connection.el: Remove obsolete VersionTorsten Hilbrich2020-12-141-1/+0
|
* * lisp/net/dictionary-connection.el: Add lexical-binding:tTorsten Hilbrich2020-12-141-1/+1
|
* Show error message when asking to match for nothingTorsten Hilbrich2020-12-141-1/+1
| | | | | | | | * lisp/net/dictionary.el (dictionary-popup-matching-words): Show error if neither the parameter nor the word at point are defined This avoids an error later on when the nil value is used as string within dictionary-encode-charset.
* Removed useless check for popup-menuTorsten Hilbrich2020-12-141-2/+0
| | | | | | * lisp/net/dictionary.el (dictionary-popup-matching-words): No need to check for popup-menu, the code is part of Emacs now and the function should always be there
* * lisp/net/dictionary.el: Add lexical-binding:tTorsten Hilbrich2020-12-141-21/+18
| | | | | Fixing all the issues found by this. A number of unused variables were reported here.
* * lisp/net/dictionary.el: Remove remnants of packageTorsten Hilbrich2020-11-191-2/+0
| | | | | Version and package depedencies are not useful when included into Emacs.
* Add history of search words to read-stringMatthias Meulien2020-11-191-3/+8
|
* Remove text property from empty lineMatthias Meulien2020-11-191-3/+3
|
* Move placement of dictionary-tooltip-mouse-eventTorsten Hilbrich2020-11-191-3/+3
| | | | | | * lisp/net/dictionary.el (dictionary-tooltip-mouse-event): Place variable before dictionary-display-tooltip to avoid warning about use of free variable when compiling dictionary-display-tooltip
* Support nil value for dictionary-serverTorsten Hilbrich2020-11-191-51/+77
| | | | | | | | | | | | | | | | | | | | * net/lisp/dictionary.el (dictionary-server): Support choice to select the dictionary server to use * net/lisp/dictionary.el (dictionary-check-connection): Support nil value for dictionary-server This nil value is the new default value of that variable. When opening a new connection and dictionary-server is nil the code behaves the following way: - it will first try to connect to a dictd server running on localhost - if that fails, it queries the user if the alternative server (dict.org) should be consulted - if the user agrees, the connection is made to dict.org This allows the default value of dictionary-server not to connect a remote server by default. The user is always able to select a different server by customizing the variable dictionary-search.
* Fix dictionary tooltip modeTorsten Hilbrich2020-10-101-26/+77
| | | | | | | | | * lisp/net/dicionary.el (dictionary-tooltip-mode): Add mouse movement binding and use tooltip-functions instead of tooltip-hook There were some changes in Emacs since testing it the last time. I had to add keybinding for mouse movement and enable track-mouse to get the mode working again.
* Adding details page for dictionaryTorsten Hilbrich2020-10-091-5/+20
| | | | | | | | | * net/lisp/dictionary.el (dictionary-display-dictionary-line): Allow getting more details on a dictionary by clicking the "(Details)" link. I had the functionality to query the dictionary information but no mechanism to invoke it. So just add a button after the short description of the dictionary to get more information.
* Dictionary now uses buttonTorsten Hilbrich2020-10-092-218/+67
| | | | | | | | | | | | | | | * net/lisp/dictionary-link.el: Removed now obsolete file * net/lisp/dictionary.el: Use insert-button and make-button * net/lisp/dictionary.el (dictionary-mode-map): Now defined using defvar I had to add a conversion function as parameter for the button 'action as I need to be able to pass nil data to my function. This is not possible with the regular button 'action function and the 'button-data value. The functionality of searching a link in all dictionaries has been removed for now. It might appear again once I have an idea how to implement it.
* Don't check for existence of deffaceTorsten Hilbrich2020-10-081-58/+47
| | | | | * lisp/net/dictionary.el: defface has been available in Emacs for quite some time now. No need to check it before using it.
* Dont't check coding-system-list for existenceTorsten Hilbrich2020-10-081-28/+23
| | | | | | * lisp/net/dictionary.el (dictionary-coding-systems-for-dictionaries): Don't check for coding-system-list before using it. It check no longer be necessary.
* Add :version tag to defcustom statementTorsten Hilbrich2020-10-081-20/+40
| | | | | | * lisp/net/dictionary.el: Add :version tag to all defcustom statements Suggested-By: Robert Pluim <rpluim@gmail.com>
* Removed some compability parts in dictionaryTorsten Hilbrich2020-10-082-117/+21
| | | | | | * lisp/net/dictionary.el: Use cl-lib, remove defface and defgroup checks, remove xemacs-related code * lisp/net/dictionary-link.el: Remove xemacs-related code
* Renamed link.elTorsten Hilbrich2020-10-082-75/+72
| | | | | | * lisp/net/link.el: Renamed to connection-link.el, also prefixing all functions with "dictionary-" prefix * lisp/net/dictionary.el: Adapt to renamed functions
* Renamed connection.elTorsten Hilbrich2020-10-083-173/+170
| | | | | | * lisp/net/connection.el: Renamed to dictionary-connection.el, also prefixing all functions with "dictionary-" prefix * lisp/net/dictionary.el: Adapt to renamed functions
* Importing dictionary moduleTorsten Hilbrich2020-10-083-0/+1655
| | | | | * lisp/net: Adding files connection.el, link.el, dictionary.el, imported from https://github.com/myrkr/dictionary-el.git
* Mention two more functions in the commentaryDmitry Gutov2020-10-081-0/+3
| | | | | * lisp/progmodes/project.el: Mention two more functions in the commentary (bug#43595).
* Improve documentation of 'isearch-group-N' facesEli Zaretskii2020-10-073-12/+24
| | | | | | | | * etc/NEWS: * doc/emacs/search.texi (Search Customizations): Improve and clarify the wording of the 'isearch-group-N' faces description. * lisp/isearch.el (search-highlight-submatches): Doc fix.
* Fix last change in frame.el.Eli Zaretskii2020-10-071-1/+1
| | | | | | * lisp/frame.el (frame-set-background-mode): Fix last change: yet another place where FRAME was not taken into account, using the selected frame instead. (Bug#43837)
* Fix face recalculation when frame's background mode changesEli Zaretskii2020-10-071-4/+1
| | | | | | * lisp/frame.el (frame-set-background-mode): Use the FRAME argument instead of the selected frame, when calling 'face-spec-match-p'. (Bug#43837)
* Remove mention of the obsolete cust-print.el from the manualLars Ingebrigtsen2020-10-071-7/+8
| | | | | * doc/lispref/edebug.texi (Printing in Edebug): Remove mention of the obsolete cust-print.el (bug#37956) and adjust the text a bit.
* Update documentation on this-command-keys to reflect new behaviorLars Ingebrigtsen2020-10-072-6/+3
| | | | | | | | | | * doc/lispref/commands.texi (Command Loop Info): `this-command-keys' does not include the C-u any more, so remove that from the description and the example (bug#22107). * src/keyboard.c (Fthis_single_command_keys): Don't say that `this-command-keys' returns the C-u prefix (bug#22111).
* Default the grep commands to skip directoriesAlex Gramiak2020-10-071-4/+9
| | | | | * lisp/progmodes/grep.el (grep-compute-defaults): Skip directories (bug#23590).
* Make artist-mode work when display-line-numbers-mode is onLars Ingebrigtsen2020-10-071-8/+14
| | | | | | | * lisp/textmodes/artist.el (artist--adjust-x): New function. (artist-mouse-draw-continously, artist-mouse-draw-poly) (artist-mouse-draw-1point, artist-mouse-draw-2points): Use it to take `display-line-numbers-mode' widths into account.
* Remove reference to outdated Gnus variable from the manualLars Ingebrigtsen2020-10-071-6/+0
| | | | | * doc/misc/gnus.texi (Startup Variables): Remove reference to gnus-use-backend-marks, which was removed in 2011 (bug#43833).
* alist-get doc string further clarificationLars Ingebrigtsen2020-10-071-4/+5
| | | | | * lisp/subr.el (alist-get): Mention generalized variables again for easier cross-referencing (bug#43836).
* Clarify what ``chrooted environment means'' for TRAMPHong Xu2020-10-071-2/+2
| | | | | * doc/misc/tramp.texi (Frequently Asked Questions): Clarify what ``chrooted environment means'' for TRAMP (bug#43839).
* Make the State button in Custom use extended menusMauro Aranda2020-10-071-98/+191
| | | | | | | | | | | | | | | * lisp/cus-edit.el (custom-actioned-widget): New variable. Dynamically hold the widget for which to show the menu. (custom-variable-extended-menu, custom-face-extended-menu) (custom-group-extended-menu): Keymap menus for the State menu. Use custom-actioned-widget for the :enable and :selected forms. Make related items radio buttons. (Bug#4787) (custom-variable-menu, custom-face-menu, custom-group-menu): Keep for backward compatibility, but default to nil, so we prefer the keymap menus instead. (custom-variable-action, custom-face-action, custom-group-action): Pass the keymap menu to widget-choose when the simplified menus are nil.
* * test/lisp/progmodes/ruby-mode-tests.el: Fix obsolete warningsStefan Monnier2020-10-061-12/+12
|
* Add match-data to isearch state and repeat faces to highlight group matchesJuri Linkov2020-10-063-29/+47
| | | | | | | | | | | | | | | | | | | * lisp/isearch.el (isearch-match-data): New variable. (isearch-mode): Set isearch-match-data to nil. (isearch-update): Call isearch-highlight with isearch-match-data. (isearch--state): Add isearch-match-data. (isearch--set-state): Restore isearch-match-data. (with-isearch-suspended): Preserve isearch-match-data. (isearch-search): Set isearch-match-data to integers. (isearch-group-1): Rename from isearch-group-odd and adjust colors. (isearch-group-2): Rename from isearch-group-even and adjust colors. (isearch-highlight): Add optional arg 'match-data'. Rewrite search-highlight-submatches part to recycle faces. * doc/emacs/search.texi (Search Customizations): Amend the documentation for isearch-group faces. (bug#6227, bug#43702)
* Fix crash when creating new NS frame (bug#43812)Alan Third2020-10-061-1/+1
| | | | | * src/nsterm.m (ns_clear_under_internal_border): Check the frame is live.
* Add check for bound and true 'ido-everywhere' in multi-occur--promptJuri Linkov2020-10-061-1/+2
| | | | | * lisp/replace.el (multi-occur--prompt): Check if 'ido-everywhere' is bound and true (bug#41633).
* Fix args of truncate-string-to-width in ibuffer-compile-make-substring-formJuri Linkov2020-10-061-1/+1
| | | | | * lisp/ibuffer.el (ibuffer-compile-make-substring-form): Fix args of truncate-string-to-width call (bug#41250)
* * lisp/international/mule.el (define-coding-system): Revert accidental changeStefan Monnier2020-10-061-2/+2
| | | | | This was accidentally included in a9f147af716aa026ec7778202901c4cb4bd5487d "Use the full name of the null byte/character, not its abbreviation".
* * lisp/international/mule-util.el: Revert bug#41250 workaroundStefan Monnier2020-10-061-4/+1
| | | | | (truncate-string-ellipsis): Use the '…' character itself since it should work now and is more readable.