summaryrefslogtreecommitdiff
path: root/lisp/net/browse-url.el
Commit message (Collapse)AuthorAgeFilesLines
* ; Add 2024 to copyright yearsPo Lu2024-01-021-1/+1
|
* ; Fix broken links to gmane.orgStefan Kangas2023-10-241-1/+1
|
* Allow dired to invoke secondary browserRobert Pluim2023-05-291-3/+10
| | | | | | | | | | | 'browse-url-of-dired-file' always invokes the primary browser, but sometimes it's handy to call a different browser, which is why 'browse-url-secondary-browser-function' exists. * lisp/net/browse-url.el (browse-url-of-dired-file): Call 'browse-url-secondary-browser-function' when invoked with a prefix argument. * etc/NEWS: Announce the change.
* ; Add 2023 to copyright years.Eli Zaretskii2023-01-011-1/+1
|
* Accommodate ircs:// URLs in url-irc and browse-urlF. Jason Park2022-11-161-0/+24
| | | | | | | | | | | | | | | | | | | | | | | * lisp/url/url-irc.el (url-irc-function): Change signature of function interface to expect a final "scheme" argument, such as "ircs". (url-irc): Call `url-irc-function' with new positional argument, the scheme extracted via `url-type' from the input URL. (url-irc-erc, url-irc-rcirc, url-irc-zenirc): Accept a URL scheme as a sixth positional arg. (url-ircs-default-port, url-ircs): Add new autoloaded constant and alias for `url-scheme-get-property' to recognize. Do this to avoid having to add another file. * lisp/net/browse-url.el (browse-url-irc-function): Add new option. (browse-url--irc): Add new function to call `browse-url-irc-function'. (browse-url-default-handlers): Add "irc://" entry. (browse-url-irc): Add new function to serve as general handler for "irc://" URLS. Accept trailing variadic args to accommodate non-browse-url interfaces as well. * test/lisp/net/browse-url-tests.el (browse-url-tests-select-handler-irc): Add test for "irc://" URL pattern. * etc/NEWS: Mention select browse-url and url-irc changes. (Bug#56514.)
* Fix browse-url-emacs for file: URLs on WindowsLars Ingebrigtsen2022-10-131-0/+5
| | | | | * lisp/net/browse-url.el (browse-url-emacs): Fix up file:///c:/foo/bar URLs on windows (bug#58464).
* Drop support for XEmacs package EFSStefan Kangas2022-07-281-1/+1
| | | | | | | | | | | | EFS is a long defunct XEmacs-specific fork of Ange FTP that is superseded by TRAMP. * lisp/ffap.el (ffap-ftp-default-user) (ffap-replace-file-component, ffap-host-to-filename): * lisp/gnus/mml.el (mml-parse-file-name): * lisp/gnus/nnheader.el (nnheader-re-read-dir): * lisp/net/browse-url.el (browse-url-filename-alist): * lisp/speedbar.el (speedbar-check-vc): Drop support for XEmacs package EFS.
* string-equal-ignore-case: new functionSam Steingold2022-07-261-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/cedet/semantic/complete.el (semantic-collector-calculate-completions): Use `string-prefix-p' instead of explicit `compare-strings'. * lisp/emacs-lisp/byte-opt.el (side-effect-free-fns): Add `string-equal-ignore-case'. * lisp/emacs-lisp/cl-extra.el (cl-equalp): Use `string-equal-ignore-case'. * lisp/emacs-lisp/shadow.el (load-path-shadows-find): Likewise. * lisp/emacs-lisp/shortdoc.el (string): Add `string-equal-ignore-case'. * lisp/files.el (file-truename): Use `string-equal-ignore-case'. (file-relative-name): Likewise. * lisp/gnus/gnus-art.el (article-hide-boring-headers): Use `string-equal-ignore-case' instead of `gnus-string-equal'. * lisp/gnus/gnus-util.el (gnus-string-equal): Remove, use `string-equal-ignore-case' instead. * lisp/international/mule-cmds.el (describe-language-environment): Use `string-equal-ignore-case'. (locale-charset-match-p): Likewise. * lisp/man.el (Man-softhyphen-to-minus): Use `string-prefix-p'. * lisp/minibuffer.el (completion--string-equal-p): Remove, use `string-equal-ignore-case' instead. (completion--twq-all): Use `string-equal-ignore-case'. (completion--do-completion): Likewise. * lisp/net/browse-url.el (browse-url-default-windows-browser): Use `string-prefix-p' instead of explicit `compare-strings'. * lisp/org/ob-core.el (org-babel-results-keyword): Use `string-equal-ignore-case' instead of explicit `compare-strings'. (org-babel-insert-result): Likewise. * lisp/org/org-compat.el (string-equal-ignore-case): Define unless defined already. (org-mode-flyspell-verify): Use `string-equal-ignore-case'. * lisp/org/org-lint.el (org-lint-duplicate-custom-id): Likewise. * lisp/org/ox.el (org-export-resolve-radio-link): Use `string-equal-ignore-case' and `string-clean-whitespace'. * lisp/progmodes/flymake-proc.el (flymake-proc--check-patch-master-file-buffer): Use `string-prefix-p' instead of explicit `compare-strings'. * lisp/progmodes/idlwave.el (idlwave-class-or-superclass-with-tag): Use `string-equal-ignore-case' instead of explicit `compare-strings'. * lisp/subr.el (member-ignore-case): Use `string-equal-ignore-case'. (string-equal-ignore-case): Compare strings ignoring case. * lisp/textmodes/bibtex.el (bibtex-string=): Remove. (bibtex-format-entry, bibtex-font-lock-url, bibtex-autofill-entry) (bibtex-print-help-message, bibtex-validate, bibtex-validate-globally) (bibtex-clean-entry, bibtex-completion-at-point-function, (bibtex-url): Use `string-equal-ignore-case' instead of `bibtex-string='. * lisp/textmodes/sgml-mode.el (sgml-get-context): Use `string-equal-ignore-case' instead of explicit `compare-strings'. (sgml-calculate-indent): Likewise * test/lisp/subr-tests.el (string-comparison-test): Add tests for `string-equal-ignore-case'.
* Rename new option to browse-url-default-schemeStefan Kangas2022-07-101-3/+3
| | | | | | * lisp/net/browse-url.el (browse-url-default-scheme): Rename from 'browse-url-guess-default-scheme'. Update caller. Suggested by Eli Zaretskii <eliz@gnu.org>.
* New user option browse-url-guess-default-schemeStefan Kangas2022-07-101-1/+14
| | | | | | * lisp/net/browse-url.el (browse-url-guess-default-scheme): New user option. (browse-url-url-at-point): Use above new user option.
* ; Use example.org in an exampleStefan Kangas2022-07-101-1/+1
| | | | | * lisp/net/browse-url.el (browse-url-filename-alist): Use example.org to be more RFC2606 compliant.
* Make browse-url.el support for plain "mozilla" obsoleteStefan Kangas2022-07-101-3/+6
| | | | | | | | | | * lisp/net/browse-url.el (browse-url-mozilla-program) (browse-url-mozilla-arguments) (browse-url-mozilla-startup-arguments) (browse-url-mozilla-new-window-is-tab, browse-url-mozilla) (browse-url-mozilla-sentinel): Make obsolete. (Bug#56464) (browse-url--browser-defcustom-type, browse-url-default-browser): Don't refer to above obsolete function 'browse-url-mozilla'.
* * lisp/net/browse-url.el: Improve commentary.Stefan Kangas2022-07-101-18/+22
|
* Exclude platform specific browsers from custom typeStefan Kangas2022-07-091-8/+11
| | | | | * lisp/net/browse-url.el (browse-url--browser-defcustom-type): Don't include platform specific browsers on other platforms.
* Make browse-url-default-browser fall back to EWWStefan Kangas2022-07-091-3/+2
| | | | | * lisp/net/browse-url.el (browse-url-default-browser): Fall back to EWW.
* Drop support for the dead third-party w3 packageStefan Kangas2022-07-091-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The w3 package was removed from GNU ELPA in 2020 as it doesn't run on a recent Emacs, and development had stopped over a decade before that. If anyone wants to revive the w3 package, they should look this all over, but it doesn't make sense for us to maintain this support code. Ref: https://debbugs.gnu.org/25395 * lisp/net/browse-url.el (browse-url-w3): Make obsolete. (browse-url--browser-defcustom-type) (browse-url-default-browser): * lisp/ffap.el (ffap-url-at-point, ffap-file-at-point): * lisp/net/newst-plainview.el (newsticker--buffer-do-insert-text): * lisp/net/newst-reader.el (newsticker-html-renderer) (newsticker-show-news): * lisp/net/newst-treeview.el (newsticker--treeview-render-text): * lisp/org/ol.el (org-store-link): * lisp/url/url.el (url-retrieve): Remove w3 support code and related documentation and comments. (Bug#56435) * test/lisp/net/browse-url-tests.el (browse-url-tests-browser-kind): Adjust test for above changes. * etc/TODO: Remove TODO to install W3. * doc/misc/org.org (Handling Links): Don't mention W3. * lisp/msb.el (msb--few-menus, msb--very-many-menus): Check for eww-mode instead of w3-mode.
* Make two XEmacs related variables obsoleteStefan Kangas2022-07-071-0/+2
| | | | | | * lisp/net/browse-url.el (browse-url-gnudoit-program) (browse-url-gnudoit-args): Make obsolete. The corresponding command 'browse-url-w3-gnudoit' is already obsolete since 25.1.
* * lisp/net/browse-url.el: Doc fix; recommend keymap-* functions.Stefan Kangas2022-06-231-7/+7
|
* Make browse-url-encode-url encode even lessLars Ingebrigtsen2022-06-091-3/+4
| | | | | * lisp/net/browse-url.el (browse-url-encode-url): Don't encode dollar signs, because that's out of spec (bug#55873).
* * lisp/net/browse-url.el (browse-url-button-map): Prefer defvar-keymap.Stefan Kangas2022-05-111-7/+5
|
* Use default external browser by default on HaikuPo Lu2022-05-091-0/+20
| | | | | | | | | | | | | * lisp/net/browse-url.el (browse-url-default-browser): Use that by default on Haiku. (browse-url-default-haiku-browser): New function. * src/haiku_support.cc (be_roster_launch): * src/haiku_support.h: New function. Update prototypes. * src/haikuselect.c (haiku_message_to_lisp): Encode and decode files correctly. (haiku_lisp_to_message): Encode and decode files correctly. (Fhaiku_roster_launch): New function. (syms_of_haikuselect): Update defsubrs.
* Make file-name-split returns driver name as well in WindowsKien Nguyen2022-04-061-3/+12
| | | | | | | * lisp/files.el (file-name-split): Returns driver name as well in Windows. * lisp/net/browse-url.el (browse-url-file-url): Don't hexify colon character in file path for Windows (bug#54721).
* Don't touch WAYLAND_DISPLAY in browse-urlPo Lu2022-04-031-1/+5
| | | | | * lisp/net/browse-url.el (browse-url): Don't touch WAYLAND_DISPLAY. (bug#53969)
* Handle Wayland displays correctly in browse-urlPo Lu2022-03-111-1/+7
| | | | | | * lisp/net/browse-url.el (browse-url-process-environment): Use WAYLAND_DISPLAY as the display environment variable on PGTK. (bug#54333)
* Merge from origin/emacs-28Stefan Kangas2022-03-071-1/+4
|\ | | | | | | | | | | 73f28fbde8 Add a comment for previous browse-url-of-dired-file change 9b74e84857 Restore documented Emacs 27.2 behaviour of browse-url-of-d... cd77fd3b85 Update to Org 9.5.2-24-g668205
| * Add a comment for previous browse-url-of-dired-file changeLars Ingebrigtsen2022-03-071-1/+3
| | | | | | | | | | * lisp/net/browse-url.el (browse-url-of-dired-file): Add a comment for previous change.
| * Restore documented Emacs 27.2 behaviour of browse-url-of-dired-fileLars Ingebrigtsen2022-03-071-1/+2
| | | | | | | | | | | | * lisp/net/browse-url.el (browse-url-of-dired-file): Restore the documented behaviour -- open a web browser instead of passing to the various handlers.
| * Fix menu-bar mouse clicks in "C-h c" and "C-h k" (bug#53322)Stefan Monnier2022-01-201-2/+1
| | | | | | | | | | | | | | | | | | * lisp/subr.el (event-start, event-end): Handle '(menu-bar)' events. * lisp/net/browse-url.el (browse-url-interactive-arg): Simplify accordingly. (cherry picked from commit 9ceb3070e34ad8a54184fd0deda477bf5ff77000)
* | Fix typo in previous browse-url-file-url changeLars Ingebrigtsen2022-03-071-1/+1
| | | | | | | | | | * lisp/net/browse-url.el (browse-url-file-url): Fix typo in previous change.
* | Fix `W' in Dired with non-ASCII file namesLars Ingebrigtsen2022-03-071-11/+26
| | | | | | | | | | | | | | | | | | * lisp/net/browse-url.el (browse-url--file-name-coding-system): Factor out into own function. (browse-url-file-url): Property encode non-ASCII characters so that external browsers can understand them. (browse-url-emacs): Make `W' in Dired work with non-ASCII file names (bug#54271).
* | Merge from origin/emacs-28Eli Zaretskii2022-01-011-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 836be7a112 ; * etc/refcards/ru-refcard.tex: Update Copyright year. 86cbc6ee4a * lisp/net/tramp-sh.el: Adapt copyright year ebe8772f65 ; Minor fixes related to copyright years 23c1ee6989 ; * test/manual/etags/ETAGS.good_N: Adjust to copyright ye... 8d3fc7ec89 * src/xfaces.c (face_for_font): Make 'hash' be uintptr_t. 19dcb237b5 ; Add 2022 to copyright years. # Conflicts: # etc/NEWS # etc/refcards/ru-refcard.tex # lib/cdefs.h # lisp/erc/erc-dcc.el # lisp/erc/erc-imenu.el # lisp/erc/erc-replace.el # lisp/image-dired.el # lisp/progmodes/xref.el # m4/alloca.m4 # m4/byteswap.m4 # m4/errno_h.m4 # m4/getopt.m4 # m4/gnulib-common.m4 # m4/inttypes.m4 # m4/stddef_h.m4 # m4/stdint.m4 # m4/sys_socket_h.m4
| * ; Add 2022 to copyright years.Eli Zaretskii2022-01-011-1/+1
| |
* | * lisp/net/browse-url.el (browse-url-of-file): Improve browsing remote files.Michael Albinus2021-12-251-2/+4
| |
* | ; * lisp/net/browse-url.el (pgtk-backend-display-class): Declare.Eli Zaretskii2021-12-181-0/+2
| |
* | Merge remote-tracking branch 'origin/master' into feature/pgtkPo Lu2021-12-091-10/+10
|\ \
| * | Merge from origin/emacs-28Stefan Kangas2021-12-081-10/+10
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ce5bca4913 Document native-comp-async-report-warning-errors more 1933cd5307 Doc fix; Epiphany has been renamed to GNOME Web b80d7568e4 * lisp/dired-aux.el (dired-check-process): Doc fix. (Bug#... 0f30227f97 ; * lisp/net/browse-url.el (browse-url-epiphany): Fix typo. d34009db66 Remove dead link from newsticker # Conflicts: # lisp/net/browse-url.el
| | * Doc fix; Epiphany has been renamed to GNOME WebStefan Kangas2021-12-071-10/+10
| | | | | | | | | | | | | | | | | | * lisp/net/browse-url.el: Doc fix; Epiphany is called GNOME Web since GNOME 3.4, released in 2012. Ref: https://help.gnome.org/misc/release-notes/3.4/
| | * ; * lisp/net/browse-url.el (browse-url-epiphany): Fix typo.Stefan Kangas2021-12-071-1/+1
| | |
* | | Merge remote-tracking branch 'origin/master' into feature/pgtkPo Lu2021-12-081-216/+11
|\| |
| * | browse-url: Refactor code to find executableStefan Kangas2021-12-071-12/+9
| | | | | | | | | | | | | | | | | | * lisp/net/browse-url.el (browse-url--find-executable): Extract from... (browse-url-firefox-program, browse-url-chrome-program) (browse-url-chromium-program): ...here.
| * | browse-url: Remove support for GaleonStefan Kangas2021-12-071-79/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/browse-url.el (browse-url-galeon-program) (browse-url-galeon-arguments) (browse-url-galeon-startup-arguments) (browse-url-galeon-new-window-is-tab, browse-url-galeon) (browse-url-galeon-sentinel): Delete, thus removing support for the long defunct Galeon web browser. * etc/NEWS: Announce its removal.
| * | browse-url: Remove support for NetscapeStefan Kangas2021-12-071-125/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/browse-url.el (browse-url-netscape-program) (browse-url-netscape-arguments) (browse-url-netscape-startup-arguments) (browse-url-netscape-new-window-is-tab) (browse-url-netscape-version, browse-url-netscape) (browse-url-netscape-sentinel, browse-url-netscape-reload) (browse-url-netscape-send): Delete, thus removing support for the long defunct Netscape web browser. * etc/NEWS: Announce its removal.
* | | Merge remote-tracking branch 'origin/master' into feature/pgtkPo Lu2021-12-021-1/+1
|\| |
| * | browse-url-button-regexp: Recognize gemini: linksDaniel Fleischer2021-12-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Gemini is a relatively new text-based web protocol, similar to gopher. There's the "elpher" package to browse gopher and gemini pages. Adding it to the regexp will make Emacs be aware of gemini links, e.g. in ERC. * lisp/net/browse-url.el (browse-url-button-regexp): Add support for the gemini: URL type.
* | | Merge remote-tracking branch 'origin/master' into feature/pgtkPo Lu2021-11-301-1/+21
|\| |
| * | * lisp/subr.el (event-start, event-end): Handle `(menu-bar)` eventsStefan Monnier2021-11-221-2/+1
| | | | | | | | | | | | * lisp/net/browse-url.el (browse-url-interactive-arg): Simplify accordingly
| * | ; Fix a few haiku typosRobert Pluim2021-11-211-1/+1
| | | | | | | | | | | | | | | | | | * lisp/net/browse-url.el (browse-url-webpositive-program): Correct :version tag. * src/frame.c (Fframep): Fix quoting of "haiku".
| * | Merge from origin/emacs-28Stefan Kangas2021-11-211-1/+2
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0dd3883def Update to Org 9.5-72-gc5d6656 e3d5337970 Fix mouse handling with several TTY frames on MS-Windows 7e437af413 Fix temacs invocation from outside of the 'src' directory 0fbfd4253e ; Avoid byte-compilation warnings in edmacro.el c22c988b1f Fix mouse events on tab bar or tool bar when 'track-mouse'... 354c834fba Fix `browse-url-interactive-arg' for certain kinds of events # Conflicts: # lisp/mouse.el
| | * Fix `browse-url-interactive-arg' for certain kinds of eventsPo Lu2021-11-201-1/+2
| | | | | | | | | | | | | | | * lisp/net/browse-url.el (browse-url-interactive-arg): Don't call `mouse-set-point' unless event is actually a mouse event.
| * | Add support for the Haiku operating system and its window systemPo Lu2021-11-201-0/+20
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * .gitignore: Add binaries specific to Haiku. * Makefie.in (HAVE_BE_APP): New variable. (install-arch-dep): Install Emacs and Emacs.pdmp when using Haiku. * configure.ac: Detect and configure for Haiku and various related configurations. (be-app, be-freetype, be-cairo): New options. (HAVE_BE_APP, HAIKU_OBJ, HAIKU_CXX_OBJ) (HAIKU_LIBS, HAIKU_CFLAGS): New variables. (HAIKU, HAVE_TINY_SPEED_T): New define. (emacs_config_features): Add BE_APP. * doc/emacs/Makefile.in (EMACSSOURCES): Add Haiku appendix. * doc/emacs/emacs.texi: Add Haiku appendix to menus and include it. * doc/emacs/haiku.texi: New Haiku appendix. * doc/lispref/display.texi (Defining Faces, Window Systems): Explain meaning of `haiku' as a window system identifier. (haiku-use-system-tooltips): Explain meaning of system tooltips on Haiku. * doc/lispref/frames.texi (Multiple Terminals): Explain meaning of haiku as a display type. (Frame Layout): Clarify section for Haiku frames. (Size Parameters): Explain limitations of fullwidth and fullheight on Haiku. (Management Parameters): Explain limitations of inhibiting double buffering on builds with Cairo, and the inability of frames with no-accept-focus to receive keyboard input on Haiku. (Font and Color Parameters): Explain the different font backends available on Haiku. (Raising and Lowering): Explain that lowering and restacking frames doesn't work on Haiku. (Child Frames): Explain oddities of child frame visibility on Haiku. * doc/lispref/os.texi (System Environment): Explain meaning of haiku. * etc/MACHINES: Add appropriate notices for Haiku. * etc/NEWS: Document changes. * etc/PROBLEMS: Document font spacing bug on Haiku. * lib-src/Makefile.in: Build be-resources binary on Haiku. (CXX, CXXFLAGS, NON_CXX_FLAGS, ALL_CXXFLAGS) (HAVE_BE_APP, HAIKU_LIBS, HAIKU_CFLAGS): New variables. (DONT_INSTALL): Add be-resources binary if on Haiku. (be-resources): New target. * lib-src/be_resources: Add helper binary for setting resources on the Emacs application. * lib-src/emacsclient.c (decode_options): Set alt_display to "be" on Haiku. * lisp/cus-edit.el (custom-button, custom-button-mouse) (custom-button-unraised, custom-button-pressed): Update face definitions for Haiku. * lisp/cus-start.el: Add haiku-debug-on-fatal-error and haiku-use-system-tooltips. * lisp/faces.el (face-valid-attribute-values): Clarify attribute comment for Haiku. (tool-bar): Add appropriate toolbar color for Haiku. * lisp/frame.el (haiku-frame-geometry) (haiku-mouse-absolute-pixel-position) (haiku-set-mouse-absolute-pixel-position) (haiku-frame-edges) (haiku-frame-list-z-order): New function declarations. (frame-geometry, frame-edges) (mouse-absolute-pixel-position) (set-mouse-absolute-pixel-position) (frame-list-z-order): Call appropriate window system functions on Haiku. (display-mouse-p, display-graphic-p) (display-images-p, display-pixel-height) (display-pixel-width, display-mm-height) (display-mm-width, display-backing-store) (display-save-under, display-planes) (display-color-cells, display-visual-class): Update type tests for Haiku. * lisp/international/mule-cmds.el (set-coding-system-map): Also prevent set-terminal-coding-system from appearing in the menu bar on Haiku. * lisp/loadup.el: Load Haiku-specific files when built with Haiku, and don't rename newly built Emacs on Haiku as BFS doesn't support hard links. * lisp/menu-bar.el (menu-bar-open): Add for Haiku. * lisp/mwheel.el (mouse-wheel-down-event): Expect wheel-up on Haiku. (mouse-wheel-up-event): Expect wheel-down on Haiku. (mouse-wheel-left-event): Expect wheel-left on Haiku. (mouse-wheel-right-event): Expect wheel-right on Haiku. * lisp/net/browse-url.el (browse-url--browser-defcustom-type): Add option for WebPositive. (browse-url-webpositive-program): New variable. (browse-url-default-program): Search for WebPositive. (browse-url-webpositive): New function. * lisp/net/eww.el (eww-form-submit, eww-form-file) (eww-form-checkbox, eww-form-select): Define faces appropriately for Haiku. * lisp/term/haiku-win.el: New file. * lisp/tooltip.el (menu-or-popup-active-p): New function declaration. (tooltip-show-help): Don't use tooltips on Haiku when a menu is active. * lisp/version.el (haiku-get-version-string): New function declaration. (emacs-version): Add Haiku version string if appropriate. * src/Makefile.in: Also produce binary named "Emacs" with Haiku resources set. (CXX, HAIKU_OBJ, HAIKU_CXX_OBJ, HAIKU_LIBS) (HAIKU_CFLAGS, HAVE_BE_APP, NON_CXX_FLAGS) (ALL_CXX_FLAGS): New variables. (.SUFFIXES): Add .cc. (.cc.o): New target. (base_obj): Add Haiku C objects. (doc_obj, obj): Split objects that should scanned for documentation into doc_obj. (SOME_MACHINE_OBJECTS): Add appropriate Haiku C objects. (all): Depend on Emacs and Emacs.pdmp on Haiku. (LIBES): Add Haiku libraries. (gl-stamp) ($(etc)/DOC): Scan doc_obj instead of obj (temacs$(EXEEXT): Use C++ linker on Haiku. (ctagsfiles3): New variable. (TAGS): Scan C++ files. * src/alloc.c (garbage_collect): Mark Haiku display. * src/dispextern.h (HAVE_NATIVE_TRANSFORMS): Also enable on Haiku. (struct image): Add fields for Haiku transforms. (RGB_PIXEL_COLOR): Define to unsigned long on Haiku as well. (sit_for): Also check USABLE_SIGPOLL. (init_display_interactive): Set initial window system to Haiku on Haiku builds. * src/emacs.c (main): Define Haiku syms and init haiku clipboard. (shut_down_emacs): Quit BApplication on Haiku and trigger debug on aborts if haiku_debug_on_fatal_error. (Vsystem_type): Update docstring. * src/fileio.c (next-read-file-uses-dialog-p): Enable on Haiku. * src/filelock.c (WTMP_FILE): Only define if BOOT_TIME is also defined. * src/floatfns.c (double_integer_scale): Work around Haiku libroot brain damage. * src/font.c (syms_of_font): Define appropriate font driver symbols for Haiku builds with various options. * src/font.h: Also enable ftcrfont on Haiku builds with Cairo. (font_data_structures_may_be_ill_formed): Also enable on Haiku builds that have Cairo. * src/frame.c (Fframep): Update doc-string for Haiku builds and return haiku if appropriate. (syms_of_frame): New symbol `haiku'. * src/frame.h (struct frame): Add output data for Haiku. (FRAME_HAIKU_P): New macro. (FRAME_WINDOW_P): Test for Haiku frames as well. * src/ftcrfont.c (RED_FROM_ULONG, GREEN_FROM_ULONG) (BLUE_FROM_ULONG): New macros. (ftcrfont_draw): Add haiku specific code for Haiku builds with Cairo. * src/ftfont.c (ftfont_open): Set face. (ftfont_has_char, ftfont_text_extents): Work around crash. (syms_of_ftfont): New symbol `mono'. * src/ftfont.h (struct font_info): Enable Cairo-specific fields for Cairo builds on Haiku. * src/haiku_draw_support.cc: * src/haiku_font_support.cc: * src/haiku_io.c: * src/haiku_select.cc: * src/haiku_support.cc: * src/haiku_support.h: * src/haikufns.c: * src/haikufont.c: * src/haikugui.h: * src/haikuimage.c: * src/haikumenu.c: * src/haikuselect.c: * src/haikuselect.h: * src/haikuterm.c: * src/haikuterm.h: Add new files for Haiku windowing support. * src/haiku.c: Add new files for Haiku operating system support. * src/image.c: Implement image transforms and native XPM support on Haiku. (GET_PIXEL, PUT_PIXEL, NO_PIXMAP) (PIX_MASK_RETAIN, PIX_MASK_DRAW) (RGB_TO_ULONG, RED_FROM_ULONG, GREEN_FROM_ULONG) (BLUE_FROM_ULONG, RED16_FROM_ULONG, GREEN16_FROM_ULONG) (BLUE16_FROM_ULONG): Define to appropriate values on Haiku. (image_create_bitmap_from_data): Add Haiku support. (image_create_bitmap_from_file): Add TODO on Haiku. (free_bitmap_record): Free bitmap on Haiku. (image_size_in_bytes): Implement for Haiku bitmaps. (image_set_transform): Implement on Haiku. (image_create_x_image_and_pixmap_1): Implement on Haiku, 24-bit or 1-bit only. (image_destroy_x_image, image_get_x_image): Use correct img and pixmap values on Haiku. (lookup_rgb_color): Use correct macro on Haiku. (image_to_emacs_colors): Implement on Haiku. (image_disable_image): Disable on Haiku. (image_can_use_native_api): Test for translator presence on Haiku. (native_image_load): Use translator on Haiku. (imagemagick_load_image): Add Haiku-specific quirks. (Fimage_transforms_p): Allow rotate90 on Haiku. (image_types): Enable native XPM support on Haiku. (syms_of_image): Enable XPM images on Haiku. * src/keyboard.c (kbd_buffer_get_event) (handle_async_input, handle_input_available_signal) (handle_user_signal, Fset_input_interrupt_mode) (init_keyboard): Check for USABLE_SIGPOLL along with USABLE_SIGIO. * src/lisp.h (pD): Work around broken Haiku headers. (HAVE_EXT_MENU_BAR): Define on Haiku. (handle_input_available_signal): Enable if we just have SIGPOLL as well. * src/menu.c (have_boxes): Return true on Haiku. (single_menu_item): Enable toolkit menus on Haiku. (find_and_call_menu_selection): Also enable on Haiku. * src/process.c (keyboard_bit_set): Enable with only usable SIGPOLL. (wait_reading_process_output): Test for SIGPOLL as well as SIGIO availability. * src/sound.c (sound_perror, vox_open) (vox_configure, vox_close): Enable for usable SIGPOLL as well. * src/sysdep.c (sys_subshell): Enable for usable SIGPOLL. (reset_sigio): Make conditional on F_SETOWN. (request_sigio, unrequest_sigio) (emacs_sigaction_init): Also handle SIGPOLLs. (init_sys_modes): Disable TCXONC usage on Haiku, as it doesn't have any ttys other than pseudo ttys, which don't support C-s/C-q flow control, and causes compiler warnings. (speeds): Disable high speeds if HAVE_TINY_SPEED_T. * src/termhooks.h (enum output_method): Add output_haiku. (struct terminal): Add Haiku display info. (TERMINAL_FONT_CACHE): Enable for Haiku. * src/terminal.c (Fterminal_live_p): Return `haiku' if appropriate. * src/verbose.mk.in (AM_V_CXX, AM_V_CXXLD): New logging variables. * src/xdisp.c (redisplay_internal) (note_mouse_highlight): Return on Haiku if a popup is activated. (display_menu_bar): Return on Haiku if frame is a Haiku frame. * src/xfaces.c (GCGraphicsExposures): Enable correctly on Haiku. (x_create_gc): Enable dummy GC code on Haiku. * src/xfns.c (x-server-version, x-file-dialog): Add Haiku specifics to doc strings. * src/xterm.c (syms_of_xterm): Add Haiku information to doc string.